Author Topic: Compilation of 82 little tweaks to the text files to change your gameplay(links)  (Read 536095 times)

0 Members and 6 Guests are viewing this topic.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Making prisoner value dependent upon level is already mostly in the code. Theres just a line left out (I'm not sure if it was intentional or not). Heres how to add the line in and make it dependent on level. Find this in scripts.txt:
Quote
game_get_prisoner_price -1
 11 21 1 1224979098644774912 2133 2 72057594037927936 50 4 0 33 3 144115188075855885 360287970189639821 360287970189639831 2171 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 1224979098644774913 2105 2 1224979098644774914 10 2107 2 1224979098644774914 1224979098644774914 2108 2 1224979098644774914 6 3 0 2075 1 72057594037927936
Add this in right between the 6 and the 3 and change the 11 to a 12:
Quote
2133 2 72057594037927936 1224979098644774914
Your new script should look like this:
Quote
game_get_prisoner_price -1
 12 21 1 1224979098644774912 2133 2 72057594037927936 50 4 0 33 3 144115188075855885 360287970189639821  360287970189639831 2171 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 1224979098644774913 2105 2 1224979098644774914 10 2107 2 1224979098644774914 1224979098644774914 2108 2 1224979098644774914 6 2133 2 72057594037927936 1224979098644774914 3 0 2075 1 72057594037927936
The value has already been calculated by the rest of the script, they just forgot to assign the new value - that's what the extra line does. The actual calculation is level + 10, square that and divide by 6. So a looter is 4+10 = 14, squared =  196, div by 6 = 32.667, rounded down to 32 (the game only saves whole numbers, decimals are just discarded). A Nord Huscarl, on the other hand, is worth 28 +10, squared = 1444, div by 6 = 240. Slightly less for the weak, way more for the strong.

Note that by default this does not work with Ramun the slave trader, or tavernkeepers (if you made the other tweak), due to a check in the script to limit the calculation to ransom brokers. You can change the check to include Ramun and tavern keepers if you like, just change the 360287970189639821 360287970189639831 to this:
Quote
360287970189639808  360287970189640122
What that does is broaden the range to include Ramun on the left side and all the tavernkeepers on the right side. I assume the only reason of this check would be that Ramun was supposed to pay a set price of 50 while ransom brokers relied on the level of the troop, so Ramun would pay more for looters and such but less for higher tier troops.

Also, this is not compatible with red.murder's tweak - if you make it use the calculation it will overwrite the 50. I'll list them both so people can chose which one they want.


Rivacheg Raid,
They don't actually group up in big groups, what that does is make separate nearby groups join together when you attack one. So if you have 3 sea raider parties chasing you, and the closest one attacks, all 3 will attack. Or if you have 3 running from you and you jump on one, the other two help. The same way lords help eachother.
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

Rivacheg Raid

  • Regular
  • *
    • View Profile
  • Faction: Bandit
Ah, so it IS working! Yes, I noticed that other bandits would come to the fight but I wasn't sure if it was so in native.

I just want to bug you one last time. Is there a universal charge value to change the charge strength of all horses, or would something like this this involve modifying the values of each and every horse?

This I ask for myself and those of us that like fighting as all infantry armies, to give us an extra challenge against enemy cavalry by buffing their charge strength so that they slow down less when mobbed.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Heres a list of everything that persuasion does, and how to change the way it works. These first 3 are in conversation.txt.

1. Persuasion gives you a much better chance of convincing npcs to stay when they decide to leave. What it does is take a number between -2 and 12 and compares it to your persuasion score. If the number is less than or equal to the persuasion score they stay, otherwise they leave. If you want to change this find:
Quote
2136 3 1224979098644774912 -2 13
The -2 13 is the range (random numbers generated are a range from the left number and the right number -1).

2. Persuasion gives you a bonus to winning lords to your side during the rebel conversation. It takes persuasion times 5 and then generates a randon number between -10 and (persuasionx5 -1). So 10 persuasion would be -10 to 49. This is straight up added to the chance of winning them over, so it's already a pretty good increase. If you want to change this search for:
Quote
2107 2 1224979098644774913 5
Just change the 5 if you want a higher multiplier.

3. Persuasion gives you a bonus when you try to persuade a lord to do something (for quests). What this does is take your persuasion skill plus 5 and then it takes two random numbers between 0 and (persuasion + 5 -1) and adds them together. It then subtracts the persuasion strength and does a bunch of other calculations, until you end up with the result. Basically, persuasion doesn't do much here. 1 persuasion only makes a TINY change, and even 10 persuasion isn't a huge bonus. To change this search for:
Quote
2120 3 1224979098644774915 1224979098644774914 5
This is where it adds 5 to persuasion. Instead of doing that, we can change the 2120 to 2122 to make it multiply instead of add. So instead of 2 persuasion being 2 + 5 = 7, its 2 x 5 = 10. 0 and 1 persuasion end up being lower (0 and 5 instead of 5 and 6) but 2 and up is higher. This might make it too easy to persuade with high levels, but you'd have to add in extra lines to get it to calculate it differently.

4. This one is in menus.txt. Persuasion gives you a better chance of recruiting prisoners from your party. What it does is take 15 minus your persuasion score, multiplied by 4 - and that is the chance of them rejecting. So 0 persuasion gives a 60% chance of rejection, while 10 persuasion gives a 20% chance of rejection. To change this, find:
Quote
2121 3 1224979098644774918 15 1224979098644774917
The 15 is what persuasion is taken out of. Reducing it would decrease the chance of rejection, both with and without persuasion. Every point you reduce it lowers the rejection rate 4% for both. Reducing it to 10 would mean 0% rejection at skill level 10 and 40% at skill level 0.

5. This one is in triggers.txt. Persuasion is added to the "grievance divisor," which is 100 by itself. It multiplies their grievance by 9 and then divides it by the grievance divisor every 24 hours. At 0 the divisor would be 100, so grievances would be reduced to 90% of their current value. At 10 the divisor would be 110, so they would be reduced to 81% of their value. Changing this would require adding an extra line, but from looking at the script it seems to do fine - npcs would get over things about twice as fast with 10 persuasion.

That's a comprehensive list of everything Persuasion does in the text files. It could do something else thats hard coded, but that's everything we can see - unless it's in a file I didn't check (I checked scripts, simple_triggers, triggers, conversation, and menus).



Rivacheg Raid,
You'd have to go through all the different types of horses and change the charge value. It isn't that hard to do with the item editor though.

-edit Rivacheg Raid, actually I forgot that theres a horse_charge_damage_multiplier in module.ini. That might be what you're looking for, I haven't actually tested it to see if it changes the damage done.
« Last Edit: October 14, 2008, 12:52:08 AM by TheMageLord »
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

Next_Pls

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
1stly thx for all the great work done.  =)

