• 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

Class Special ability that grants feat..

Pezmerga

Well-known member
Ok I see how to restrict the feat granted by class level (count:Classes.XXX >= 4), but how would I restrict it to only granting the feat if the class ability is activated?

Or as an alternative, what is the script code for granting a feat? I know how to script things to happen after a certain level.
 
Last edited:
On the feat's condition, you presumably already have the level requirement set up:

Code:
count:Classes.XXX >= 4
modify that to also require the class ability to be active:

Code:
count:Classes.XXX >= 4 & fieldval:abilActive <> 0
 
On the feat's condition, you presumably already have the level requirement set up:

Code:
count:Classes.XXX >= 4
modify that to also require the class ability to be active:

Code:
count:Classes.XXX >= 4 & fieldval:abilActive <> 0



Oh ok thanks.
The Ability I made gives bite as a natural attack
I did that under bootstraps, but how would I give the natural attack an enhancement bonus equal to 1/4 the class level?
 
Code:
#applybonus[BonEnhance, hero.childfound[wBite], field[abValue].value]
calculate abValue as 1/4 of the class level before then.
 
2 More quick questions and I think I should be good for the shapeshift variant druid...

changing base speed,
I see that #enhancementbonus[container.child[Speed], field[abValue].value]
would add to the base speed of a creature, but how would I set the base speed to an amount instead of adding to the base?
for instance in wolf form base speed becomes 50, If i added 20 to an assumed base of 30 then small creatures would only move 40 in wolf form.

Also how would I change reach and space. I cannot find another ability that shows either of these. Thanks :)
 
hero.child[Speed].field[Speed].value += field[abValue].value

Reach and space should automatically be calculated with size changes, as long as your creature uses the defaults (BTW, use a human as your test character if you want to see reach and space - the calculations are on the race, so you won't see them if you're testing on a race-less test character).
 
hero.child[Speed].field[Speed].value += field[abValue].value

Reach and space should automatically be calculated with size changes, as long as your creature uses the defaults (BTW, use a human as your test character if you want to see reach and space - the calculations are on the race, so you won't see them if you're testing on a race-less test character).

How do you change a creatures size in an eval script to long? (like a medium long creature, or large long creature.) I need to make it so some of my custom animal forms change the creature to a long creature. Or can you only adjust the Reach?

Also, I am getting that Speed isnt a valid field in my eval script code.

Code:
~only run the rest for the first copy
doneif (tagis[Helper.FirstCopy] = 0)

~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

if (#levelcount[Druid2] >= 4) then
field[abSumm].text = "+4 Str, +4 natural armor, and bite attack (Magic) - 1d6."
endif

~only run the rest if we're activated
doneif (field[abilActive].value = 0)

hero.child[aSTR].field[aNormMod].value += 4 

hero.child[Speed].field[Speed].value = 50

field[abValue].value += round(field[xAllLev].value/4,0,-1)

#applybonus[BonEnhance, hero.childfound[wBite], field[abValue].value]

~if we're active, tell that to the hero, so we can enforce the
~restriction on the number of forms active at once
perform forward[Custom.ActiveForm]
 
Last edited:
Actually I just did

perform hero.findchild[BaseRace].setfocus
focus.field[rSpeed].value = #

and that worked.

Still curious about long creatures though, but I got it to work by adjusting reach.

And I'd like to give a creature a flyspeed in the special tab (only when an ability (form) is activated) , Thats next ont he todo list if anyone can help there :)
 
Last edited:
hero.child[Speed].field[tSpeed].value - I forgot tSpeed vs. Speed.

Take a look at the Draconic Sorcerer's wings ability - that has a fly speed only while activated.

Whether a creature uses the Long reach calculations is dependant on whether or not the hero has either the Helper.Quadruped or Helper.ManyLegs tags.
 
Back
Top