• 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

usrChosen1

Frodie

Well-known member
Ok, last one: If the user choses Cha attribute then it will assign the custom ability.


if (field[usrChosen1].ischosen <> 0) then
if (field[usrChosen1].chosen.field[aCHA].assign[cMHPathCha]
 
Ok, last one: If the user choses Cha attribute then it will assign the custom ability.


if (field[usrChosen1].ischosen <> 0) then
if (field[usrChosen1].chosen.field[aCHA].assign[cMHPathCha]
Sort of guessing here your trying to assign a Custom Tag called "cMHPathCha"? You can't assign/bootstrap an ability by a script so I assume its a tag.

Code:
~If nothing chosen get out now
doneif (field[usrChosen1].ischosen <> 1)
~ Assign tag to chosen Thing
perform field[usrChosen1].chosen.assign[Custom.cMHPathCha]
 
That's close, but not quite. The user can chose any attribute, but if a certain one is chosen, then it adds a custom ability.
 
I think the best way you'll be able to handle this is to bootstrap all the possible abilities and then add conditionals to each ability based on a tag. Then, you can assign the appropriate tag based on the usrChosen1 choice.
 
Thanks yall, but I think I will go in a different direction that isn't so complicated. :-)
Thanks again for everyone's help.
 
Back
Top