HiddenTradition_PRC8/_module/nss/pros_changefac.nss
2024-06-20 15:47:42 -04:00

18 lines
571 B
Plaintext

void main()
{
object o_pros = GetObjectByTag("prostitute_bad");
int o_gender = GetLocalInt(o_pros, "gendercheck");
object o_hostile = GetObjectByTag("crusader_thug");
object o_pc = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1);
ChangeFaction(o_pros, o_hostile);
if (o_gender != GENDER_FEMALE)
{
AssignCommand(o_pros, SpeakString("Quickly, grab him!", TALKVOLUME_TALK));
}
else
{
AssignCommand(o_pros, SpeakString("Quickly, grab her!", TALKVOLUME_TALK));
}
AssignCommand(o_pros, ActionAttack(o_pc, FALSE));
}