• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Trigger Help

Status
Not open for further replies.
Level 2
Joined
Jun 2, 2009
Messages
4
Sorry I posted this but I couldn't seem to find a tutorial for it anywhere, and if there are I didn't know what to look for because all I can do is describe it, I wouldn't know what to call it.

I don't know i any of you are familiar with the game "Dynasty Warriors." But I am making a map based off this game. In the game you get reinforcements periodically from your "Gate." I have the gate's set up and working properly, but in Dynasty Warriors if you kill the "Gate Captain" you take control of the gate, right now it is rigged to turn the gate off for the owning player, but what I want it to do is give the player who killed the Gate Captain, 1 Gate Captain, 4 Gate Guards and give that player control of the gate. So basically the gate switched owners. I'm sure you catch my drift, help would be very appreciated. Thanks!
 
Level 8
Joined
Nov 2, 2008
Messages
206
OK well the trigger that say periodicly to creat 1 gate captain facing default building degrees to player 1 red. you should creat a trigger that if the gate switches owner that trigger is disable and another one is enabled were the new owner of the gate gets the created unit. post the map and i can do it for u its real sinmple just hard to describe.
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
The unit creating trigger should be like

Every ... seconds
Create ... units for (variable) "gatePlayer".

Then you just need another trigger:

Event: Unit dies
Condition: Dying unit = gate keepre
Event: Set gatePlayer = owner of killing unit.
create 1 gate keeper for gatePlayer
create 4 gate Guards for gatePlayer
 
Status
Not open for further replies.
Top