Home   Help Search Login Register  

Author Topic: Better AI  (Read 1363 times)

0 Members and 1 Guest are viewing this topic.

Corben Dallas

  • Guest
Re:Better AI
« Reply #15 on: 16 Jun 2005, 12:10:02 »
Thanks - that works!  Good tip about the quotes/doubles, etc.

One thing though, they all see me right away now, and I only want this trigger to fire when someone goes down.  I guessed that this bit:

  east_area1_total = +thislist; east_area1 = thislist

was adding 1 to the count in thisList (?) and took the plus off, but then it failed.  So I set the second trigger to repeat, but that doesn't help.

How can I set it so that it checks the units against the total units and fires the 'warn everybody' trigger only when someone is shot?  (Gawd, I'm still having trouble with the basics).

Corben Dallas

  • Guest
Re:Better AI
« Reply #16 on: 16 Jun 2005, 13:26:51 »
Darn it - I just can't get the hang of this script/trigger business at all.

I'm now trying the GroupChain script at http://www.ofpec.com/editors/resource_view.php?id=686, but I don't know what he means by "Initialise your groups first with the GROUP command"..?

I've tried running it from a start-up trigger with [thisList] exec "groupchain.sqs" but it errors and says Group or Object expected.

Darnit   >:(

Edit: Yay!!  :)

Did something right.  Gave my units names and passed them to the script as it said to, and it works.  (Funny that...)  No more loons.

Thanks to all - I can now carry on with the rest of it as it makes sense to play.
« Last Edit: 16 Jun 2005, 13:34:38 by Corben Dallas »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Better AI
« Reply #17 on: 16 Jun 2005, 14:18:19 »
just to clarify, the +thislist bit gets a static total of units within the trigger. thislist on its own (without the '+') will continue to dynamically update according to the number within the trigger.

the second trigger simply checked if the numbers were equal, and if not, raised the alarm.

Corben Dallas

  • Guest
Re:Better AI
« Reply #18 on: 16 Jun 2005, 14:39:05 »
That makes more sense now.  However, as soon as I ran the mission the alarm was raised, and I hadn't done anything, which is why I wondered about the math conditions...