• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Determining exact menu item chosen

frumple

Well-known member
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.
 
If no tag is separating out one slam from another why does it matter which one is chosen? If the damage, number of attacks, where its bootstrapped from are all same seems strange to care.

Maybe more of what you are trying to accomplish?

Otherwise HL does generate a Unique ID for each Instance of the wSlam attack Thing. But it would change each time HL was loaded. But I guess you could always use the higher of the two values to assume you have the "2nd" one...
 
The ability I am trying to implement is a racial custom special applied through a configurable. It adds extra damage to the selected attack. It can be taken more than once, each time it increases the extra damage. Thus I need to know which attack has been chosen so I can add the appropriate extra damage to the specific attack.
 
Back
Top