Compilation of 82 little tweaks to the text files to change your gameplay(links)

Users who are viewing this thread

Swadia Nutt

Sergeant at Arms
Hey MageLord, I'm trying to find out how to increase relation gained from villages through schools. What file do you think its in?

I'm already pretty sure its not in Scripts.txt...
 

Raamon

Recruit
TheMageLord said:
Pagan,
You could make the dialog possible just by removing what restricts it from being there.
dlga_lord_talk:lord_join_rebellion_suggest 69631 204  9 32 2 144115188075855901 0 31 2 144115188075855948 144115188075855887 540 3 144115188075855885 140 0 2147484190 3 144115188075855887 10 144115188075855885 560 3 144115188075855885 10 1 2322 2 12 144115188075855901 2335 2 14 144115188075855948 522 3 1224979098644774912 144115188075855948 10 2322 2 15 1224979098644774912 {s12}_is_the_rightful_ruler_of_{s14}._Join_our_cause_against_the_usurper,_{s15}!  277  0
Remove the red, change the 9 to a 7.

This works, but it's just a hack - the dialog will say "Playername is the rightful ruler of No Faction. Join our cause against the usurper, Playername!" and you can convince them like normal, then they'll join you. But doing this you'll be able to ask any lord from any faction to join. You also wouldn't have any way of giving them fiefs, so they'd be permanently landless.
About this "hack" thing, it's actually working not too bad.
I came to the city of Curaw, requested a meeting with a local lord and persuaded him to join my "kingdom". As a result, I got a city with 387 defenders and a 152 lord's army for free without a fight. :grin:
But that's not the point, as 2 more things happened:
1) All captured lands were still owned by the lord.
2) I got a bunch messages, as a king, asking who should get villages, all that belonged to the captured city, 1 by 1: the lord I persuaded, me, as a lord or me, as a king. :roll:
So the texts needed for player to be the king are already there and a request to choose a ruler for a captured object is generated, probably when there is a non-zero amount of lords in the player's kingdom.

And also, there is yet no way of recruiting lords from your prison, auto-recruitment option for prisoners in town/cities every 48 hours(there is a version for normal units, but not the lords) and a recruitment option for AI - so that AI lords could "torture" their lord prisoners into joining their country, with some minor chance every 24/48 hours.

But one thing that converted AI lords cant do is thinking. If you tell them to "do whatever they want" - they just stand in one place and do nothing(unless an enemy passes by and they chase him|run away).
So real kings probably generate tasks for lords and assign marshals to help them giving tasks to other lords.
 

Gabeed

Master Knight
Jesus, this thing just keeps growing and growing . . . . :smile:

Anyway, I was wondering how to edit the chances of desertion for prisoners that you have recruited into your army.
 

ScoobyDooby

Regular
Hey TML, me again :grin:

wondering if you could help me with something. i want to change my light lance so it will allow me to swing it from side to side and not just downwards (on a blunt attack) just like i can with the shortened spear or even the poleaxe. this is the only thing forcing me to equip a 2hander otherwise id could melee with the lance (i can melee with a poleaxe np, but i like to have a shield when mounted...).

so heres the script for the lance i want to change:

itm_light_lance Light_Lance Light_Lance 1  spear_b_2-75m 0  138772484 4222124851987200 89 8202 2.500000 100 0 0 0 0 16384 90 0 175 0 283 528
0

and here are the scripts for shortened spear and poleaxe that have this ability(for reference)

itm_shortened_spear Shortened_Spear Shortened_Spear 1  spear_g_1-9m 0  138772484 4222131026005760 53 8202 2.000000 100 0 0 0 0 19456 102 0 120 0 281 531
0

itm_poleaxe Poleaxe Poleaxe 1  pole_ax 0  6651908 4222124851990272 384 8202 6.500000 100 0 0 0 0 37888 77 0 180 0 277 37
0

i think poleaxe does cutting dmg on swing not sure though...

