• 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

Timeing?

Frodie

Well-known member
Sorry to the question.

Making a Custom Ability that if you take the +1 HP Fav Class ability, you get an addition 1 HP.

I think it's a timing issue, but I tried it everywhere, but no luck. It seems to always give the bonus 1 HP.

Post Att 15000


if (hero.tagis[Ability.fcHP] <> 0) then
herofield[tBonusHP].value += 1
endif

Thank you for any help and your time.
 
The tag Ability.fcHP is ALWAYS on every hero. Make a brand new character and before you add ANYTHING look at the Hero tags and you will see it present:
Image4.jpg

So that's why the script is always running. :)

I am not seeing any easy way to figure out which one was taken.
 
tagis only detects presence/abscence of a tag. It is always going to evaluate to either 1 (present) or 0 (not present).
 
Look among the campaign traits added in the 3.5 adventure paths. There's something out there already that fools with doubling up favored class bonuses like this. I think it was legacy of fire.
 
Thanks again, but I think I'll just have to let this go.

This is what I was trying to do from the SGG Tough:

"The tough is much harder to take down than he looks. He gains 1 additional hit point per tough level. For each tough level he gains after taking this talent, he also gains 1 additional hit point. If the tough gains an additional hit point for taking tough as a level in his favored class, he gains yet another bonus hit point."

and the "if (hero.tagis[Ability.fcHP] <> 0) then" will turn it off or on, but if it's on, you gain the +1 to HP regardless of what is chosen and if it's off you don't gain it regardless of what is chosen.

The "legacy of fire" kind of does the same thing, you gain the bonus regardless of what is chosen.

So thanks again for all the help and ideas, but it just looks like it's just something that is not possible.
 
It's definitely doable, you're probably needing to get the timing correct so you can multiply abValue before it is added to the HP.
 
I tried the timing all over the place, but I may have missed something IDK. I also tried to multiply it, but nothing. It is odd, it looks like it should work. I can tell because it can detect if the ability is off or on. But I have spend I think about 4-6 hours on it, so kind of done.
 
Eh, I'll take a look at it for you, but not today. We're pushing a release atm, so too busy right now.
 
Eh, I'll take a look at it for you, but not today. We're pushing a release atm, so too busy right now.
When I looked the other day I didn't really see a way to detect which choice had been made.

One idea I had would be to do a "Replace Thing ID" so you could modify the script on the Favored Class options. The script would be changed to push a tag to the Hero "Custom.fcHP" or "Custom.fcSkill" each time one of the choices was made. Then you could easily do a counttag[Custom.fcHP] to see how many times Bonus HP was taken.

But as this goes out to many people I understand if you try not to do the "Replace Thing ID" though.
 
Yea I tried that also, but it will only apply if you take this one custom ability for the tough archetype. It's cool, it's one of those "crazy" 3pp abilities, lol. Simple to write, next to impossible to code.
 
When I looked the other day I didn't really see a way to detect which choice had been made.

One idea I had would be to do a "Replace Thing ID" so you could modify the script on the Favored Class options. The script would be changed to push a tag to the Hero "Custom.fcHP" or "Custom.fcSkill" each time one of the choices was made. Then you could easily do a counttag[Custom.fcHP] to see how many times Bonus HP was taken.

But as this goes out to many people I understand if you try not to do the "Replace Thing ID" though.

Where were you looking? The Class Levels maybe?

The bonus HP favored class ability (fcHP) is the same as any other favored class ability, it shows how many times it is chosen in the fcCount field. I had a moment to look things over, and it appears that the bonus HP is being added in the same script that abValue is set (at Post Attr 10000), so multiplication won't work. However, you can add fcCount again before that and it should work.

Try this at Post Attr 5000

Code:
hero.child[fcHP].field[abValue].value += hero.child[fcHP].field[fcCount].value

That should effectively double the number of times the user selected the bonus HP option.
 
Wow!! You are the man! It works!

if (hero.tagis[Ability.fcHP] <> 0) then
hero.child[fcHP].field[abValue].value += hero.child[fcHP].field[fcCount].value
endif


Thank you so very much!
 
Back
Top