Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
I am implementing a template and am trying to put a condition on a bootstrap that only applies if the target creature has a swim speed. However, I cannot figure out how to do it. Can someone point me int he right direction?
|
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Is there another way you can go about this? Whether a creature has a swim speed or not tends to be decided much later (in the post-attributes phase) than you can add a bootstrap condition (in the first phase).
Can you write a script that will hide and disable the other ability if there's no swim speed? |
#2 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
I figured since this is a template the condition could test if the target creature already has the swim speed or not. If it doesn't then add the race special to the template, if it does then don't add it.
Hmm.... maybe as a Pre-req on the race special I want to bootstrap??? |
#3 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
nope... that didn't work
I thought I could do a Pre-req much like that for the Flyby Attack feat (where is checks if you have a Fly speed or not). |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Failing a prereq doesn't mean that you're not allowed to take that thing, and doesn't keep it from working - it just complains.
Could you be more specific about what this other ability is doing? Without knowing specifics, I can't help you write that script. |
#5 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
Sure thing.
It is for the Terkow template. They have an weakness called Salt Water Vulnerability (which I entered as a Race Special) which they get as long as the target creature doesn't have a swim speed. What I want to do is to check if the target creature has a swim speed. If it does then the Salt Water Vulnerability special doesn't get bootstraped to the target. If they don't, then they get it. |
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
So it's text-only - that makes it easy - you only need to run the test and hide it if the test fails (you don't need to apply some effect if there's no swim speed)
An Eval Script on the Vulnerability to Salt Water special you created for this template: phase: Final, priority: 20000 Code:
~find our swim pick, then see if it has a swim speed of 0 if (hero.child[xSwim].field[abValue].value = 0) then ~if so, hide and disable ourself perform assign[Hide.Special] perform assign[Helper.SpcDisable] endif |
#7 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
Thanks! I was so focused on putting a condition on the bootstrap I didn't think of that!
|
#8 |
Senior Member
Join Date: Jul 2007
Location: Syracuse, NY (USA)
Posts: 213
|
Sometimes its just easiest to hide something, instead of messing around with conditional bootstraps! The timing can easily get messy.
|
#9 |
|
|