67 lines
2.4 KiB
Plaintext
67 lines
2.4 KiB
Plaintext
// Created By Scarface
|
|
#include "prc_inc_racial"
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
effect eEffect, eVisEyes;
|
|
int iGender = GetGender(oPC), iSub, iType;
|
|
|
|
switch(MyPRCGetRacialType(oPC))
|
|
{
|
|
case RACIAL_TYPE_DWARF:
|
|
{
|
|
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_DWARF_MALE);
|
|
else eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_DWARF_FEMALE);
|
|
break;
|
|
}
|
|
case RACIAL_TYPE_ELF:
|
|
{
|
|
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_ELF_MALE);
|
|
else eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_ELF_FEMALE);
|
|
break;
|
|
}
|
|
case RACIAL_TYPE_GNOME:
|
|
{
|
|
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_GNOME_MALE);
|
|
else eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_GNOME_FEMALE);
|
|
break;
|
|
}
|
|
case RACIAL_TYPE_HALFELF:
|
|
{
|
|
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_HALFELF_MALE);
|
|
else eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_HALFELF_FEMALE);
|
|
break;
|
|
}
|
|
case RACIAL_TYPE_HALFLING:
|
|
{
|
|
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_HALFLING_MALE);
|
|
else eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_HALFLING_FEMALE);
|
|
break;
|
|
}
|
|
case RACIAL_TYPE_HALFORC:
|
|
{
|
|
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_HALFORC_MALE);
|
|
else eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_HALFORC_FEMALE);
|
|
break;
|
|
}
|
|
case RACIAL_TYPE_HUMAN:
|
|
{
|
|
if (iGender == GENDER_MALE) eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_HUMAN_MALE);
|
|
else eVisEyes = EffectVisualEffect(VFX_EYES_RED_FLAME_HUMAN_FEMALE);
|
|
break;
|
|
}
|
|
}
|
|
eEffect = GetFirstEffect(oPC);
|
|
while (GetIsEffectValid(eEffect))
|
|
{
|
|
iType = GetEffectType(eEffect);
|
|
iSub = GetEffectSubType(eEffect);
|
|
if (iType == EFFECT_TYPE_VISUALEFFECT && iSub == SUBTYPE_SUPERNATURAL)
|
|
{
|
|
RemoveEffect(oPC, eEffect);
|
|
}
|
|
eEffect = GetNextEffect(oPC);
|
|
}
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(eVisEyes), oPC);
|
|
}
|