Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 477
|
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 Code:
gizmo.child[PolymoHelp].field[foCandExpr].text = "Race.rmLion & HasType.tpAnimal & (RaceSize.Large1 | RaceSize.Medium0 | RaceSize.Small11 | RaceSize.Tiny12)" 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. |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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 Code:
debug "gizmo.child[PolymoHelp].field[foCandExpr].text is " & gizmo.child[PolymoHelp].field[foCandExpr].text If it turns out that is the issue, push your script to after the one which sets the candidate expression. Hope that helps! |
#2 |
|
|