Dialog Help plz -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 15 years ago

I have a multi-button dialog that isn't showing, so I need some help... Here they are: Hero dlog -Events Map initialization -Conditions -Actions Dialog - Create a dialog button for Classchoose labelled Sniper Set heros[1] = (Last created dialog Button) Dialog - Create a dialog button for Classchoose labelled Bomber Set heros[2] = (Last created dialog Button) Dialog - Create a dialog button for Classchoose labelled Flamethrower Set heros[3] = (Last created dialog Button) Dialog - Change the title of Classchoose to Choose Your Hero

Hero Choose1 -Events Unit - A unit comes within 100.00 of Portal 0003 -Conditions (Unit-type of (Triggering unit)) Equal to Civilian -Actions Unit - Remove (Triggering unit) from the game Wait 0.50 seconds Dialog - Show Classchoose for (Owner of (Triggering unit))

Hero Choose2 -Events Dialog - A dialog button is clicked for Classchoose -Conditions -Actions If ((Clicked dialog button) Equal to heros[1]) then do (Unit - Create 1 Sniper for (Picked player) at (Center of Terran Spawn ) facing 0.00 degrees) else do (Do nothing) If ((Clicked dialog button) Equal to heros[2]) then do (Unit - Create 1 Bomber for (Picked player) at (Center of Terran Spawn ) facing 0.00 degrees) else do (Do nothing) If ((Clicked dialog button) Equal to heros[3]) then do (Unit - Create 1 Flamethrower for (Picked player) at (Center of Terran Spawn ) facing 0.00 degrees) else do (Do nothing)

----Variables---- classchoose = Dialog | New Dialog (default) heros = Dialog Button Array (4) | -None-




InnerGemini

Certified Danger to Society

50 XP

23rd October 2004

0 Uploads

61 Posts

0 Threads

#2 15 years ago

What a coincidence, I just finished adding a dialog box (a boot system) to the newest version of my RPG-type game, Inuyasha: Search for Shikon. I had the same problem as you, but found the solution fairly quickly. The only visible problem I can see with your triggering is that the 'hero dlog' trigger has map initialization set as its event. Dialogs can't be set up at map initialization, so if you put something different, say a 5-second elapsed gametime event i/s of the map initialization, it should come up. At least it worked for me. P.S., If it doesn't work or you need help with any other problems, feel free to contact me. I enjoy helping people with their mapping problems.