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

Status
Not open for further replies.
Level 18
Joined
Aug 23, 2008
Messages
2,319
That's called a Dialog. The buttons to choose are called Dialog Buttons.
Use the Actions under 'Dialog' (Like 'Dialog Show/Hide Dialog')
Adding buttons to such a Dialog is within the same category.

To perform actions, you'll need to create a new trigger with event 'Dialog - Dialog Button clicked'. Use If/Then/Else commands to check which button is clicked and which actions to perform.
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
This is what i have
if theres a problem here can you help me
  • Untitled Trigger 001
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for Agl[1] labelled Agl
      • Dialog - Create a dialog button for Agl[2] labelled Int
      • Dialog - Create a dialog button for Agl[3] labelled Str
      • Dialog - Show Agl[1] for Player 1 (Red)
      • Dialog - Show Agl[2] for Player 1 (Red)
      • Dialog - Show Agl[3] for Player 1 (Red)
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
ive tried both ways
this is the second way i tried it
  • Untitled Trigger 001
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for Agl labelled Agl
      • Dialog - Create a dialog button for Int labelled Int
      • Dialog - Create a dialog button for Str labelled Str
      • Dialog - Show Agl for Player 1 (Red)
      • Dialog - Show Int for Player 1 (Red)
      • Dialog - Show Str for Player 1 (Red)
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
I had to... this thread made my day.
  • Untitled Trigger 001
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for YourDialog labelled Agl
      • Set Agi = (Last Created Dialog Button)
      • Dialog - Create a dialog button for YourDialog labelled Int
      • Set Int = (Last Created Dialog Button)
      • Dialog - Create a dialog button for YourDialog labelled Str
      • Set Str = (Last Created Dialog Button)
      • Dialog - Show YourDialog for Player 1 (Red)
 
Status
Not open for further replies.
Top