HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

selection board

07-11-2006, 06:03 PM#1
The_Brewmaster8
i need to creat a pop up board, where player 1 can make one of two selestions. the selesction sets off a trigger. but i dont know how to make the board plz help
07-11-2006, 07:15 PM#2
The)TideHunter(
The 'board' is called a Dialog.
Use the functions to create something.
I will give you a mini-tutorial, but you should look in the tutorial section or search :P.

Mini-tut:

Make a dialog variable (CNTL+B) and call it whatever you want.
Make 2 dialog button variables, and call them Option1 or Option2 or whatever.
Make a trigger like this:

Trigger:
Setup Dialog
Collapse Events
'Your Event'
Conditions
Collapse Actions
Dialog - Clear YourDialog
Dialog - Change the title of YourDialog to (Your Title)
Dialog - Create a dialog button for YourDialog labelled Option 1 Text
Set Option1 = (Last created dialog Button)
Dialog - Create a dialog button for YourDialog labelled Option 2 Text
Set Option2 = (Last created dialog Button)
Dialog - Show YourDialog for SomePlayer

And for the clicking:

Trigger:
Click
Collapse Events
Dialog - A dialog button is clicked for YourDialog
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Option1
Collapse Then - Actions
-------- Your actions for button 1 --------
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Option2
Collapse Then - Actions
-------- Your actions for button 2 --------
Else - Actions
07-11-2006, 07:32 PM#3
N3mezis
Hi !

Dont know if i understand u.
You want to create something where the player can choose weather he wants to go right or left ?
I would do it with dialogs, and if u ask how to do dialogs:
You have to make two triggers, one starts at 0.01 seconds in game (or whenever you want to create the dialog)

Trigger:
Trigger 1
Collapse Ereignisse
Zeit - Elapsed game time is 0.01 seconds
Bedingungen
Collapse Aktionen
Dialog - Change the title of Dialog_variable to Your Question
Dialog - Create a dialog button for Dialog_variable labelled Go to the right way
Set dialog_right_way = (Last created dialog Button)
Dialog - Create a dialog button for Dialog_variable labelled Go to the left way
Set dialog_left_way = (Last created dialog Button)
Dialog - Zeigen Dialog_variable for Spieler 1 (Rot)

Trigger:
Trigger 2
Collapse Ereignisse
Dialog - A dialog button is clicked for Dialog_variable
Bedingungen
Collapse Aktionen
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse 'IF'-Bedingungen
(Clicked dialog button) Gleich dialog_left_way
Collapse 'THEN'-Aktionen
-------- Here your action for option 1 --------
Collapse 'ELSE'-Aktionen
-------- Here your action for option 2 --------

if any problem occurs in reading this partial german stuff, send me a pm :P

bye bye N3m,

[edit]: Sry for postin the same stuff - waited too long
07-11-2006, 08:00 PM#4
PipeDream
Dialogs are awful. Ask yourself if you really want to be using them.
To below: They're ugly, slow, and interact in a singularly frustrating way with chat.
07-11-2006, 08:38 PM#5
N3mezis
hi !

why do u think that dialogs are awful ?

(this shouldnt be any spam) :D

so far n3m
07-11-2006, 11:32 PM#6
The_Brewmaster8
Quote:
Originally Posted by The)TideHunter(
The 'board' is called a Dialog.
Use the functions to create something.
I will give you a mini-tutorial, but you should look in the tutorial section or search :P.

Mini-tut:

Make a dialog variable (CNTL+B) and call it whatever you want.
Make 2 dialog button variables, and call them Option1 or Option2 or whatever.
Make a trigger like this:

Trigger:
Setup Dialog
Collapse Events
'Your Event'
Conditions
Collapse Actions
Dialog - Clear YourDialog
Dialog - Change the title of YourDialog to (Your Title)
Dialog - Create a dialog button for YourDialog labelled Option 1 Text
Set Option1 = (Last created dialog Button)
Dialog - Create a dialog button for YourDialog labelled Option 2 Text
Set Option2 = (Last created dialog Button)
Dialog - Show YourDialog for SomePlayer

And for the clicking:

Trigger:
Click
Collapse Events
Dialog - A dialog button is clicked for YourDialog
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Option1
Collapse Then - Actions
-------- Your actions for button 1 --------
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Option2
Collapse Then - Actions
-------- Your actions for button 2 --------
Else - Actions

thank you. thata is just waht i needed. i just didnt know waht it was called.


and to Pipedream. im making one, so that i only have to make 1 version of the map. instead of there being 2 or 3.
07-12-2006, 12:34 AM#7
The_Brewmaster8
i hit a snag. the dialog comes up. but the buttons for it dont
07-12-2006, 03:11 PM#8
The)TideHunter(
Hide the dialog at the beggining of the creating, and show them when the buttons are created.

Trigger:
Actions:
Dialog - Hide YourDialog for SomePlayer
Dialog - Clear YourDialog
Dialog - Change the title of YourDialog to (Your Title)
Dialog - Create a dialog button for YourDialog labelled Option 1 Text
Set Option1 = (Last created dialog Button)
Dialog - Create a dialog button for YourDialog labelled Option 2 Text
Set Option2 = (Last created dialog Button)
Dialog - Show YourDialog for SomePlayer
07-12-2006, 07:56 PM#9
The_Brewmaster8
ok, ill try it. and if you dont hear back form me. that means it worked
07-12-2006, 08:32 PM#10
Alevice
You could return ad say thanks instead :P
07-14-2006, 12:38 AM#11
The_Brewmaster8
i could come back and say thanks but it didnt work.

so im just going to screw around with it for awile. and if it doesnt work. ill find a new way to make my tirgger
07-14-2006, 01:04 AM#12
Blade.dk
Be sure that you are not creating (displaying is actually the problem, but in most situations it is best to do it all at the same time) the dialog at "Map Initialization", then it won't work - Instead do it after 0.00 seconds has elapsed.