Coding at a loss
Ok maybe I am out of my depth here but I need some help with the code for a racial special ability.
Basically, I need the ability to check for wild empathy, and if so add a bonus to a variable racial ability. I have figured out the code for the variables but I can't find any explanation anywhere explaining how I get it to search for wild empathy? please help! |
Code:
if (#hasability[cWildEmp] <> 0) then |
thanks mate
|
Ok what am I doing wrong?
Post Attr/10000 Code:
if (#hasability[cWildEmp] <> 0) then |
HasAbility tags are not forwarded to the hero until way late. They are basically only for checking if pre-reqs are satisfied. Try using "hero.childlives[cWildEmp]" in the first branch of your code instead.
|
thanks Aaron
|
#hasability uses hero tags that are processed very late in timing as its meant for Pre-Req's not for standard checking. Meaning I assume your problem is that you always getting the bottom calculation.
The easy way is to fix the IF statement to check for the hero ability tag. Code:
if (hero.tagis[Ability.cWildEmp] <> 0) then |
cool, that'll work too, thanks SC
|
All times are GMT -8. The time now is 12:04 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.