Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old January 4th, 2012, 12:29 PM
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?
frumple is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 4th, 2012, 12:35 PM
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?
Mathias is offline   #2 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old January 4th, 2012, 02:35 PM
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???
frumple is offline   #3 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old January 4th, 2012, 02:39 PM
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).
frumple is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 4th, 2012, 02:48 PM
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.
Mathias is offline   #5 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old January 4th, 2012, 02:53 PM
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.
frumple is offline   #6 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 4th, 2012, 02:59 PM
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
Mathias is offline   #7 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old January 4th, 2012, 03:12 PM
Thanks! I was so focused on putting a condition on the bootstrap I didn't think of that!
frumple is offline   #8 Reply With Quote
huntercc
Senior Member
 
Join Date: Jul 2007
Location: Syracuse, NY (USA)
Posts: 213

Old January 4th, 2012, 03:26 PM
Sometimes its just easiest to hide something, instead of messing around with conditional bootstraps! The timing can easily get messy.
huntercc is offline   #9 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:01 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.