Home   Help Search Login Register  

Author Topic: How many East are left?  (Read 1379 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
How many East are left?
« on: 14 Mar 2007, 21:55:23 »
How do I count haow many East there are left on the entire island and then fire a script off when a certain number is reached, say 30?
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: How many East are left?
« Reply #1 on: 14 Mar 2007, 22:25:32 »
hmmm, another one to be added to the faq perhaps.

use the old trigger-covering-island routine. activated by east present, 'on activation' field -

Code: [Select]
all_east = thislist
when you want to trigger the remaining east number <=30 routine, use

Code: [Select]
?({alive _x} count all_east <= 30) : ...

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: How many East are left?
« Reply #2 on: 15 Mar 2007, 00:06:54 »
What?

James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: How many East are left?
« Reply #3 on: 15 Mar 2007, 08:52:51 »
I personally can't help you much if you just ask 'What?'  :no:


Anyway, if you want the trigger to 'trigger' once there are 30 east units left then bedges' example is a bit faulty, otherwise it makes perfect sense.

If you want the trigger to 'trigger' once the count is 30 (and thus execute a script) put the next in the condition field of the trigger
Code: [Select]
({alive _x} count thislist) <= 30Of course the trigger should be set to east -> present..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: How many East are left?
« Reply #4 on: 15 Mar 2007, 09:41:16 »
example attached.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: How many East are left?
« Reply #5 on: 16 Mar 2007, 15:01:18 »
Cheers Bedges.   :sorry:
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."