34 lines
1.7 KiB
Plaintext
34 lines
1.7 KiB
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
|
|
if (GetIsDM(oPC) || GetIsDMPossessed(oPC)) {
|
|
//DM's seem incapable of setting/getting campaign variables on themselves.
|
|
SetLocalInt(oAltshapeWidget, "change_face", GetLocalInt(oAltshapeWidget, "original_face") );
|
|
SetLocalInt(oAltshapeWidget, "change_shape", GetLocalInt(oAltshapeWidget, "original_shape") );
|
|
SetLocalInt(oAltshapeWidget, "change_pheno", GetLocalInt(oAltshapeWidget, "original_pheno") );
|
|
SetLocalInt(oAltshapeWidget, "change_tail", GetLocalInt(oAltshapeWidget, "original_tail") );
|
|
SetLocalInt(oAltshapeWidget, "change_wing", GetLocalInt(oAltshapeWidget, "original_wing") );
|
|
} else {
|
|
SetLocalInt(oAltshapeWidget, "change_face", GetCampaignInt("altershape", "original_face", oPC) );
|
|
SetLocalInt(oAltshapeWidget, "change_shape", GetCampaignInt("altershape", "original_shape", oPC) );
|
|
SetLocalInt(oAltshapeWidget, "change_pheno", GetCampaignInt("altershape", "original_pheno", oPC) );
|
|
SetLocalInt(oAltshapeWidget, "change_tail", GetCampaignInt("altershape", "original_tail", oPC) );
|
|
SetLocalInt(oAltshapeWidget, "change_wing", GetCampaignInt("altershape", "original_wing", oPC) );
|
|
}
|
|
|
|
//Change the PC's Race appearance
|
|
makeChanges(oPC, oAltshapeWidget);
|
|
}
|