• 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] 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
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
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: http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
 
Status
Not open for further replies.
Top