• 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

Assign variable tag

Illyahr

Well-known member
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?
 
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]
 
For some inexplicable reason, having the ability assign User.DivFastHeal is assigning User.DivineGrc, according to the tags I'm looking at

Edit: ok, after reloading the system it assigns the appropriate tag. I dont know why it does that but little errors like this keep happening
 
Last edited:
Back
Top