Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old May 8th, 2022, 11:36 AM
Doing some code and, as far as I can tell, it all works. However, it keeps coming back wrong.

Code:
var stat as string
var bonus as number
var trunc as number
stat = hero.child[cHelpStk].tagids[User.a?]
Comes back as "User.aWIS" (it can be changed later, hence the code)

Code:
trunc = length(stat)-5
stat = right(stat,trunc)
Comes back as "aWIS"

Code:
stat = "#attrmod[" & stat & "]"
Comes back as "#attrmod[aWIS]"

Code:
bonus = stat
Comes back as 0. Actually putting the stat in comes back correctly, but not if I use the script.

I have a Patreon and PayPal. Donations are appreciated but are not mandatory. They are only to show support while I program stuff.

Last edited by Illyahr; May 8th, 2022 at 11:42 AM.
Illyahr is offline   #1 Reply With Quote
 


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 02:15 PM.


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