So I have a dialog button with a variable ID of "Ibutton[triggering player(8)][first available button(13)]" that takes an item name saves it to a string with the variable Istring[triggering player(8)][first available button (13)]and does a few other things, later, when Ibutton[8][13] is pressed I want it to check and compare Istring[8][13] with another constant string and then do actions based on that. buttons will be changed frequently and a lot of strings are going to have to be compared so lots of if else statements wont work. The problem is that when "Any Dialog Item is used by Player Any Player with event type Clicked" I cannot pull out what array number it used (in the second bracket) and tell it to search and compare strings with that array because one is a dialog item and one is a string. Maybe I'm just tired and i'm missing something obvious but I don't see a function to figure out what array the dialog button was on.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I have a dialog button with a variable ID of "Ibutton[triggering player(8)][first available button(13)]" that takes an item name saves it to a string with the variable Istring[triggering player(8)][first available button (13)]and does a few other things, later, when Ibutton[8][13] is pressed I want it to check and compare Istring[8][13] with another constant string and then do actions based on that. buttons will be changed frequently and a lot of strings are going to have to be compared so lots of if else statements wont work. The problem is that when "Any Dialog Item is used by Player Any Player with event type Clicked" I cannot pull out what array number it used (in the second bracket) and tell it to search and compare strings with that array because one is a dialog item and one is a string. Maybe I'm just tired and i'm missing something obvious but I don't see a function to figure out what array the dialog button was on.