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

Replacing Units with dialog buttons

Status
Not open for further replies.
Level 5
Joined
Jul 31, 2004
Messages
108
Ok i posted a forum on this a while ago about Dialog and repicking units but, i figured out wat was wrong. it is this

Actions
Unit owned by player1 (red) gains a lvl
Conditions
Unit type equal to hero equal to true
Unit level of (lvling unit) is equal to 13
Unit type equal to X
Actions
Set hero[1] to (leveling unit)
Create Dialog button named Good Human
set Dialogbutton[1] to last created dialog button
Create Dialog button named Evil Human
set Dialogbutton[2] to last created dialog button
If dialog button clicked is equal to Dialogbutton[1] run trigger ignoring Human Child Good
If dialog button clicked is equal to Dialogbutton[2] run trigger ignoring Human Child Evil

THe other triggers are
Actions
Conditions
Events Replace hero[1] with Teen
 
Status
Not open for further replies.
Top