Battledale_PRC8/_module/nss/px_polymorph_dro.nss

16 lines
709 B
Plaintext
Raw Permalink Normal View History

void main()
{
object oSpeaker = GetPCSpeaker();
if(GetGender(GetLocalObject(oSpeaker,"polymorphtarget")) == GENDER_FEMALE)
{
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_SOUND_BURST_SILENT),GetLocalObject(oSpeaker,"polymorphtarget"), 1.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectPolymorph(POLYMORPH_TYPE_FEMALE_DROW, TRUE),GetLocalObject(oSpeaker,"polymorphtarget"), 1000.0);
}
else
{
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_SOUND_BURST_SILENT),GetLocalObject(oSpeaker,"polymorphtarget"), 1.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectPolymorph(POLYMORPH_TYPE_MALE_DROW, TRUE),GetLocalObject(oSpeaker,"polymorphtarget"), 1000.0);
}
}