Helper.SpcDisable not being delivered
Yet again, I'm banging my head against my keyboard trying to figure out why a script is not working. The script is as follows:
Post-attributes; 10000 Code:
~Get our encumbrance level - if we're encumbered by that, or if we're wearing armor or shield, we're disabled This code is very similar to, and running at the same timing as, the Monk's AC Bonus and Fast Movement class specials but while those seem to work perfectly when adding armor or being encumbered, this one does not. It simply dos not disable as I would expect. As far as I can tell, the Helper.SpcDisable is not reaching the class special and I simply do not understand how or why this is happening. Now I've played with timing, including learning that Encumber Final runs at Post-attributes; 2000. Nothing I've tried in Post-attributes gets it work and if I move it to Final Phase, anything after 15000 disables it completely. I'm very lost on what is going on here and now believe that there is something fundamentally wrong with my code. Thanks again, in advance, for any help. |
This is a case where debugs might help you diagnose what is going wrong.
Try putting them into the code, like this: Code:
debug "This is " & this.idstring |
Thank you. I had tried to debug but quickly gave up on it because I couldn't figure out how to debug those fields without having something there. This has given me a way to use debug that I did not know existed. Thank you.
Alright, so what I learned from this is that unless the characters encumbrance exceeds light, this ability remains in play. Once it crosses into medium or heavy, then it is disabled. Which, is working as intended. What I couldn't figure out, but now know, is why it wasn't disabling when armor was worn as both the Monks AC Bonus and Fast movement were. Turns out there is a column of buttons called Other Req in the Class Special Abilities bootstap context window. Clicking edit on these gives the option to check some additional requirements for the class special, including what sort of armor can or cannot be worn. Thank you again Aaron, your assistance has proven invaluable. |
All times are GMT -8. The time now is 03:14 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.