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