Home   Help Search Login Register  

Author Topic: bremners ai script  (Read 866 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
bremners ai script
« 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
« Last Edit: 23 May 2005, 20:44:00 by 456820 »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:bremners ai script
« Reply #1 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? >:(
« Last Edit: 23 May 2005, 20:54:18 by dmakatra »

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:bremners ai script
« Reply #2 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:
...NIGHT WALKER....

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:bremners ai script
« Reply #3 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  ::)
Not all is lost.

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:bremners ai script
« Reply #4 on: 23 May 2005, 20:54:27 »
beat you Artak by 36 seconds  ;D
...NIGHT WALKER....

Offline 456820

  • Contributing Member
  • **
Re:bremners ai script
« Reply #5 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""

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:bremners ai script
« Reply #6 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
I know a little about a lot, and a lot about a little.

Offline 456820

  • Contributing Member
  • **
Re:bremners ai script
« Reply #7 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

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:bremners ai script
« Reply #8 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
I know a little about a lot, and a lot about a little.

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:bremners ai script
« Reply #9 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:
...NIGHT WALKER....

Offline 456820

  • Contributing Member
  • **
Re:bremners ai script
« Reply #10 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