Initial commit. Updated release archive.
This commit is contained in:
17
_module/nss/pros_changefac.nss
Normal file
17
_module/nss/pros_changefac.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
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));
|
||||
}
|
Reference in New Issue
Block a user