Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old September 24th, 2016, 12:33 PM
An issue I've been running into a couple times is having a class ability check to see if a special is present.

This, for example, is from the Fury of Vengeance ability:

if (hero.child[xRage] <> 0) then
perform assign[Helper.SpecUp]
hero.child[xRage].field[hTotal].value = maximum(hero.child[xRage].field[hTotal].value, field[hTotal].value)
endif

It's supposed to check if Hero has Rage. If it does, hides the class ability from the Specials tab. The ability functions like rage but doesn't stack so it says the hTotal of Rage would be whichever has a higher value.

In the case Rage is found, Fury of Vengeance adds +2 to Str, +2 to Con, and +1 to Will when raging and fighting Shadowlands creatures so I think it'd look something like this:

if (hero.child[xRage] <> 0) then
if (field[hIsOn1].value <> 0) then
~ +2 Str
~ +2 Con
~ +1 Will
else
~ Barbarian Rage stat boosts
endif
endif

It's that first line that's giving me trouble, and I think the hTotal value check is going to give me trouble. Any suggestions?
Illyahr is offline   #1 Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:42 AM.


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