• 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

Using user-selected class in an ability

I am trying to implement an ability which lets members of races with the ability cast spells as if they were higher level in a class of their choice. I have a drop-down selector for the class, but am not sure how to use it. As I understand, my script should look something like this:
hero.childfound[cHelpWiz].field[cCasterLev].value += 4

Except that I need to replace "cHelpWiz" with "field[usrChosen1].chosen", as follows:
hero.childfound[field[usrChosen1].chosen].field[cCasterLev].value += abValue

which throws the error "non-existent thing 'field' used by script."
Could anyone explain how to do this?
 
Last edited:
Something similar to this should work:

doneif (field[usrChosen1].ischosen = 0)
hero.childfound[field[usrChosen1].chosen.idstring].field[cCasterLev].value += abValue
 
Back
Top