oh and one more thing, i have a lord who joined my rebellion quite a while ago, and he has had the "+" sign for leveling on him for ages so i guess he is ready to level but the game wont assign points for him. i think it does it normaly so maybe because we are rebels it has some effect on the game?
anyway...can you add the dialog to "Tell me about your skills" for lords under my rebellion (or maybe you need to change it for all lords..idk)

Again, thanks for you efforts much appreciated  :grin:
(you made this game much more enjoyable for sure!)

 

TheMageLord

The Handyman Can
Knight at Arms
M&BWB
Thyr,
Actually they use spawn point 1 for the bandit raid, and visiting villages uses point 0. So it wouldn't conflict by moving 0 to the elder.

Swadia Nutt,
It's in simple_triggers.
720.000000  7 6 3 1224979098644774912 648518346341351501 648518346341351591 541 3 1224979098644774912 7 360287970189639680 521 3 1224979098644774913 1224979098644774912 26 2105 2 1224979098644774913 1 2110 2 1224979098644774913 100 501 3 1224979098644774912 26 1224979098644774913 3 0
is the trigger to add 1 relation a month. You could change the 720 to make it more often, or the 1 to make it add more than 1 relation.

Raamon,
I never realised that. I didn't use it to have a lord give me his land, and when I took a castle it was immediately given to me. If a system is already in place someone could probably edit the capture code to make it stay unassigned when the player captures it, thus always using the code to assign who gets it.

Gabeed,
Open up simple_triggers.txt and search for
2107 2 1224979098644774912 5 2121 3 1224979098644774913 66 1224979098644774912
Thats the bit of code that assigns the chance of escape. It takes your leadership skill multiplied by 5 and then subtracts that from 66 as the chance of them running away. So 66 is the base chance and it's 5% less chance per leadership point.

ScoobyDooby,
As bravesirknight said, the item editor is the best for that. Since the repository is down I uploaded the item editor to filefront and will list the mirror on the 1st page of this thread.
 

Vicrry

Veteran
Does the AI lord party size tweak affect bandits as well? It's rather tiring to see 30 or 40 man bandit parties near the start of the game - I wouldn't mind finding smaller but more frequent parties of bandits to make the lower levels easier (Less running away from most of the bandit parties) and the mid/late levels less annoying (bandits ambush my castle sieging party less frequently)
 

TheMageLord

The Handyman Can
Knight at Arms
M&BWB
No, thats only the AI Lords. I think you'd have to edit the party_templates to change the maximum bandit party sizes. The format for that would be
pt_mountain_bandits Mountain_Bandits 562949953421321 0 25 312 101 5 60 0 -1 -1 -1 -1 -1
The 5 60 is the range. Minimum 5, maximum 60. The actual number in the range is based on level, but you could lower the 60 to a 20 and they'd only go up to 20.
 

Vicrry

Veteran
Ok, I was kinda hoping to not tinker with the line for every bandit type but if that's what I gotta do..
Many thanks for cataloging all the tweaks I would never figure out on my own :smile:
 

Sorkenlol

Knight
Hey TML, is it possible to change so that enemy AI treats you as a normal enemy and not as their archenemy? Cause they seem to ALWAYS target me as soon as they have the chance, I'm getting peppered with arrows and javelins as soon as I enter a siege, even if I am behind a wall, as fast as I show my face I get 50 arrows on me. Same in field battles. It seems that they only target me even if they have someone hitting them at the same time.
 

TheMageLord

The Handyman Can
Knight at Arms
M&BWB
Sorkenlol,
I wouldn't know how to change in-battle behavior. Changing their behavior is definitely possible, as Chel did with the battle morale mod, I'm just not sure if you could edit the way they target things.

In my experience they seem to target the closest person to them and then focus on them, so if you're out front of a charge they'll all target you and keep firing even if you move back, but if you hang back at first and then step forward they usually don't focus on you. You can also usually step back where they can't see you for a bit and they'll stop focusing on you.

I never really get targeted unless I'm running ahead. Maybe you're just really ugly, and they can't resist putting you out of your misery? :twisted:
 

