Stealing the Crate Triggers

Kiwi_Jesus

New Member
Reaction score
1
I want to make a map like the level of that campaign where you have to steal illidan from Mieve or whatever her name is, and the trigger is like if you get close to the crate and no enemies are around you get control of it. Anyone know what im talking about?
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Yea, I've played that level. Just do event, "Unit within range of unit", then check for number and owners, then put a if/then to decide if it changes owners or not.
 

Septimus

New Member
Reaction score
58
Melee Initialization
Events
Unit - A unit comes within 250.00 of Peasant 0000 <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Number of units in (Units in (Region centered at (Position of Peasant 0000 <gen>) with size (500.00, 500.00)) owned by Player 2 (Blue))) Equal to 0
Then - Actions
Unit - Change ownership of Peasant 0000 <gen> to Player 1 (Red) and Change color
Else - Actions
Do nothing

This might work.
 

Heyaheya321

New Member
Reaction score
0
Simple

Make the Crate Spell immune and have alot of health or armor
Create a Unit Variable for the Crate
Event - A unit is attacked

Condition - Unit type of Attacked Unit = (variable)CRATE
Condition - Unit belongs to an enemy of (variable)CRATE = True

Action - Change ownership of (variable)CRATE to Owner of Attacking Unit and change color
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top