Dialog Help

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Dialog Help

Post by Black-Hole »

Im having trouble with my Dialog box when the game starts and i activate the Dialog box it comes up blank but when i hit enter it clicks the first button?? Yes this is along post i know im sorry about that. This code is only set up for player 1 red. I already found one problem. There is a coding error in the moredialog create box. i forgot to change it to more dialog im parts. I fixed that and it still not working though.

Code: Select all

Command List
    Events
        Player - Player 1 (Red) types a chat message containing -set as An exact match
    Conditions
    Actions
        Dialog - Show Dialog for Player 1 (Red)

Code: Select all

Dialog Create
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Dialog - Clear Dialog
        Dialog - Change the title of Dialog to Cheats
        Dialog - Create a dialog button for Dialog labelled Who is the killer?
        Set killerwho = (Last created dialog Button)
        Dialog - Create a dialog button for Dialog labelled Add life
        Set Addlife = (Last created dialog Button)
        Dialog - Create a dialog button for Dialog labelled Remove life
        Set Removelife = (Last created dialog Button)
        Dialog - Create a dialog button for Dialog labelled Kill
        Set Kill = (Last created dialog Button)
        Dialog - Create a dialog button for Dialog labelled Unlock Camara
        Set UnlockCamara = (Last created dialog Button)
        Dialog - Create a dialog button for Dialog labelled Secret Area
        Set SecretRoom = (Last created dialog Button)
        Dialog - Create a dialog button for Dialog labelled Do Nothing
        Set donothing = (Last created dialog Button)
The triggers that run in this are...

Code: Select all

Who is the killer
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to killerwho
    Actions
        Game - Display to Player Group - Player 1 (Red) the text: ((Name of (Owner of The Killer Vampire 0001 <gen>)) + is the killer!!!!)

Code: Select all

Add Lifes
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to Addlife
    Actions
        Trigger - Turn on Add lifes to selected player <gen>

Add lifes to selected player
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
    Actions
        Set VictimLives[(Player number of (Owner of (Picked unit)))] = (VictimLives[(Player number of (Owner of (Picked unit)))] + 1)
        Trigger - Turn off Add lifes to selected player <gen>

Code: Select all

Remove Lives
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to Removelife
    Actions
        Trigger - Turn on Remove life from selected player <gen>


Remove life from selected player
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
    Actions
        Set VictimLives[(Player number of (Owner of (Picked unit)))] = (VictimLives[(Player number of (Owner of (Picked unit)))] - 1)
        Trigger - Turn off Remove life from selected player <gen>

Code: Select all

Kill
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to Kill
    Actions
        Dialog - Hide Dialog for Player 1 (Red)
        Dialog - Show moredialog for Player 1 (Red)


Kill Selected
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
    Actions
        Unit - Kill (Picked unit)
        Game - Display to (All players) the text: ((Name of (Owner of (Picked unit))) + was killed by the Guardians)
        Trigger - Turn off Kill Selected <gen>

Code: Select all

Unlock Camara
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to UnlockCamara
    Actions
        Trigger - Turn on Unlock Camara Selected <gen>


Unlock Camara Selected
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
    Actions
        Camera - Reset camera for Player 1 (Red) to standard game-view over 0.00 seconds
        Trigger - Turn off Unlock Camara Selected <gen>

Code: Select all

Secret
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to SecretRoom
    Actions
        Trigger - Turn on Secret Command <gen>


Secret Command
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
    Actions
        Unit - Move (Picked unit) instantly to (Center of Hidden Dongen Entrance <gen>)
        Trigger - Turn off Secret Command <gen>

Code: Select all

Dialog Box Create 2
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Dialog - Clear moredialog
        Dialog - Change the title of Dialog to Turn on Kill
        Dialog - Create a dialog button for Dialog labelled Yes
        Set Yes = (Last created dialog Button)
        Dialog - Create a dialog button for Dialog labelled No
        Set No = (Last created dialog Button)


Untitled Trigger 001
    Events
        Dialog - A dialog button is clicked for moredialog
    Conditions
        (Clicked dialog button) Equal to Yes
    Actions
        Trigger - Turn on Kill Selected <gen>


Untitled Trigger 003
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to No
    Actions
        Dialog - Hide Dialog for Player 1 (Red)
        Dialog - Hide moredialog for Player 1 (Red)

Code: Select all

Do nothing
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to donothing
    Actions
        Dialog - Hide Dialog for Player 1 (Red)

Dialog Is Clicked
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        Or - Any (Conditions) are true
            Conditions
        (Clicked dialog button) Equal to Addlife
        (Clicked dialog button) Equal to Removelife
        (Clicked dialog button) Equal to Kill
        (Clicked dialog button) Equal to UnlockCamara
        (Clicked dialog button) Equal to SecretRoom
    Actions
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...


Dialog Is Clicked Copy
    Events
        Dialog - A dialog button is clicked for moredialog
    Conditions
        Or - Any (Conditions) are true
            Conditions
        (Clicked dialog button) Equal to Yes
    Actions
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...
        Game - Display to Player Group - Player 1 (Red) the text: You must click on a...

User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Dialog Help

Post by Xantan »

heres your problem:

place your function mains of the portion of this dialog and place them below what was already on the map, not counting the locals.

should fix it from not showing up right.

if it doesnt: change when your dialog is made, and assure yourself of your coding... =/ touchups are good...

gui sorta sucks sometimes
Black-Hole
Forum Fanatic
Posts: 315
Joined: October 16th, 2007, 7:32 pm

Re: Dialog Help

Post by Black-Hole »

I really wish the command Create advanced dialog box worked in WEU.
It no work in my WEU

I got the boxes to show up but now there is something else going on.

The triggers where you have to select a unit for them to work

EX: Remove life trigger i have posted above
When i select a unit owned by blue it removes a life from me not blue?
It works like that for all of the selection triggers that i made.
I want it so when you select a unit owned by blue it removes a life or does what ever else.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Dialog Help

Post by Xantan »

advanced weu triggers require advanced triggers and other things multiboards related enabled in the WEU Enhancer, a seperate exe file, looks like a drow ranger i think. open that, then open your map, then enable the advanced, then save.

good luck then, unless you want to do it the hard way, lol (fun way imo)