how do i increase the xp gained for my player hero? the player_xp_multiplier doesnt seem to work.. or is there a limit? seems i can only get 29999 xp after battle max for player.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
I think theres a limit.

30k xp is already a LOT of xp :D
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

Next_Pls

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
oic.. hmm if thats the case may i request how to change the damage done per point in power strike? or weapon speed per point in agility?

thx thx =)

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Sibilance,
Just noticed I forgot to reply to your post :P. Changing skills to rely on different stats is actually quite easy, just open up skills.txt and find
Quote
skl_persuasion Persuasion 2 10 This_skill_helps_you_make_other_people_accept_your_point_of_view._(Personal_skill)
Change the 2 to a 3 and it will use charisma. 0 is strength, 1 is agility, 2 is int, 3 is charisma.

You can even modify the reserved skills to add completely new skills to the game, but you'd have to make scripts that control how they work.

Next_Pls,
I believe thats all hard coded. You could just give yourself more stat points by exporting/importing, if you really wanted to.
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

Swadia Nutt

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Swadian
I predict MageLord will become a Moderator some day.

jocan2003

  • Recruit
  • *
    • View Profile
  • Faction: Vaegir
Thanks for everything, now i got another one, how can we change the loyalty gain when you succeed a misson for the village and lords?

Rivacheg Raid

  • Regular
  • *
    • View Profile
  • Faction: Bandit
Rivacheg Raid,
-edit Rivacheg Raid, actually I forgot that theres a horse_charge_damage_multiplier in module.ini. That might be what you're looking for, I haven't actually tested it to see if it changes the damage done.

Okay, here are test results for horse_charge_damage_multiplier of 10 on a level 4 character

+ Trample damage knocks out sea raider on impact
+ The horse ( the starting horse ) trampling does not slow the horse down at all
- The horse still cannot run through a group of allies - it stops abruptly or rears if caught
+ Speed Bonus +150% == 85 damage from my dagger causes instant kill on victim looter
+ - Speed Bonus does not count on enemies that hit you while you are riding at top speed

So my guess from this one experiment is: infantry strategists might want to change the value anywhere from 2 to 4

tyvm

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
I mentioned before that it would be complicated, but I guess I can do an explanation of how to make changes to relation gains from quests. Note that this will be a LONG list, especially for the lords - and it isn't as easy to do as most of the other tweaks.

