Senior Member
Join Date: Oct 2011
Posts: 6,793
April 3rd, 2017, 10:27 AM
|
Quote:
Originally Posted by TheIronGolem
Pardon the thread necromancy, but how did you go about doing this part? I'm building something similar for Spheres of Power, and I'm having a devil of a time figuring out a clean way to disable the shadowed racial abilities when the polymorph effect isn't activated.
The best solution I've come up with thus far is this procedure run at First/5000 on the picks that bootstrap racial abilities:
Code:
~ Run only if we are on an inactive Shapeshift
doneif (container.ishero = 1)
doneif (parent.tagis[component.SoPShapesh] = 0)
doneif (parent.field[abilActive].value = 1)
foreach bootstrap in this
perform hero.findchild[Ability, "thingid." & eachthing.idstring & " & Helper.Shadow"].setfocus
if (state.isfocus = 1) then
perform focus.assign[Helper.SpcDisable]
perform focus.delete[Helper.ShowSpec]
endif
perform state.clearfocus
nexteach
This KINDA works, but it feels clunky to me, and it also doesn't handle overlapping abilities well.
|
Look at PolyTagAlw/PolyTagFrb procedures
|
#15
|
|