• 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.

Need trigger help

Status
Not open for further replies.
Level 2
Joined
Sep 13, 2007
Messages
9
I dont know whther this is the right area to post this, but currently i'm making a map, defense map.

First,
On my map there are 5 players total (4 user, 2 computer as ally) now, i want to make the 4 user players able to gain control of the barrack(as a spawn point for the attacking ally unit), the barrack itself have upgrades available that when ANY of the 4 user player click on it, it will upgrade the unit to become better unit, and the units are attacking not just stand there doing nothing.

Second,
I want to make couple of area for the defendant players, let's just call it Area 1 till 3, where in area 1 have the heaviest defend while Area 3 have the lowest defend. The defender starts from Area 3 to defend waves of enemies, but once the area 3 been taken over by enemies (triggering for percentage control area or something) a new wave will start from area 3 and attacking the defender in which now will defend area 2 and so on ....

So anyone can help me to make a trigger ... at least basic trigger for this, I would be gratefull...

Thanks
 
Level 5
Joined
Apr 12, 2007
Messages
158
@Second
  • Unit - A unit enters Region 000 <gen>
  • Actions
    • Unit - Change ownership of Circle of Power 0000 <gen> to (Owner of (Triggering unit)) and Change color
The way I would do it is by creating a circle of power and an event trigger involving with a unit entering a region, which is located within the circle. Just make sure the ownership changes to the owner of the unit once entering the region.

  • Events
    • Unit - A unit Changes owner
  • Conditions
    • (Triggering unit) Equal to Circle of Power 0000 <gen>
  • Actions
Since circle of power is a unit that doesn't do anything, its still a unit. Therefore, players can own the circle of power. I would use generic unit event for this part instead of specific unit because its easier. XD This is where you should set up the new wave. First off, you would put replace units if the defender's building are made invulnerable or change ownership if both sides have the same type of building. Now for the wave, just make a trigger that just creates the attacking dudes and disable it at the beginning (right-click on the trigger to disable/enable). Turn that trigger on once the circle of power's ownership change to that of the invading players (turning on trigger action is located on the trigger section).

I hope I help you in some kind of way since I kind of rush this without looking into WE.
 
Status
Not open for further replies.
Top