View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 2,834

Old April 15th, 2019, 04:14 AM
Quote:
Originally Posted by Illyahr View Post
I wish things had stuck with Value fields instead of Value tags. They're easier to alter.

So I want to provide a value to xFastHeal based on variables. It will be
Code:
perform hero.assign[User.Ability]
var bonus as number
bonus = adjust
(Ability count * 20) + (Ability count * adjustment)
perform hero.childfound[xFastHeal].assign[Value.bonus]
It doesn't recognize "bonus" so how do I assign this?
You'll want to use assignstr instead. Off the top of my head, that would look like this:

Code:
perform hero.assign[User.Ability]
var bonus as string
bonus = "Value." & adjust
(Ability count * 20) + (Ability count * adjustment)
perform hero.childfound[xFastHeal].assignstr[bonus]
Sendric is offline   #2 Reply With Quote