• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

buttons buttons buttons...

Status
Not open for further replies.
Level 8
Joined
Jul 9, 2004
Messages
405
how do you make dialog buttons? in my case its like this

a guard says "you must pay 10 gold to pass through this gate."

then it pops up saying "pay the 10 gold?"

and 2 buttons:
1- Yes pay 10 gold.
2- No keep your gold.

and when you say yes the gate 'opens' and it forces u to walk through(it doesnt really open u just get non-collision and walk over it, it has pathing blockers on it, so other players cant pass to.)
 
Level 8
Joined
Apr 3, 2004
Messages
507
You need to create a dialog box variable, and add buttons to it (but not during Map Initialization; that doesn't work). Set each button to a dialog button variable as you add it. Make sure that the dialog box is hidden to begin with, and show it when they approach the gate (or whatever). Then make another trigger that detects when one of those buttons is clicked and perform your trigger.
 
Status
Not open for further replies.
Top