Changed folder name.
Changed folder name.
This commit is contained in:
82
_module/nss/setbaseappearanc.nss
Normal file
82
_module/nss/setbaseappearanc.nss
Normal file
@@ -0,0 +1,82 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user