This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I need some help with 2 buttons on my map. I'm having one button triggering one event and vise-versa First, i made the buttons.
Quote:Dialog - Create a Modal dialog of size (200, 90) at (10, 360) relative to Top Right of screen Dialog - Create a button for dialog (Last created dialog)...blah blah Dialog - Show (Last created dialog) for (All players) Dialog - Create a Modal dialog of size (200, 90) at (10, 275) relative to Top Right of screen Dialog - Create a button for dialog (Last created dialog)... blah blah Dialog - Show (Last created dialog) for (All players)
Dialog - Create a Modal dialog of size (200, 90) at (10, 360) relative to Top Right of screen
Dialog - Create a button for dialog (Last created dialog)...blah blah
Dialog - Show (Last created dialog) for (All players)
Dialog - Create a Modal dialog of size (200, 90) at (10, 275) relative to Top Right of screen
Dialog - Create a button for dialog (Last created dialog)... blah blah
now i want two have two separate triggers each referring to each button being pressed.
ex.
(new trigger: Event> *Button 1 is pressed* Action: run trigger1
(new trigger: Event> *Button 2 is pressed* Action: run trigger2
but the only event i can get is:
Quote:Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked
Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked
how can i assign the above bolded to the separate dialog button instead of "any dialog item" or "Last Created dialog item" ?
Thanks in advanced, hopefully you understand what i'm asking!
Quote from copperfront: GoI need some help with 2 buttons on my map. I'm having one button triggering one event and vise-versa First, i made the buttons. Quote: Dialog - Create a Modal dialog of size (200, 90) at (10, 360) relative to Top Right of screen Dialog - Create a button for dialog (Last created dialog)...blah blah Dialog - Show (Last created dialog) for (All players) Dialog - Create a Modal dialog of size (200, 90) at (10, 275) relative to Top Right of screen Dialog - Create a button for dialog (Last created dialog)... blah blah Dialog - Show (Last created dialog) for (All players) now i want two have two separate triggers each referring to each button being pressed. ex. (new trigger: Event> *Button 1 is pressed* Action: run trigger1 (new trigger: Event> *Button 2 is pressed* Action: run trigger2 but the only event i can get is: Quote: Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked how can i assign the above bolded to the separate dialog button instead of "any dialog item" or "Last Created dialog item" ? Thanks in advanced, hopefully you understand what i'm asking!
I need some help with 2 buttons on my map. I'm having one button triggering one event and vise-versa First, i made the buttons. Quote:
but the only event i can get is: Quote:
You can separate it with a condition: button 1 == used dialog item
You can assign them to variables. Something like this.
This Variable: DialogButtons = No Dialog Item <Dialog Item[2]>
Map Int trigger:
Map Initialization Events Game - Map initialization Local Variables Conditions Actions Dialog - Create a Modal dialog of size (200, 90) at (10, 360) relative to Top Right of screen Dialog - Create a button for dialog (Last created dialog) with the dimensions (190, 30) anchored to Top Left with an offset of (0, 0) setting the tooltip to "Tooltip" with button text "Press Me!" and the hover image set to "" Variable - Set DialogButtons[1] = (Last created dialog item) Dialog - Create a button for dialog (Last created dialog) with the dimensions (190, 30) anchored to Bottom Left with an offset of (0, 0) setting the tooltip to "Tooltip" with button text "Press Me!" and the hover image set to "" Variable - Set DialogButtons[2] = (Last created dialog item)
And then in your event triggers detecting for it to be pressed do this.
Event 1 Events Dialog - Any Dialog Item is used by Player Any Player with event type Clicked Local Variables Conditions (Type of (Used dialog item)) == (Type of DialogButtons[1]) Actions ------- Ohhhh ACTION!
Quote from ZeroAme: GoYou can assign them to variables. Something like this. This Variable: DialogButtons = No Dialog Item <Dialog Item[2]> Map Int trigger: Map Initialization Events Game - Map initialization Local Variables Conditions Actions Dialog - Create a Modal dialog of size (200, 90) at (10, 360) relative to Top Right of screen Dialog - Create a button for dialog (Last created dialog) with the dimensions (190, 30) anchored to Top Left with an offset of (0, 0) setting the tooltip to "Tooltip" with button text "Press Me!" and the hover image set to "" Variable - Set DialogButtons[1] = (Last created dialog item) Dialog - Create a button for dialog (Last created dialog) with the dimensions (190, 30) anchored to Bottom Left with an offset of (0, 0) setting the tooltip to "Tooltip" with button text "Press Me!" and the hover image set to "" Variable - Set DialogButtons[2] = (Last created dialog item) And then in your event triggers detecting for it to be pressed do this. Event 1 Events Dialog - Any Dialog Item is used by Player Any Player with event type Clicked Local Variables Conditions (Type of (Used dialog item)) == (Type of DialogButtons[1]) Actions ------- Ohhhh ACTION!
Map Initialization Events Game - Map initialization Local Variables Conditions Actions Dialog - Create a Modal dialog of size (200, 90) at (10, 360) relative to Top Right of screen Dialog - Create a button for dialog (Last created dialog) with the dimensions (190, 30) anchored to Top Left with an offset of (0, 0) setting the tooltip to "Tooltip" with button text "Press Me!" and the hover image set to "" Variable - Set DialogButtons[1] = (Last created dialog item) Dialog - Create a button for dialog (Last created dialog) with the dimensions (190, 30) anchored to Bottom Left with an offset of (0, 0) setting the tooltip to "Tooltip" with button text "Press Me!" and the hover image set to "" Variable - Set DialogButtons[2] = (Last created dialog item) And then in your event triggers detecting for it to be pressed do this. Event 1 Events Dialog - Any Dialog Item is used by Player Any Player with event type Clicked Local Variables Conditions (Type of (Used dialog item)) == (Type of DialogButtons[1]) Actions ------- Ohhhh ACTION!
I'll gve this a try, i'll get back after i try it!
@ZeroAme: Go
Thank you so much, worked like a charm!
(This board needs a rep system)
I need some help with 2 buttons on my map. I'm having one button triggering one event and vise-versa First, i made the buttons.
now i want two have two separate triggers each referring to each button being pressed.
ex.
(new trigger: Event> *Button 1 is pressed* Action: run trigger1
(new trigger: Event> *Button 2 is pressed* Action: run trigger2
but the only event i can get is:
how can i assign the above bolded to the separate dialog button instead of "any dialog item" or "Last Created dialog item" ?
Thanks in advanced, hopefully you understand what i'm asking!
You can separate it with a condition: button 1 == used dialog item
You can assign them to variables. Something like this.
This Variable: DialogButtons = No Dialog Item <Dialog Item[2]>
Map Int trigger:
And then in your event triggers detecting for it to be pressed do this.
I'll gve this a try, i'll get back after i try it!
@ZeroAme: Go
Thank you so much, worked like a charm!
(This board needs a rep system)