Redcap's Corner
Well-known member
If I want to create an ability that has an array-based menu with options that get more numerous as the character levels up, where should I start? Is there an ability people know about that does this already that I could use as a template?
I tried starting with an array that contained a row 0 and a row 1, and I tried using the following code nested in an if-then statement that checked to see whether the character was a certain level yet:
And that didn't work. I've dug around and I understand that I can refer to the selected text using field[usrSelect].text and the selected row using field[usrIndex].value but how do I actually add rows?
I tried starting with an array that contained a row 0 and a row 1, and I tried using the following code nested in an if-then statement that checked to see whether the character was a certain level yet:
Code:
field[usrArray].arraytext[2] = "New Option"
And that didn't work. I've dug around and I understand that I can refer to the selected text using field[usrSelect].text and the selected row using field[usrIndex].value but how do I actually add rows?