One perhaps for Lance or other GUI gurus.
I'm looking at giving some races ability to change shapes and keep the ability to use feats. Additionally to this, it would be nice to allow things like druids with knockdown to be able to use such feats while wildshaped.
Now when EffectPolymorph is called it disables all hotbar icons and feat usage (and spell usage if don't have Natural Spell), and as far as i can tell this is all hardcoded.
At first i thought i could re-enable the hotbar after polymorph, but then realized the bar isn't disabled, just the buttons, and not sure i can affect them via script. (correct me if im wrong - they seem to be controlled by hardcoded functions)
So, i see two ways forward.
1) Instead of polymorph, use SetAppearance() - this can be made to work, with some checks to fix problems like logging off while shifted and being stuck in the wrong shape, but also then need to consider how to restrict things like inventory/item usage where appropriate, which is going to be trickier.
2) Custom GUI that comes up when the polymorph kicks in. This would have a list of feats that would populate it - i guess a dynamic listbox - so some common feats, like knockdown, sacred fist abilities, etc, and then the special shapes special abilities, eg Mindflayer psionic blast, vampire gaze, etc.
What would be ideal is if the 3 spell effects that are listed in polymorph.2da and worked in NWN1 could somehow be reactivated - but i guess for reasons unknown Obsidian disabled all that with no way of reactivating.
Any thoughts?





Retour en haut






