View Single Post
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