Sorkenlol

Knight
TheMageLord said:
Sorkenlol,
I wouldn't know how to change in-battle behavior. Changing their behavior is definitely possible, as Chel did with the battle morale mod, I'm just not sure if you could edit the way they target things.

In my experience they seem to target the closest person to them and then focus on them, so if you're out front of a charge they'll all target you and keep firing even if you move back, but if you hang back at first and then step forward they usually don't focus on you. You can also usually step back where they can't see you for a bit and they'll stop focusing on you.

I never really get targeted unless I'm running ahead. Maybe you're just really ugly, and they can't resist putting you out of your misery? :twisted:

Well it can't be that they fire on close targets, earlier during a siege as soon as I went up the ladder (my men were already fighting on the walls) 3 archers that stood far away on the other side of the castle walls changed target from my men to me, all of them. As soon as I stepped aside so that the wall covered me, they chagned back to my men (which were much closer) and then I stepped back to the open, and they changed target to me again. So it must be that they prioritise killing you, which I'd like to change.
 

TheMageLord

The Handyman Can
Knight at Arms
M&BWB
In the situation you described, it sounds more like you were the one that they had a clear shot to. The men fighting on the walls were likely surrounded by their troops, and they won't fire through their own troops.
 

The Mercenary

Grandmaster Knight
I'd like to post a tweak - I don't think it's been said already, it's not in the list. I think.

Changing Companion Hire Costs:

Find this code:

game_get_join_cost -1
18 21 1 1224979098644774912 2133 2 1224979098644774913 0 4 0 1507 1 1224979098644774912 5 0 2171 2 1224979098644774914 1224979098644774912 2133 2 1224979098644774913 1224979098644774914 2105 2 1224979098644774913 5 2107 2 1224979098644774913 1224979098644774913 2105 2 1224979098644774913 40 2108 2 1224979098644774913 5 4 0 152 1 1224979098644774912 2107 2 1224979098644774913 2 3 0 3 0 2133 2 72057594037927936 1224979098644774913 2075 1 72057594037927936

The formula to get the cost for a companion's hire is:

((X+5)^2+40)/5

The X is the companion's level, the 5 in (X+5) is the first 5 in the code, which is in red. The 40 is the blue 40 in the code, and the last 5 is the green 5 in the code. Theoretically, if you lower the green 5, increase the blue 5, or increase the red 40, the companion's price will increase; if you increase the green 5, decrease the blue 5, or decrease the red 40, the price will decrease. At least, that's what G36E tells me.
 

Akora

Veteran
MageLord,

Is there any way to change the default action of your troops when a battle begins? I hate having to tell everyone to "Stand Ground" every single battle. There's always 3-4 guys who charge off so fast that they take a while to get back in formation. Can I tweak the game to make all controlled units start a battle without the charge order going by default?

Thanks!
 
Akora said:
MageLord,

Is there any way to change the default action of your troops when a battle begins? I hate having to tell everyone to "Stand Ground" every single battle. There's always 3-4 guys who charge off so fast that they take a while to get back in formation. Can I tweak the game to make all controlled units start a battle without the charge order going by default?

Thanks!

Now that would be a nice change there. Especially in sieges, it's so annoying to see your troops just rush in before you even get a chance to look up at the walls and see how many archers are there to just pick them off from the sides like nothing.
 

TheMageLord

The Handyman Can
Knight at Arms
M&BWB
The Mercenary,
Alright, added it.

Akora,
You'd have to make a trigger that triggers once and gives the order to hold and stick it in all the different mission_templates. It would also have to assign a location for the order. I'm not sure if your men would follow your orders after it was set by a trigger though, I know the belfry siege they just ignore your order - but that might be a special case. Franciscus asked this back on page 5 and I never did experiment with it, but if you figure it out feel free to post it.
I'm fine with just tapping F1 at the start of battles, heh. I haven't been playing with M&B the last few days anyway :smile:
 
Top Bottom