Here's an idea of a simple improvement, which will fix a lot of classic and new quests, making them more adequate.
Right now, when a foe of a humanoid class is created, the mob's gender is absolutely random. But in some quests those foes are created to represent a mobile version an NPC, which gender is known. So, we have a 50% chance that mob's gender will be an opposite to an NPC's one, which it represents.
Usually, such task is achieved by hiding an NPC and creating a foe at the same location with place foe action.
The idea is checking such a situation and generate a mob of an appropriate gender.
The algorytm is simple: when place foe action is performed and there is a hidden NPC in the specified location, the gender of the genereted mob will be the same as hidden NPC has. So, in this situation:
Code: Select all
Place _house_ local house1
Person _thief_ faction The_Thieves_Guild
Foe _thiefFoe_ is Thief
place npc _thief_ at _house_
hide npc _thief_
_S.00_ task:
daily from 00:00 to 08:00
pc at _house_ set _S.01_
_S.01_ task:
place foe _thiefFoe_ at _house_
Of course, if hide npc, place npc and place foe are present in the same task, place foe must be evaluated after place npc and hide npc regardless of the order, so:
Code: Select all
Place _house1_ local house1
Place _house2_ local house2
Person _thief_ faction The_Thieves_Guild
Foe _thiefFoe_ is Thief
hide npc _thief_
_S.00_ task:
daily from 00:00 to 07:59
pc at _house1_ set _S.03_
_S.01_ task:
daily from 08:00 to 15:59
pc at _house2_ set _S.04_
_S.02_ task:
daily from 16:00 to 23:59
remove foe _thiefFoe_
_S.03_ task:
place foe _thiefFoe_ at _house1_
place npc _thief_ at _house1_
_S.04_ task:
place foe _thiefFoe_ at _house2_
place npc _thief_ at _house2_
Code: Select all
Place _temple_ remote temple
Person _priest_ factionType Temple
Foe _monk_ is Monk
place npc _priest_ at _temple_
_S.00_ task:
clicked _priest_
say 1040
place foe _monk_ at _temple_
hide npc _priest_
This this simple improvement will fix strange gender mismatches between NPCs and mobs in many existing quests and will not break anything, 'cause right now mob gender is random, so quest writers could not rely on it anyway.
If there more than one hidden NPC at the location, where mob s created and they have different genders, we cannot decide, which gender should be used, so just use gender of the last placed or hidden of them.