HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Victory triger help

04-03-2004, 11:33 AM#1
hellfire_1234
Im making a map whereby the 4 players must controll the central obelisks just like in the last TFT level. I have made the triggers for when the relevent hero steps on the circle of power next to an obelisk, but i can find no way of putting a trigger like "player 1 controlls 4 obelisks, player 1 wins" or simalar. I am desperate to find a means of doing so, please Help...

A desperate new modder.......
04-03-2004, 11:56 AM#2
johnfn
This assumes that there is only one hero to controll the four obelisks.

Go to the trigger window.
  1. Ctrl+B
  2. Press the green X in the toolbar
  3. For variable name, put Obelisks_stepped_on
  4. For variable type, select Integer
  5. Press OK.
Now we have a variable to tell you how many obelisks you have stepped on.

Go to each of your triggers. In the end of each, put

Code:
set Obelisks_stepped_on = (Obelisks_stepped_on) + 1
Disable this trigger


And then you need a new trigger to detect when you have stepped on all four. So:

Code:
 
Events: Periodic Event: every 1 seconds
Conditions: Obelisks_stepped_on Equal to 4
Actions: 
Victory for Player 1, show dialogs, show screen



Thats all.

Edit: typo
Edit again: typo on same word