shapechange_mob
Vars | |
already_restored | Whether we're currently undoing the change |
---|---|
caster_mob | The caster's mob. Who has transformed into us This reference is handled in [/proc/restore_caster], which is always called if we delete |
Procs | |
after_unchange | Effects done after the casting mob has reverted to their human form. |
on_caster_death | Signal proc for COMSIG_LIVING_DEATH from our caster. If our internal caster is killed, kill our owner, too (which causes the above signal). This should very rarely end up being called but you never know |
on_caster_deleted | Signal proc for COMSIG_QDELETING from our caster, delete us / our owner if we get deleted |
on_mob_transformed | Called when the transformed mob tries to change into a different kind of mob, we wouldn't handle this well so we'll just turn back |
on_pre_type_change | Called when we're turned into a different mob via the change_mob_type proc |
on_pre_wabbajack | Called when we're shot by the Wabbajack but before we change into a different mob |
on_shape_death | Signal proc for COMSIG_LIVING_DEATH from our owner. If our owner mob is killed, we should revert back to normal. |
restore_caster | Restores the caster back to their human form. if kill_caster_after is TRUE, the caster will have death() called on them after restoring. |
Var Details
already_restored
Whether we're currently undoing the change
caster_mob
The caster's mob. Who has transformed into us This reference is handled in [/proc/restore_caster], which is always called if we delete
Proc Details
after_unchange
Effects done after the casting mob has reverted to their human form.
on_caster_death
Signal proc for COMSIG_LIVING_DEATH from our caster. If our internal caster is killed, kill our owner, too (which causes the above signal). This should very rarely end up being called but you never know
on_caster_deleted
Signal proc for COMSIG_QDELETING from our caster, delete us / our owner if we get deleted
on_mob_transformed
Called when the transformed mob tries to change into a different kind of mob, we wouldn't handle this well so we'll just turn back
on_pre_type_change
Called when we're turned into a different mob via the change_mob_type proc
on_pre_wabbajack
Called when we're shot by the Wabbajack but before we change into a different mob
on_shape_death
Signal proc for COMSIG_LIVING_DEATH from our owner. If our owner mob is killed, we should revert back to normal.
restore_caster
Restores the caster back to their human form. if kill_caster_after is TRUE, the caster will have death() called on them after restoring.