Bootstrapping conditions (again)
I don't know if this is a commonly misunderstood topic, or if I am uncommonly dense, but I'm still having trouble with bootstrapping conditions. I have a non-unique class ability which grants a +2 bonus to saves against poisons. The fourth time it is picked, it grants immunity to poisons. Since I want to count how many times the ability has been added, I figured that the xIndex field is what I want to use as a criterion for my conditional bootstrap. So, when bootstrapping xImmPois, I added the bootstrap condition 'fieldval:xIndex >= 4', with a timing of <First/500>.
xImmPois isn't adding to the hero, and I'm pretty sure it's the bootstrap timing that is the cause. Where did I go wrong? |
Look in the debug tools - one of the option is to debug field histories - what timings does xIndex change at?
Does this have to be implemented as one ability? Or can it be two of them - the second one of which requires three copies of the first? |
Quote:
|
Humble bump in hopes of further assistance.
|
Your reply asked about tagcount, but I don't know the context - a tagcount of what?
Also, doesn't the alchemist have something very similar to this? Have you studied how that's implemented? |
I had a look at the alchemist's poison resistances, and tried to implement it for my ability, but since this ability is a custom ability, xIndex and xCount aren't valid fields. Instead, I tried using abValue as the argument to swap resistance for immunity:
<Pre-levels 1000> Code:
If we're not active, just get out now Code:
doneif (tagis[Helper.SpcDisable] <> 0) Code:
if (field[abValue].value <= 6) then |
Please be clear when you begin asking your question whether you're using user-added abilities, or class specials that are bootstrapped - all you said was "class ability", so I thought you meant class specials. The solutions in each case are very different. If this is a custom ability, then you don't need to to worry about bootstrap conditions - you just create two abilities - one of which can be taken 3 times, and another that has a prereq of 3 copies of the first, that can just bootstrap immunity without having to worry about bootstrap conditions.
hero.tagcount[HasAbility.XXXXX] >= 3 should work as the exprreq to let you verify that 3 copies have been added. A Rogue Talent called Hold Breath is an example of something that can be taken multiple times and increases its value by 2 for each time taken. |
Thanks Mathias, I will try to be more specific in the future.
|
I'm sad to report that the following prereq produced an unspecified syntax error
hero.tagcount[HasAbility.cLRgAvPoiRes] >= 3 It appears the syntax is correct, so what else could be the problem? |
Duplicate post
|
All times are GMT -8. The time now is 03:37 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.