[Trigger] Hero Selection..

Status
Not open for further replies.
Level 2
Joined
Nov 17, 2010
Messages
16
Ok so, I got stuck and need help with this.

my trigger is..
Code:
\Events
Unit - A unit enters region1 <gen>
\Conditions
(Unit-type of (Entering Unit)) equal to Peasant 
\Actions
Unit -Remove (Entering Unit) from the game
Unit - Create 1 Dreadlord for Player 1 (Red) at (Center of Region 003) <gen>) facing Default building facing degrees

--This makes it where when a Peasant enters that region.
A hero is created, and the Peasant is deleted.And the Hero[dreadlord] is teleported to another region.
*This works.

But what im confused on is,
how would that work for other players?

only [red player] can enter that region to get that [hero].

Is there a way i can make any peasant able to go into any region?
to select a hero, and get teleported?

Thanks for your time,
Zodiacxx
 
Use [TRIGGER][/TRIGGER]

  • Events
  • Unit - A unit enters region1 <gen>
  • Conditions
  • (Unit-type of (Entering Unit)) equal to Peasant
  • Actions
  • Unit -Remove (Entering Unit) from the game
  • Unit - Create 1 Dreadlord for Owner of (Triggering unit) at (Center of Region 003) <gen>) facing Default building facing degrees
Also: https://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
 
Status
Not open for further replies.
Back
Top