Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game


Thread Tools Display Modes
Lord Magus
Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 355

Old December 10th, 2017, 08:09 AM
I'm trying to code an item that is basically the same as a Lion Cloak, but allows you to polymorph into an owlbear instead of a lion. It otherwise uses the same mechanics, being based on Beast Shape II (even though Beast Shape II does not normally allow you to polymorph into a magical beast).

This is the code used by Lion Cloak on Polymorph Phase 3 to limit the shape choices to Lion

gizmo.child[PolymoHelp].field[foCandExpr].text = "Race.rmLion & HasType.tpAnimal & (RaceSize.Large1 | RaceSize.Medium0 | RaceSize.Small11 | RaceSize.Tiny12)"
I tried to replace rmLion with rOwlbear, and tpAnimal with tpMagBeast, but this does not restrict the available shapes to Owlbear, like Lion Cloak's shapes are restricted to Lion; in fact, it does not seem to limit it at all.

I'm kind of stumped and am wondering whether the internal workings of Beast Shape II actually prevent using it with a Magical Beast form. Any insight you could give me?

Last edited by Lord Magus; December 10th, 2017 at 08:06 PM.
Lord Magus is offline   #1 Reply With Quote
Senior Member
Lone Wolf Staff
Join Date: Oct 2011
Posts: 6,775

Old December 10th, 2017, 10:14 AM
If the internal workings of Beast shape are setting things so that magic beasts aren't allowed, then you can check for that by using a debug. First go to Develop -> Enable Data File Debugging, then add this script to your item

Final 10000
debug "gizmo.child[PolymoHelp].field[foCandExpr].text is " & gizmo.child[PolymoHelp].field[foCandExpr].text
Integrate your changes/reload the system, then go to Develop -> Show Debug Window, does that come out like you'd expect (i.e. as you set it)?

If it turns out that is the issue, push your script to after the one which sets the candidate expression. Hope that helps!
Aaron is offline   #2 Reply With Quote

Thread Tools
Display Modes

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 01:52 PM.

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