HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creating dialogs that work?

05-03-2004, 10:46 AM#1
Alekmikof
I'm under the impression that dialogs are the floating menus you can create through triggering that can contain options. As I'm implementing a few new races I'd need to use a triggered menu for race selection. I've tried creating menus and adding options without even adding functions to the options.

Are there any tutorials on making menus and assigning functions to the options? I looked through the tutorial folders already and couldn't find much of use in this field. (If I can make the menus work and can figure out how to assign functions I know what funtions I'll be applying, no help needed there.)

I've tried looking at maps with menus in them, but all the ones I have have been protected. Thanks for any help!
05-03-2004, 12:49 PM#2
HEZZA
Im uncertain what you are asking for here... Im getting the inital impression, you want a Dialog with X number of buttons? And depending on each button , you get a different race?

OR
your making a campaign and u want a game menu like in the original Game itself.


Well in the case of the First one i can tell you how. First You Need A Set up Trigger to initalise the dialog, you can do this buy creating a trigger and following below:

Variables needed: A Dialog Viarable...call it Dialog.....and how ever many options u want is how many button dialogs u create...lets say 2

EVENT: - Time - Elasped time is X (x being when ever u like)
or
- Melee Initalisation

CONDITION - (this is all down to u and ur map, i cant see why you would need a condition)

ACTION:


Dialog - Change the title of Dialog to |cffffccffTEST|r

Dialog - Create a dialog button for Dialog labelled |cff0000ffTESTBUTTON|r

Set DialogBUTTON1 = (Last created dialog Button)

Dialog - Create a dialog button for Dialog labelled |cff0000ffTESTBUTTON|r

Set DialogBUTTON2 = (Last created dialog Button)

Player - Show Dialog for (player...you can do this for every player or a group
by doing the Player group function)


( you may want to do this if u want the dialog to disapeer for the player if there idle too long) Wait X seconds

Dialog - Hide for (Picked player)




-------------------------The response Button1 EXAMPLE-----------------
Events
Dialog - A dialog button is clicked for Dialog

Conditions
(Clicked dialog button) Equal to BUTTON1

Actions

Sound - Play MapPing <gen>
Dialog - Hide Dialo for (Player)
Game - Display to (Player group(Player 1) for 15.00 seconds the text: You are a *Race*
Unit - Create 1 Town Hall for (Player) at (Player) start location) facing (Position of (Triggering unit))




NOTE: you can add little stuff like panning the camera to a view or playing sounds etc

I hoped that helped
05-03-2004, 06:39 PM#3
Alekmikof
Thanks a lot for the help, worked perfectly. I never thought I would need a variable, but now it all makes sense! :>
05-03-2004, 07:19 PM#4
weaaddar
or avoid variables and use Vexs amazing function:
http://kattana.users.whitehat.dk/viewfunc.php?id=210
05-03-2004, 08:15 PM#5
Alekmikof
Thanks for the link, but I don't know anything about coding JASS, and I'd rather if I built this all myself, I'm not very experianced with this editor.
05-04-2004, 10:33 AM#6
HEZZA
Quote:
Originally Posted by Alekmikof
Thanks for the link, but I don't know anything about coding JASS, and I'd rather if I built this all myself, I'm not very experianced with this editor.

so u got working good then?>
was that understandable?
i re read it and it sounded a bit giberish :\
05-04-2004, 06:05 PM#7
Alekmikof
Quote:
Originally Posted by Alekmikof
Thanks a lot for the help, worked perfectly. I never thought I would need a variable, but now it all makes sense! :>

Thanks again for the info! ^_^