• 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

Scripting for Gizmos

Steelight

Member
I'm trying to add a gizmo to a weapon dependent on the characters class level in Barbarian.

I can't seem to figure out what the script is for adding the gizmo. I've got:

var level as number
level = field[xAllLev].value
if (level >=20) then
field [BonEnhance].value = 2
(insert script to add gizmo here)
elseif (level >=11) then
field [BonEnhance].value = 1
(insert script to add gizmo here)
else
field [BonEnhance].value = 0
endif

Any help I can get would be greatly appreciated please.
 
Last edited:
Please describe this in game rules, because I don't understand what you're trying to accomplish in Hero Lab.

Also, careful of capitalization and spelling. Your "level" variable switches to "Level" on one line, and the xAllLev field has been misspelled xAllLex. You've also got some spaces between field and [.
 
I retyped it, but I did verify all of the capitalization is correct in hero lab itself.

I'm trying to give a normal weapon magical properties when a character reaches certain levels.

This is based on a class ability for a new archetype I'm working on. But basically, when the character is raging they gain the initial weapon. I've got that set up and it works. If the character is 11th level or greater, I want to give the weapon the iFrost ability. And at 20th level the iIcyBurst ability. I am also changing the name of the weapons based on level as well using the field[livename].text = "xxx" format.

I tried using multiple weapons (making the last two magical weapons) but the sequencing wouldn't allow me to do it due to the timing associated with magical weapons.

This is supposed to be only for a specific archetype of barbarian that I am creating.
 
So I should be placing the name change and the bonuses in an eval script and the actual item abilities in bootstraps then?

And how do I make it count barbarian levels only instead of total level count?

Would the condition scripting look something like:
if hero#count:classes.barbarian >=11 then
????? (not sure what to put here)
else
perform assign[Helper.SpcDisable]
endif


When I try scripting like this in a bootstrap it gives me an error: Invalid tag template specified 'if'
If I remove the "if" part it gives me: Invalid tag template specified 'count:'
 
Last edited:
Back
Top