• 🏆 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!

[Trigger] Dialog Problems

Status
Not open for further replies.
Level 7
Joined
Feb 25, 2007
Messages
286
I'm trying to make it so you can hit a dialog button and get a spellbook skill. I have it all set up but the only problem is that I cant figure out how to add the skills. I cant find what unit type it would be. Do i have to do it player by player or what?

  • Dialog Button
    • Events
      • Dialog - A dialog button is clicked for Dialog_A
    • Conditions
      • (Clicked dialog button) Equal to Dialog
    • Actions
      • Unit - Add Human to (Triggering unit)
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
I think this should do the work.

Code
  • Events
    • Dialog - A dialog button is clicked for SomeDialog
  • Conditions
  • Actions
  • If ((Clicked dialog button) Equal to Button_A then do (Unit - Add SomeAbility to Red_Unit else do (Do nothing)
  • If ((Clicked dialog button) Equal to Button_B then do (Unit - Add SomeAbility to Blue_Unit else do (Do nothing)
[Color]_Unit = unit variable

Etc. Etc. to all players
 
Status
Not open for further replies.
Top