HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with dialogs.....

03-05-2003, 10:36 PM#1
FyreDaug
Alright, if someone can point me to a good tutorial on Dialogs, feel free to do so

But if someone can easily explain how to do this, would also be appreciated.

So far what I want to do is when you press ESC (Skip a cinematic) I want the menu to come up, the menu will consist of

Commands
Help
Save
Exit

When it comes up and you click on Commands or Help another submenu will pop up. The rest I can figure out once you explain this.

I feel like such a newbie to this, I can't even get my dialog to show up.

Code:
Change the title of dialog
Add button 1
Add button 2
Add button 3
Add button 4
Show dialog

Thanks.
03-05-2003, 10:46 PM#2
PhAtTiM89
Check out the Dialog Engine or the Bag Demo.
08-29-2003, 05:02 PM#3
Guest
This is from an expert.



1. Creating variables:



Variable Name: Variable Type: Initial Value:

Main_Menu Dialog NONE

Help_Button Dialog Button Array NONE

Save_Button Dialog Button Array NONE

Exit_ Button Dialog Button Array NONE


2. Triggers:

Event: Map Initiation

Conditions: NONE

Actions:

Dialog- create a dialog Button for
Main_Menu named Help


Set Variable- set Help_Button [0]=[last created dialog button

Dialog- create a dialog button for Main_Main named Save

Set Variable- Set Save_Button [1]=[last created dialog button

Dialog-create a dialog button for Main_ menu named exit

set variable- set save_button[2]=[last created dialog button]


Now the triggers need when a dialog button is pushed:

Event: Player- a dialog button is clicked

Conditions: NONE

Actions: If/Then/Else-If [clicked dialog button] is equal to Help_Button then do [the action you want] or else do nothing

If/Then/Else-If [clicked dialog button] is equal to Save_Button then do [the action you want] or else do nothing

If/Then/Else- If [clicked dialog button] is equal to Exit_Button then do [the action you want] or else do nothing

Triggers to show the menu:

Event: Cinematic is skipped *note Map initiation can not be used for this If you want the dialog box to show right when the map starts use the event Time- Time Elasped in 1 second of game time

Conditions NONE

Actions: Dialog- Show Main_ menu

Dialog-change title of Main_Menu to Commands


And Thats about It! Woo that was long


Good Luck!:D
08-29-2003, 05:47 PM#4
Toxicseaweed
Whenever u change the name once of the dialog it looks all dandy. Thou if i try and open the dialog again *i'm just fiddling with stuff* the name is gone!?!? do i need to reset the name everytime that dialog opens?
08-29-2003, 07:37 PM#5
chemo
this is some from my admin mod... maybe it helps :D
08-29-2003, 07:38 PM#6
chemo
second one