HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Problem! Please Help

08-18-2003, 09:51 AM#1
Dark_Army
Ok, I want this trigger to turn off for all players once one player activates it, but I can't seem to figure out how. I will show you what I am talking about:

Player 2 (Blue) Selects Bladeweaver

Events
Unit - A unit enters Choose Bladeweaver <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Spirit of A Fallen Alliance Hero
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
Actions
Unit - Explode (Triggering unit)
Unit - Create 1 Doragon Bloodspiller for (Owner of (Triggering unit)) at (Random point in Starting Location <gen>) facing Default building facing degrees
Unit - Remove Circle of Power 0003 <gen> from the game
*Trigger - Turn off (This trigger)*
Trigger - Run Setup Hero <gen> (checking conditions)
#Selection - Select (Last created unit) for Player 2 (Blue)#
Special Effect - Create a special effect attached to the overhead of (Last created unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl

Player 3 (Teal) Selects Bladeweaver

Events
Unit - A unit enters Choose Bladeweaver <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Spirit of A Fallen Alliance Hero
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
Actions
Unit - Explode (Triggering unit)
Unit - Create 1 Doragon Bloodspiller for (Owner of (Triggering unit)) at (Random point in Starting Location <gen>) facing Default building facing degrees
Unit - Remove Circle of Power 0003 <gen> from the game
*Trigger - Turn off (This trigger)*
Trigger - Run Setup Hero <gen> (ignoring conditions)
#Selection - Select (Last created unit) for Player 3 (Teal)#
Special Effect - Create a special effect attached to the overhead of (Last created unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl

*I want to turn this trigger off for all players, so like if player 2 chooses that hero, none of the other players can select him.

#I created a seperate trigger for each player because of selection problems, it was set as Select - triggering unit. So when a player chose his hero, everyone would end up deselecting their hero and if you have 5 players this was quite annoying.

If you have any suggestions of know how to fix this please help!
08-18-2003, 10:36 AM#2
Ant
*Trigger - Turn off (This trigger)*
That turns off that trigger.
But there's one more trigger saying that Player 3 can select it! And it still is on!
So just add this
*Trigger - Turn off (Player 3 (Teal) Selects Bladeweaver)*
And turn off all triggers. kekekeke
Alternatively, you might want to add a condition to all select bladeweaver triggers. Like "Bladeweaver is alive" or "Bladeweaver owner = player 12". And when the bladeweaver is chosen, the bladeweaver is transfered to another place, another owner... etc
08-18-2003, 11:51 AM#3
Zoizite
There is no need to make a separate trigger for each player.

You can do it with generic unit events.

Events:
Unit enters <region>

Conditions:
(entering unit) equal to <your selector unit>
Number of units owned by neutral passive of type <hero type> greater than 0

Actions:
Create 1 <hero type> for (owner of unit(entering unit)) at <your spawn point>
Remove <neutral's hero> from the game.
Remove <circle of power> from the game.
Pan camera to (last created unit)
Select (last created unit) for player (owner of unit(last created unit))
Create special effect attached to the overhead of (last created unit)
Destroy (last created special effect) - do this always.

Removing the neutral hero will make it so this trigger will no longer fire.