PoA_PRC8/_module/nss/setbaseappearanc.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

83 lines
2.3 KiB
Plaintext

object oTarget;
//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
object oPlayer = oPC;
//First let's make them a pixie, so hopefully their
//movement rate will be normal!
SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_DWARF);
if ((GetRacialType(oPC)==RACIAL_TYPE_DWARF))
{
oTarget = oPC;
DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_FAIRY));
}
else if ((GetRacialType(oPC)==RACIAL_TYPE_ELF))
{
oTarget = oPC;
DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_ELF));
}
else if ((GetRacialType(oPC)==RACIAL_TYPE_GNOME))
{
oTarget = oPC;
DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_GNOME));
}
else if ((GetRacialType(oPC)==RACIAL_TYPE_HALFLING))
{
oTarget = oPC;
DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_HALFLING));
}
else if ((GetRacialType(oPC)==RACIAL_TYPE_HALFELF))
{
oTarget = oPC;
DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_HALF_ELF));
}
else if ((GetRacialType(oPC)==RACIAL_TYPE_HALFORC))
{
oTarget = oPC;
DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_HALF_ORC));
}
else if ((GetRacialType(oPC)==RACIAL_TYPE_HUMAN))
{
oTarget = oPC;
DelayCommand(1.0, SetCreatureAppearanceType(oTarget, APPEARANCE_TYPE_HUMAN));
}
//Clear the PC's Reputation just in case something bad has happened.
if(GetIsPC(oPlayer))
{
AssignCommand(oPlayer, ClearAllActions());
//Clear Reputation of PC
if (GetStandardFactionReputation(STANDARD_FACTION_COMMONER, oPlayer) <= 10)
{ SetLocalInt(oPlayer, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_COMMONER, 80, oPlayer);
}
if (GetStandardFactionReputation(STANDARD_FACTION_MERCHANT, oPlayer) <= 10)
{ SetLocalInt(oPlayer, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_MERCHANT, 80, oPlayer);
}
if (GetStandardFactionReputation(STANDARD_FACTION_DEFENDER, oPlayer) <= 10)
{ SetLocalInt(oPlayer, "NW_G_Playerhasbeenbad", 10); // * Player bad
SetStandardFactionReputation(STANDARD_FACTION_DEFENDER, 80, oPlayer);
}
}
}