• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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