First, the quests from towns and villages: Go into conversation.txt and search for
Quote
1 3 936748722493063320 144115188075856056
The number directly following this will be what relation is actually being added. There will 15 be instances of it. I'll list what the different instances are (you could probably figure out based on what the dialog says) and what the default is, the same way I did with editing quest timers.

1. Deliver wine quest, 1
2. Buy drinks at tavern, 1
3. Make peace between kingdoms and accept money, 5
4. Make peace between kingdoms and decline money, 8
5. Kill night bandits, 1
6. Kill looter parties, 5
7. Deliver goods from looters quest - no longer used afaik, 3
8. Move cattle herd, 3
9. Bring back ransom girl, 2
10. Troublesome bandits, 2
11. Deliver cattle to village completion, 5
12. Deliver grain to village completion, 5
13. Accepting deliver grain to village, 5
14. Accepting train peasants, 3
15. Accepting deliver cattle, 3

That's most of the quests. The caravan reputation bonus is handled slightly differently, if you want to change the bonus for escorting a caravan find:
Quote
1 3 936748722493063320 1224979098644774914 1
and change the 1.

Now for lords. There are 75(!!) instances of these, because it isn't just quests - a LOT of things change relation with lords, some good some bad. I'll just list them all. Find
Quote
1 3 936748722493063319 144115188075855885
Same thing as above, number following that is what's added and I'll list the instances and the defaults:

