• 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

Bootstrap condition - Swim speed

frumple

Well-known member
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?
 
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?
 
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???
 
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).
 
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.
 
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.
 
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
 
Sometimes its just easiest to hide something, instead of messing around with conditional bootstraps! The timing can easily get messy.
 
Back
Top