Will This Work?!?!

BrokenX

New Member
Reaction score
25
K this is to do with my AoS but im not sure if i should post it in the same thread... oh well here it goes k... i got an idea ... but im not sure if it works im making an aos map as you already know ... and i want at the start everything paused then a dialog comes up with 18 options available... 2 pages 1-9 on each page there will be a button on the first page to go to the second and a button on the second to go to the first teir again once the player presses any 1-9 numbers i want it to make the specific hero here example:

Teir One
1. illadin
2. Preistest of The Moon
3. Blade Master
4. Turtle Man
5. SuperMan
6. SpiderMan
7. Gosu
8. Akillis
9. Sunbird

Teir Two Press (N)

Teir Two
1. illadin
2. Preistest of The Moon
3. Blade Master
4. Turtle Man
5. SuperMan
6. SpiderMan
7. Gosu
8. Akillis
9. Sunbird

Back To Teir 1 (M)

Thougth it might be interesting to have a nice little idea like that ... for my map ^^ just don't know how i make this ... lol? sorry about the names just chose random but its just an example:) anybody got an idea how to start this thing???? im not sure if i will add a second page... i will do that next version maybe... more heroes ^^... Thanks for all help... Appreciated...


BrokenX
Life isn't always what you want...
 
Every dialog needs a variable of type "Dialog".
Every button a variable of type "Dialog button".

That said, for two dialogs with lots of "options"...
you might get lost in what button does what ;)


Code:
ShowDialog1
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Dialog - Clear myDialog1
        Dialog - Change the title of myDialog1 to Dialog 1
        Dialog - Create a dialog button for myDialog1 labelled 1. ...
        Dialog - Create a dialog button for myDialog1 labelled 2. ...
        Dialog - Create a dialog button for myDialog1 labelled ... to dialog 2
        Set myButton_toDialog2 = (Last created dialog Button)
        Dialog - Clear myDialog2
        Dialog - Change the title of myDialog2 to Dialog 2
        Dialog - Create a dialog button for myDialog2 labelled 3. ...
        Dialog - Create a dialog button for myDialog2 labelled 4. ...
        Dialog - Create a dialog button for myDialog2 labelled ... to dialog 1
        Set myButton_toDialog1 = (Last created dialog Button)
        Dialog - Show myDialog1 for Player 1 (Red)


Dialog1
    Events
        Dialog - A dialog button is clicked for myDialog1
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to myButton_toDialog2
            Then - Actions
                Dialog - Show myDialog2 for (Triggering player)
                Skip remaining actions
            Else - Actions
        Game - Display to (Player group((Triggering player))) the text: Dialog 1 finished


Dialog2
    Events
        Dialog - A dialog button is clicked for myDialog2
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Clicked dialog button) Equal to myButton_toDialog1
            Then - Actions
                Dialog - Show myDialog1 for (Triggering player)
                Skip remaining actions
            Else - Actions
        Game - Display to (Player group((Triggering player))) the text: Dialog 2 finished


You will have to remember every button created.
My example only cares for those that switch dialogs.

And, those "Game display" actions should, of course, be replaced with a couple
"if button == button1 then ..." (or similar) actions.


HTH
AceHart
 
hmmm so now i need to make a trigger for every button so it will make the hero i think i can do that now ^^... maybe u better help me out Acehart just give me one example and im good ;)

hmmm .... The first part there it says Clear mydialog1 that is a variable right? and variable type is a dialog correct...?... then every button I make i need to make a variable for right...? and its variable type is Button Clicked?
 
BrokenX said:
hmmm so now i need to make a trigger for every button so it will make the hero i think i can do that now ^^... maybe u better help me out Acehart just give me one example and im good ;)

The part that checks for "do I need to switch dialogs", actually, was an example... :)

Code:
Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Clicked dialog button) Equal to <some button>
        Then - Actions
            *** do something here for this button ***
            Skip remaining actions
        Else - Actions


hmmm .... The first part there it says Clear mydialog1 that is a variable right? and variable type is a dialog correct...?... then every button I make i need to make a variable for right...? and its variable type is Button Clicked?

Yep.
(Except that "button clicked" is not a variable type, should be "dialog button".)



You could make a variable of type "unit-type - array",
a couple "set variable",
set myHeroArray[ 1 ] = <Hero 1>
set myHeroArray[ 2 ] = <Hero 2>

Then a "dialog button", array also.
and store the buttons in the exact same order as the Heroes.
I.e. a click on <button 5> will create <Hero 5>

Then all you really need is a simple loop
for integer A = 1 to <number of Heroes>
if (clicked dialog button) equal to myDialogButtons[ Integer A ]
then create myHeroArray[ Integer A ] for (triggering player)



HTH
AceHart
 
so... basically like a only one of kind type thing? only with dialogs man thats messed :P but i like it good idea :) just this might take a while im new to dialogs ^^ but im a fast learner. AceHart also in your cody the first one you posted said something like Set myButton_toDialog2 = (Last created dialog Button) im not sure if thats exact but something like that u said how do u get it so the last created button comes up ... don't get it..
 
k AceHart ... im done the main dialog triggers ... got my 9 buttons on both dialogs ... they work fine but now im working on the hero chooser i started off like this

Events
dialog - a button on MyDialog1 has been clicked.
conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions (Buttonpressed) is equal to
Then - Actions Create one (Archer) for (triggering Unit) at (region)
Else - Actions do nothing

Thats were i got confused... what do i put for button pressed is equal to... because i never made the buttons into variables... so im kinda lost... and ... how would I make it so ... if the owner of triggering unit goes to a certain region... say like team1 player blue chooses a hero... i want it to go to his base... (region) is that possible?
 
BrokenX said:
because i never made the buttons into variables...

Then I'm not surprised you can't find out which button was clicked... :)

Every
"Dialog - Create a dialog button for <my Dialog> labelled <text>"
must be followed by
Set <my Button variable> = (Last created dialog Button)


Any button you plan on actually using must be remembered!
 
k i think i understand its like the button that lets u move to the next page... you need to set the variable ???? were would i set it after each button... would i just set the variable right after the button like the one that lets u move to the next page and back...?
 
BrokenX said:
they are not arrays correct ? and it doesn't matter what name of variable is?

You need a variable for each button and the name doesn't matter.
 
Thanks guys got it working perfect ;) i made so when they pick there here (click button basically) it moves to the... Region i have made them all to setup to go to now i made to other seperat triggers it checks to see if player 2-6 is in that region if they are it moves them to there base then same thing for other team ;) only way i could think of doing it ... :) thanks for help dialog works like beautiful now...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Staff online

  • Ghan
    Administrator - Servers are fun

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top