Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Predictably Damaged
Junior Member
 
Join Date: Mar 2019
Posts: 10

Old March 27th, 2019, 02:14 PM
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 by Predictably Damaged; March 27th, 2019 at 02:59 PM.
Predictably Damaged is offline   #1 Reply With Quote
dwobbit
Junior Member
 
Join Date: Jan 2020
Posts: 12

Old February 3rd, 2020, 04:26 PM
Something similar to this should work:

doneif (field[usrChosen1].ischosen = 0)
hero.childfound[field[usrChosen1].chosen.idstring].field[cCasterLev].value += abValue
dwobbit is offline   #2 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:27 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.