HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog Boxes

05-22-2004, 04:23 AM#1
Aelita Lyoko
I was just in my map editor, and i had an idea. I want to make it so that when a player clicks an option on a building (like, they clicked a button called "teleport Options".

Now, after they click that, i want a dialog box to appear on the screen with several different options to choose from. Now, say hero A selects the desert and Hero B selects the forest. After they select what they want, the mass teleport special effect appears on the respective hero and then they are teleported to the location they specified.

My question is:
How do i make the dialog box display, and the whole thing above work. I got the special effect and move hero thing down, it is the "click the option and the dialog box displays with other optinos" which is killing me.

Any help would be more than welcomed and appreciated!

P.S. Anyone that helps gets a reputation point!
05-22-2004, 05:25 AM#2
|)@rk-Revenant
First you need to create the dialog box. Make a trigger with an event that is elasped game time equals to 5. No conditions are needed. The actions would have the dialog being created using variables, and wait actions used to seperate different buttons applied to it. Remember to give everything a variable.

Create a trigger where the event is Unit casts a spell
The condition(s) are casted spell equals (name)
The Action(s) are show (dialog box x)

Lastly, create a set of triggers that have the event dialog button is pressed for (dialog box x). The condition(s) would be clicked dialog button equal to (dialog button x). The events would include the dialog box being hidden, and the different actions for the teleportation.

Good luck with it!
05-22-2004, 07:49 PM#3
Aelita Lyoko
Could you clarify that a little bit dark?

I never was a fan of variables. :(
05-22-2004, 09:13 PM#4
Aelita Lyoko
Nevermind.

I was able to get the trigger from Norbo (Genesis of Empires Creator).