Placing new NPCs in modules_troops

Users who are viewing this thread

sheek

Knight at Arms
Old Guard
Where do you place new NPCs in the module_troops.py?

In my current mod I had to add some farmers and chests... In the game it was all screwed up. First all the farmers were called "farm_chest". I realised there are placers below which all entries are treated as special types of troops. The problem is that the file doesn't say where you can put new non-merchant, non-chest, non-etc generic NPCs. I couldn't put them in Zendar. I solved this by just moving them around randomly until it worked. At one point the names of the farmers got mixed up for no reason I could tell.

Anybody else have this problem? Where do you put new characters?
 
Try not placing any new NPC heroes above the first count line (king harlaus methinks), but place them all below zendar chest. Upgradeable troops can be placed above kidnapped girl, but make sure you don't insert them within anybody else's upgrade tree.

Also, peek at module_constants.py to see the range of troops defined there for special things like refreshing merchandise, etc. Try not to insert troops within those ranges, unless you want the same thing to happen to them. (e.g. add new merchants within the merchant ranges). Keep in mind the ranges are inclusive-to-non-inclusive (e.g. (range from A to F means {A, B, C, D, E}.), so make sure you don't muck those up by putting NPCs above the end-range of some other class of troops.
 
Regular NPCs should generally go towards the bottom of the file, where there's this comment:
Code:
# Add Extra Quest NPCs below this point
Pretty clear cut.
 
Janus said:
Regular NPCs should generally go towards the bottom of the file, where there's this comment:
Code:
# Add Extra Quest NPCs below this point
Pretty clear cut.

Unless they're new counts, weaponmerchants, armorers or tavernkeepers. :wink:

And upgradeables should be above all heroes (they don't need to be, but armagan seemed to indicate they ought to be to make sure they're not outside the 256 limit cut.)
 
Khalid ibn Walid said:
Unless they're new counts, weaponmerchants, armorers or tavernkeepers. :wink:
You're right, but that's why I said regular NPCs. He was referring to adding those rather than merchants etc.
 
Back
Top Bottom