PRC8/trunk/scripts/pnp_shft_true.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

28 lines
814 B
Plaintext

//:://////////////////////////////////////////////
//:: Shifter - return to true form
//:: pnp_shft_true
//:://////////////////////////////////////////////
/** @file
Undoes any shifting that the character may
have undergone. Also removes any polymorph
effects.
@author Shane Hennessy
@date Modified - 2006.10.08 - rewritten by Ornedan
*/
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
#include "prc_inc_shifting"
void main()
{
object oPC = OBJECT_SELF;
// Attempt to unshift and if it fails, inform the user with a message so they don't wonder whether something is happening or not
if(UnShift(oPC, TRUE) == UNSHIFT_FAIL)
FloatingTextStrRefOnCreature(16828383, oPC, FALSE); // "Failed to return to true form!"
}