Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Assign variable tag (http://forums.wolflair.com/showthread.php?t=62439)

Illyahr April 14th, 2019 11:05 AM

Assign variable tag
 
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?

Sendric April 15th, 2019 04:14 AM

Quote:

Originally Posted by Illyahr (Post 278011)
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]


Illyahr April 15th, 2019 03:23 PM

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


All times are GMT -8. The time now is 09:52 AM.

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