OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 23 May 2005, 20:43:23

Title: bremners ai script
Post by: 456820 on 23 May 2005, 20:43:23
okay im using bremners ai script V1.1 well actually im trying to get it to work i have this in the init field after 3 seconds.

Code: [Select]
[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"the syntax is copied out like this

Code: [Select]
;group   -   the ai group name, or some path to the group name (eg group this)
;air      -   anti-air support group names
;arm      -   anti-armoured support group names
;art      -   artillery support group names
;gro      -   ground support group names
;flaring   -   specify whether group will use flares (1 for available, not available otherwise)
;tactical   -   specify whether group will use ai tactics (1 for available, not available otherwise)

its saying i have a missing "]" just before the last one so i put that in but didnt work so i tryed all sorts like commas about 100 ']' it should work but doesnt so im wondering if any of you know the answer

EDIT - Sorry i relised this probally should of gone in the editors depot board sorry
Title: Re:bremners ai script
Post by: dmakatra on 23 May 2005, 20:51:14
[[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"

I haven't used the script meself, but that should do it.

:beat: *Gets Shot* :beat:

EDIT: WTH? Why doesn't the first '[' show? >:(
Title: Re:bremners ai script
Post by: Blip on 23 May 2005, 20:52:31
Quote
[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"

Your missing a [ at the start.
Put it in before the very first bracket

Blip :joystick:
Title: Re:bremners ai script
Post by: Artak on 23 May 2005, 20:53:07
Seems like
Code: [Select]
[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"
should be
Code: [Select]
[[grp11, grp12, grp13, grp16],[],[],[],[grp14, grp15],1,0] exec "ai.sqs"
or, the syntax quide maybe suggests it like
Code: [Select]
[grp1only,[],[],[],[grp14, grp15],1,0] exec "ai.sqs"go figure  ::)
Title: Re:bremners ai script
Post by: Blip on 23 May 2005, 20:54:27
beat you Artak by 36 seconds  ;D
Title: Re:bremners ai script
Post by: 456820 on 23 May 2005, 21:05:38
okay i tried artak's second one but it said i failed to specify enemy units script terminated also i think i ot the beggining bit wrong its not missing a '[' its missing a ']' at the end just before
"exec "ai.sqs""
Title: Re:bremners ai script
Post by: Planck on 23 May 2005, 21:14:02
Its an array of arrays so if you just add an ']' on the end it will still be wrong.

Artak and co are right, you need an '[' at the beginning.


Planck
Title: Re:bremners ai script
Post by: 456820 on 24 May 2005, 15:56:28
i put a '[' at the begining and it said i failed to say the enemy's so it script terminated and the error messag sas something like
'0#] exec "ai.sqs" error missing ']' in array'
or somehing like that
Title: Re:bremners ai script
Post by: Planck on 24 May 2005, 18:51:03
According to your first post the first element should just be a group name, you have an array of group names.

I don't know this script so I'm just going on what you posted.


Planck
Title: Re:bremners ai script
Post by: Blip on 25 May 2005, 19:58:30
Is it possible that the 1 or the 0 at the end are suppose to be part of an array and therefore need to bracketed as well?

It wouldn't hurt to post the beginning of the actual script so we can see what it looks like.

Blip :joystick:
Title: Re:bremners ai script
Post by: 456820 on 25 May 2005, 20:02:08
well actually it doesnt matter now ive just managed to fix it just now literally about 10 seconds ago i put it in a sript called.ai_assighn.sqs wich the demo missions show