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

Catch me if you can...

Status
Not open for further replies.
Level 2
Joined
Mar 4, 2005
Messages
7
Hi, i need some help, for my FIRST map.. :roll:
The thing is that:
If Bandit 1,2,3,4 die, create there a Circle, thats ok..
Code:
Event:   Unit - Peasant 0000 <gen> Dies
Action:  Unit - Create 1 Circle of Power for Player 1 (Red) at (Position of Peasant 0000 <gen>) facing Default building facing degrees
Than the problem is, if Bandit 2,3 or 4 go an the circle revive peasent..
How can i make that?
And only 3 times revive... :roll:
 
Level 22
Joined
May 11, 2004
Messages
2,863
revive who? the unit that got killed and created the circle of power? If it is a single revivable unit that the circle is created for, it may be better just to make 1 circle and move it as opposed to creating a new one every time. That way you can use the "unit within range" event to spark a revive.
-VGsatomi
 
Level 2
Joined
Mar 4, 2005
Messages
7
VGsatomi said:
revive who? the unit that got killed and created the circle of power? If it is a single revivable unit that the circle is created for, it may be better just to make 1 circle and move it as opposed to creating a new one every time. That way you can use the "unit within range" event to spark a revive.
-VGsatomi
I mean if some1 kill that unit --->Action: create 1 circle
If some1 go an the Circle --->Action: Revive The peasent, and destroy the circle..
 
Level 2
Joined
Mar 4, 2005
Messages
7
Okhere is my full Trigger:
2 Trigger
First:
Events: Unit - Peasant 0000 <gen> Dies
Condition: -
Action: Unit - Move Circle of Power 0014 <gen> instantly to (Position of Peasant 0000 <gen>)


Second:
Events: Unit - A unit comes within 150.00 of Circle of Power 0014 <gen>
Condition: -
Action: Unit - Create 1 (Unit-type of Peasant 0000 <gen>) for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees
AND
Unit - Move Circle of Power 0014 <gen> instantly to (Center of Region 000 <gen>)


In this situation, we have 1 peasent, if he die, on that position, where he dies, create 1 circle, if 1 unit come near to circle, he revives, but the 2 problem is:

He revives only 1 time
He revives, if 1 (UNIT) come near, but i want if 1 other peasent go near to it!

Can some1 pls help me with it? :oops:
 
Level 7
Joined
Aug 5, 2005
Messages
218
First, use a hero instead of a unit. That way you can revive him.

Events: Unit - Hero 0000 <gen> Dies
Condition: -
Action: Unit - Move Circle of Power 0014 <gen> instantly to (Position of Hero 0000 <gen>)

Second:
Events: Unit - A unit comes within 150.00 of Circle of Power 0014 <gen>
Condition: Unit type of Triggering unit = Hero
Action: Hero - Resurrect Hero 0000 at (Position of (Triggering unit)) facing Default building facing degrees
AND
Unit - Move Circle of Power 0014 <gen> instantly to (Center of Region 000 <gen>)

Next, add a condition to the second trigger that I have shown in blue.
 
Status
Not open for further replies.
Top