1. Capturing a 'rescued' lord, -30
2. Freeing a rescued lord, 7
3. Capturing a defeated lord, -10
4. Freeing a defeated lord, 5
5. Gain or Loss from comments, set by other things (like releasing him last time you met, or raiding his village, etc)
6. Asking if you can avoid the battle and him saying yes, -7
7. Initial bonus for joining claimant, 25
8. Renouncing friendship of another lord, 5 (-10 to the other lord)
9. Defending friendship of another lord, -10 (5 to the other lord)
10. Saying that you don't want to be involved in quarrel between lords, -2 (-3 to the other lord)
11. Gain or loss from comments, set by other things (related to #5 above)
12. Incriminate loyal commander success, 5
13. Incriminate loyal commander failure, -5
14. Meet spy in enemy town success, 3
15. Start a war by raiding caravans success, 10
16. Start a war by raiding caravans failure, -10
17. Collect debt, 3
18. Kill the merchant, 4
19. Let the merchant go, 2
20. Follow spy - capture and bring back both, 4
21. Follow spy - capture and bring back spy, -1
22. Follow spy - capture and bring back handler, 1
23. Follow spy - failure to capture either, -2
24. Bring back serfs, 4
25. Fail to bring back serfs, -1
26. Refuse to bring back serfs (side with serfs?), -10
27. Bring back part of the serfs, based on # of parties brought back.
28. Kill bandits in village for a lord, 3
29. Failing to kill bandits in village for a lord, -5
30. Bring cattle during campaign, 2
31. Scout during campaign, 1
32. Accept quest to bring cattle during campaign, 1
33. Report to army for campaign, 2
34. Accept quest to scout during campaign, 1
35. Lend companion to lord, 3
36. Challenge lord to a duel (for lady quest), -20
37. Deliver message to lord, 1
38. Deliver message to enemy lord, 1
39. Ask for and receive pardon, 3
40. Ask for and reject pardon, -5
41. Tell lord to surrender or die, -1
42. Cancel attacking lord after threatening attack, -1
43. A different threaten attack one (when friendly?), -5
44. Verify attack when friendly, -30
45. Capture enemy hero success, 4
46. Train troops for lord and hand them over, 8
47. Collect taxes for lord success, 4
48. Collect taxes for lord failure, -1
49. Hunt down fugitive success - accept reward, 2
50. Hunt down fugitive success - reject reward, 2
51. Hunt down fugitive failure, -1
52. Tell a lord "Like me" (part of cheats I think), 20
53. Accept mission to deliver letter, 1
54. Rudely reject mission to deliver letter, -4
55. Accept mission from lord to deal with bandits, 3
56. Accept mission to train troops, 2
57. Accept mission to collect taxes, 2
58. Accept mission to hunt down fugitive, 3
59. Accept mission to meet spy in enemy town, 1
60. Accept mission to raid caravans to start a war, 5
61. Accept mission to follow and capture spy, 1
62. Accept mission to capture enemy lord, 1
63. Accept loaning companion out, 3
64. Accept mission to collect debt, 2
65. Reject mission to incriminate commander, -5
66. Accept mission to incriminate commander, 3
67. Reject mission (I think this is a generic one), -1
68. Duel for lady success, 10
69. Duel for lady failure, 6
70. Escort lady success, 2
71. Rescue lord for lady, 8
72. Accept mission to duel for lady, 3
73. Reject mission to duel for lady, -1
74. Reject mission from lady, -1
75. Convince lord to do something by relationship (for quests), negative based on other script

On any of these you can add the number on to search for a specific thing, like if I wanted to search for the reward for dueling for a lady, I'd search for
Quote
1 3 936748722493063319 144115188075855885 10
and find the second instance of it.

Also, I wouldn't be surprised if I made a mistake on the list, since it's 90 (!) different entries :P
« Last Edit: October 14, 2008, 05:04:19 AM by TheMageLord »
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

Tachyon

  • Veteran
  • *
    • View Profile
  • Faction: Khergit
  • WB
Making prisoner value dependent upon level is already mostly in the code. Theres just a line left out (I'm not sure if it was intentional or not). Heres how to add the line in and make it dependent on level. Find this in scripts.txt:
Quote
game_get_prisoner_price -1
 11 21 1 1224979098644774912 2133 2 72057594037927936 50 4 0 33 3 144115188075855885 360287970189639821 360287970189639831 2171 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 1224979098644774913 2105 2 1224979098644774914 10 2107 2 1224979098644774914 1224979098644774914 2108 2 1224979098644774914 6 3 0 2075 1 72057594037927936
Add this in right between the 6 and the 3 and change the 11 to a 12:
Quote
2133 2 72057594037927936 1224979098644774914
Your new script should look like this:
Quote
game_get_prisoner_price -1
 12 21 1 1224979098644774912 2133 2 72057594037927936 50 4 0 33 3 144115188075855885 360287970189639821  360287970189639831 2171 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 1224979098644774913 2105 2 1224979098644774914 10 2107 2 1224979098644774914 1224979098644774914 2108 2 1224979098644774914 6 2133 2 72057594037927936 1224979098644774914 3 0 2075 1 72057594037927936
The value has already been calculated by the rest of the script, they just forgot to assign the new value - that's what the extra line does. The actual calculation is level + 10, square that and divide by 6. So a looter is 4+10 = 14, squared =  196, div by 6 = 32.667, rounded down to 32 (the game only saves whole numbers, decimals are just discarded). A Nord Huscarl, on the other hand, is worth 28 +10, squared = 1444, div by 6 = 240. Slightly less for the weak, way more for the strong.

Note that by default this does not work with Ramun the slave trader, or tavernkeepers (if you made the other tweak), due to a check in the script to limit the calculation to ransom brokers. You can change the check to include Ramun and tavern keepers if you like, just change the 360287970189639821 360287970189639831 to this:
Quote
360287970189639808  360287970189640122
What that does is broaden the range to include Ramun on the left side and all the tavernkeepers on the right side. I assume the only reason of this check would be that Ramun was supposed to pay a set price of 50 while ransom brokers relied on the level of the troop, so Ramun would pay more for looters and such but less for higher tier troops.

Also, this is not compatible with red.murder's tweak - if you make it use the calculation it will overwrite the 50. I'll list them both so people can chose which one they want.


Rivacheg Raid,
They don't actually group up in big groups, what that does is make separate nearby groups join together when you attack one. So if you have 3 sea raider parties chasing you, and the closest one attacks, all 3 will attack. Or if you have 3 running from you and you jump on one, the other two help. The same way lords help eachother.

Goddamn, that is genius. Pure genius! Thank you  :mrgreen:

Wraithcat

  • Sergeant
  • *
    • View Profile
  • Faction: Rhodok
Given that the prisoner exchange program can be edited to run with the tavern keeper, does this mean that if I was to edit the menu for entry into a city (or perhaps thematically a castle/prison, would be better), I could have this script run immediately, without having to bother with wandering into the tavern at all?

Next_Pls

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Next_Pls,
I believe thats all hard coded. You could just give yourself more stat points by exporting/importing, if you really wanted to.
[/quote]

sorry but how does exporting/importing get more stat points?

oh and one more thing. is it possible to edit the max amount of troops on battlefield to a few hundred on each side? other than using the battle size option?
« Last Edit: October 14, 2008, 06:44:46 AM by Next_Pls »

CBCRonin

  • Sergeant
  • *
    • View Profile
Two more questions please :D, but these will probably be my last as I hate to trouble you more than I already have....

Is it possible to add troop recruitment to a city, with a troop tier minimum, through menu txt... or is it hardcoded specifically to village settlements?

Is it possible to add "release" option for imprisoned lords dialogue, possibly with or without a player honor grant? (Very much needed, for when those lord's factions no longer exist.)


Thank you once again for all of your help.