new troops recruitable in tavern

Users who are viewing this thread

Status
Not open for further replies.

IceNoVa

The Kaiser
Global Moderator
hi all,

i have a little problem with my mod, and was unable to find a solution myself (or with searchfunction:
this is it:

i created new troops which i wanted to make recruitabel in tavern (mercenaries)
but when i put the data of this troops in the troop.txt before mercenaries_end, the mod is not able to start the beginning scenario right
(with the bandit and the merchent, instead i get rhodk spearman and looter....)

so this are my questions:
1) can i make the troops recruitable without change the normal troop order in the troops.txt
(the news ones in the end, as normal added)
or
2) where can i change the troop which is required for that scenario, so that the new troop.txt keep the momentarily state, and the in the starting scenario are the normal troops?

thank you
 
If you want to make mercenary,
You have to place the troops in a certain position, if you place them othervise, they will not be mercenaryes

Open module_troops.py, and search for lines:
#soldiers:
#This troop is the troop marked as soldiers_begin

Add your mercenaries between that and the line:

["mercenaries_end", "mercenaries_end", "mercenaries_end", 0, no_scene, reserved, fac_commoners, [], def_attrib|level(4), wp(60), knows_common, mercenary_face_1, mercenary_face_2 ],

If you place them anywhere else in module_troops.py, it will not work.


 
IceNoVa said:
hi all,

i have a little problem with my mod, and was unable to find a solution myself (or with searchfunction:
this is it:

i created new troops which i wanted to make recruitabel in tavern (mercenaries)
but when i put the data of this troops in the troop.txt before mercenaries_end, the mod is not able to start the beginning scenario right
(with the bandit and the merchent, instead i get rhodk spearman and looter....)

so this are my questions:
1) can i make the troops recruitable without change the normal troop order in the troops.txt
(the news ones in the end, as normal added)
or
2) where can i change the troop which is required for that scenario, so that the new troop.txt keep the momentarily state, and the in the starting scenario are the normal troops?

thank you

The only way to add mercenaries is to edit the module_troops python file. If you add them to the troops.txt it will throw the game out of whack, which is what you are experiencing.
 
thats the point
i know how to make them mercenaries, but in this way the start scenario doesn't work
but when there is no other way to add new mercenaries, is there a way to change the troops from the scenario back to normal?
which file is necessary for that scenario?

edit: no solution possible, which could help me that way i wanted it to...
        anyway, thanks guys,
 
Status
Not open for further replies.
Back
Top Bottom