Modding help

正在查看此主题的用户

Tonny93

Recruit
Hi everyone,

I was wondering, I want to mod Mount and blade warband into the world of Ansalon(from the books of Margaret Weis and Tracy Hickman: "The Dragons").

First, I want to change all city names, thats not a problem, change lord names, which is a problem, so my first question is: "How do you change lord names?"

Second, I wish to change the game so that, for example, when a sarranid party encounters forest bandits, the forest bandits join the sarranid party. So the second question: "How do you do that?" (Of course the names Sarranid and forest bandits are changed )

Third, I want to change some lords into lady's, but i heard it is really hard (with marriage and family and ****). So here is my third question: "What needs to be done if i change some lords into lady's"

greetz,
Ton
 
Please post questions in the Q&A thread, it's stickied for a reason.

Tonny93 说:
First, I want to change all city names, thats not a problem, change lord names, which is a problem, so my first question is: "How do you change lord names?"
Change them in module_troops.py

Tonny93 说:
Second, I wish to change the game so that, for example, when a sarranid party encounters forest bandits, the forest bandits join the sarranid party. So the second question: "How do you do that?" (Of course the names Sarranid and forest bandits are changed )
This is a bit tricky. You'll have make them friendly, then make a trigger to detect that sarranid and forest bandit parties are close, manually set their AI behavior to meet, and when they meet you'll have to detect this, move the troops from forest bandits to sarranid and remove the forest bandit party.

You can also make them hostile enough so Sarranids will actively chase after forest bandits, but this will result in forest bandits running away, and they will probably be faster, so it's not a good solution. Forest bandits can also be made more courageous with the party settings, but that will make them attack everyone like berserks - so it's not the best way as well.

Tonny93 说:
Third, I want to change some lords into lady's, but i heard it is really hard (with marriage and family and ****). So here is my third question: "What needs to be done if i change some lords into lady's"
To do it properly, you'll have to rewrite a good chunk of game's family and marriage related code. As a quick hack, it will probably be enough to find the places in the code where the game is considering the lord for marriage, and add the checks that the lord is actually male. Similarly, in all dialogs where other family members are concerned, you'll need to implement gender checks so your lady's brothers won't refer to her as "brother", and her parents don't call her a "son".
 
后退
顶部 底部