Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

25 lines
976 B
Plaintext

//Created by Esreyr Fears
//on February 2nd, 2006
//Change the PC back their original Race & Head & Wings & Tail
#include "alt_shape_inc"
void main() {
//Get the PC & widget to store the information on
object oPC = GetPCSpeaker();
object oAltshapeWidget = GetItemPossessedBy(oPC, "alt_shape_conv");
if (oAltshapeWidget == OBJECT_INVALID) return;
//Set the appropriate 'Change-to' variable
SetLocalInt(oAltshapeWidget, "change_face", GetLocalInt(oAltshapeWidget, "slot2_face" ) );
SetLocalInt(oAltshapeWidget, "change_shape", GetLocalInt(oAltshapeWidget, "slot2_shape" ) );
SetLocalInt(oAltshapeWidget, "change_pheno", GetLocalInt(oAltshapeWidget, "slot2_pheno" ) );
SetLocalInt(oAltshapeWidget, "change_tail", GetLocalInt(oAltshapeWidget, "slot2_tail" ) );
SetLocalInt(oAltshapeWidget, "change_wing", GetLocalInt(oAltshapeWidget, "slot2_wing" ) );
//Change the PC's Race appearance
makeChanges(oPC, oAltshapeWidget);
}