Home   Help Search Login Register  

Author Topic: Trigger Countdown  (Read 478 times)

0 Members and 1 Guest are viewing this topic.

merby1

  • Guest
Trigger Countdown
« on: 08 Dec 2004, 05:37:12 »
Hi,
I want a trigger to be triggered by the condition been satisfied OR a countdown. This is because often the units cna flee or not have their trigger activated.

So how would i make the trigger for example wait for:
!alive enemy_officer1 OR <count down>

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Trigger Countdown
« Reply #1 on: 08 Dec 2004, 11:15:47 »
Make a lil' script, m-kay?

_i = 60

#loopediloop
? _i == 0 : goto "timeouted"
? ! (alive enemy_officer1) : goto "killed"
~1
_i = _i - 1
goto "loopediloop"

#timeouted
hint "Time has runned out."
exit

#killed
hint "YOU KILLED THE DUDE! OMG! OMG! OMG! YOU KILLED THE DUDE! OMG! OWNZ000000R!! YOU'RE THE KING OF OFP! OMFG! I WANT YOU BABIES. TAKE ME NOW! OMG! I MEAN LIKE D*MN! THE DUDE IS DEAD! OMG! OMG! OMG!"
exit

:beat: *Gets Shot* :beat: