I am trying to determine which item a user choses in a item selection menu. For instance if the menu allows the selection of a creature's natural attacks as follows where the creature has two different slam attacks:
Constrict
Slam
Slam
I want to determine if they have selected the first or second slam then have code run appropriately.
I figure I could run a loop to populate usrArray with the menu items and use usrIndex as the differentiator, but I was wondering if there was an easier way.
Constrict
Slam
Slam
I want to determine if they have selected the first or second slam then have code run appropriately.
I figure I could run a loop to populate usrArray with the menu items and use usrIndex as the differentiator, but I was wondering if there was an easier way.