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

Please help with dialong buttons

Status
Not open for further replies.
Level 4
Joined
Feb 12, 2006
Messages
99
Remember to clear the dialog before you make the stuff for it or else it won't actually show the dialog buttons. I had that problem.
 
Level 5
Joined
Mar 12, 2005
Messages
117
ok heres a proper answer

Event: Time eplapsed 5 seconds (dialogs do not show up on map init)

action: dialog - clear mydialog (make mydialog variable as new dialog in variable windows ctrl b in trigger editor you dont have to call it mydialog i did just for wrtiing purposes)

dialog - change title of dialog to 'the dialog'

dialog - create button for mydialog name 'button'

setvariable - set button = last created dialog button (I almost forgot.. you need to make a variable as a dialog button same as first step but as a dialog button not new dialog)

dialog - show dialog to 'whatever player'

for more buttons just repeat the last 2 steps.

Then to work it

Event - dialog button click

condition - dialog button cliked = button

action - what ever you want the button to do.

hopefully that should be failry clear pm me if you still dont get it
 
Status
Not open for further replies.
Top