If you've saved a bunch of buttons as a Dialog Item array variable, and you want to create an Event with conditions specifying any entry in this particular array variable, is it possible to select [ANY] to avoid inputing each array integer by hand?
I'm looking for an alternative to this:
Events
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Atleast I use loops to check what button is pressed. Dont know if there is even better way to that (I think its quite simple, but it will run lots of loops everytime)
The solution i found was far more simpeler then i every thought it would be.
Ditch the array and loops and use Data Table with you own logical naming.
An example of my own code lines i use
Dialog - ("DG Section Minus 1" from the Global data table) is used by Player Any Player with event type Clicked
Dialog Item Is Used
Item: Value From Data Table (Dialog Item)
Name: "DG Section Minus 1"
Scope: Global
Player: Any Player
Event Type: Clicked
You can ofcourse also just keep it as "any dialog item" in the event and use these in if-then-else structure to respond to individual dialog items.
The reference "Value From Data Table" has made my life alittle easier concerning dialogs.
Also note Datatable entries do not count towards your maximum memory usage in the map so it will save space as well
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
If you've saved a bunch of buttons as a Dialog Item array variable, and you want to create an Event with conditions specifying any entry in this particular array variable, is it possible to select [ANY] to avoid inputing each array integer by hand?
I'm looking for an alternative to this:
Events Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Conditions Or Conditions (Used dialog item) == UI: Shop (Record).ITEM: Button[1][1] (Used dialog item) == UI: Shop (Record).ITEM: Button[1][2] (Used dialog item) == UI: Shop (Record).ITEM: Button[1][3] (Used dialog item) == UI: Shop (Record).ITEM: Button[1][4]
Edit: *What I'm showing is "Or Conditions" with many conditions
Atleast I use loops to check what button is pressed. Dont know if there is even better way to that (I think its quite simple, but it will run lots of loops everytime)
I had the same issue a while back.
The solution i found was far more simpeler then i every thought it would be.
Ditch the array and loops and use Data Table with you own logical naming.
An example of my own code lines i use
Dialog - ("DG Section Minus 1" from the Global data table) is used by Player Any Player with event type Clicked
Dialog Item Is Used
Item: Value From Data Table (Dialog Item)
Name: "DG Section Minus 1"
Scope: Global
Player: Any Player
Event Type: Clicked
You can ofcourse also just keep it as "any dialog item" in the event and use these in if-then-else structure to respond to individual dialog items.
The reference "Value From Data Table" has made my life alittle easier concerning dialogs.
Also note Datatable entries do not count towards your maximum memory usage in the map so it will save space as well