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

0 Members and 5 Guests are viewing this topic.

Zundum

  • Sergeant
  • *
    • View Profile
  • Faction: Bandit
Well, I don't know if what I'm going to ask is tweakable without module system but I feel like trying.

I know I can make beer and wine work as food and that those drinks are very nutritious, yet it just feels weird to me having them being consumed like that.

1. a) Buying drinks in the tavern for your own party(like when you buy it for the city, not when you buy it in shop), the price being proportional to party size. It would raise Recent Events morale to full.
    b) In Camp Menu/Take an Action, an option to drink beer or wine you have in your inventory, to work like above. It would be consumed 1 unit of beverage for each party member or whatever quantity might be easier to make this tweak.

2. Being able to sell prisoners to Manhunters for half the price.

3. A chance of recruiting some Deserter's Party member, based on your Persuasion skill.

4. Trade with caravans, without any bonus Trade skill might provide.

5. A way to talk with Villager Elder, Guildmaster, Arena master, Tavernkeeper, people inside tavern, training grounds dude, lords inside cities and etc, by the Menu. Just like when you go to a castle and ask the guard to talk outside with a Lord.

I'm aware this is too much and might not be made. I would really appreciate if somebody could say if those tweaks above can be made without module system, so I can compare some lines and try changing shit for fun.

ivan-the-viking

  • Recruit
  • *
    • View Profile
  • Faction: Nord
hey man great fan of your tweaks :D
wondering if it was possible for you to make an executable file to do all or some of these ?
(i am an Irish viking) turn around! hold still! i am a battlefield surgeon!
:D

Olorin

  • Sergeant
  • *
    • View Profile

Olorin,
I think I answered that before, but I may have forgot to. The reason they won't attack is it calculates things based on troop strength, not just numbers. Your huscarls are crazy high level, so they're showing up as significantly stronger than the lower tier troops. It makes sense, too - your 15 huscarls alone would wipe the floor with the other guys, even without the help of you and the heroes. Lords will attack castles much more often if they have high tier troops, because those high tier troops count for a lot more in the calculations. You could probably screw with the strength calculating script to make levels not matter as much, but that would likely make the AI do really stupid things - like a party of elite troops run from a party of peasants, or a big party of crap troops jump on a slightly smaller party of elite troops and get their asses kicked. Renown actually doesn't play any part in it - just usually when you have high renown you have top tier troops, thus everyone runs from you. If you trade out your 15 huscarls for 15 peasants, people will attack you.

sorry if you answered it before, i must have missed the post.

thanks for the explanation i really appreciate it! :)


TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
leusoj,
I don't think you're really supposed to interpret the numbers. I'm using the .960 (beta version) module system to interpret them, but normally you would just make changes within the current module system (it is WAY easier to read and make sense of, with lots of useful comments) and then compile the module system into the text files. The only reason I'm doing it like I am is because the 1.003 module system has not yet been released for some reason, so most modding efforts are just put on hold until it is.

It's probably best to just wait until it is released (hopefully soon...) before you do any modding, as learning to interpret the numbers - although interesting - is not a very useful skill once the module system is out :)

Zundum,

#1 would be possible by adding to conversations.txt (for the tavern keeper side) or to the camp menu in menus.txt. You'd just have to call up the change_player_party_morale script with the number to add, and put in something to erase either money or units from the ale/wine from your inventory. The tavern keeper one would be the easiest, all you'd have to do is copy the buy drinks dialogs and change them a bit - it already has the part taking the money from you so you'd just have to add the script call. To figure out the number to reference the morale script you could go into the check_friendly_kills script and pull it from there, that's where it cuts your morale down due to losses in battle. The other would be a bit more complex, as it'd have to cycle through your inventory to see if you had wine/ale as a condition of the menu, then cycle through and consume some of it with a further check to determine your party size and such.

#2 you could do by changing the manhunter dialogs. You'd just have to make a dialog that opened the prisoner trade window, the same way Ramun or the ransom brokers do. If you wanted the prices to be half then you would have to go and make a special exception in the prisoner prices script to check if they are a manhunter and reduce it. I'm not sure how selling prisoners on the worldmap works, though - I've never tried it. It all seems unnecessary though, since manhunters are harder to find than slave traders most of the time. Plus I already have a tweak to make tavern keepers buy prisoners, if you really wanted to sell them easier.

#3 Do you mean like recruit them instead of kill them? I guess you could probably do that with more dialog. It seems kinda pointless, though - just knock them unconscious and recruit them from your prisoners.

#4 You'd have to somehow determine what the caravans have for trade. The goods they drop when you kill them is just random, and all the trading they do is just virtual - they pop up and travel but don't actually buy or sell goods to the shops, it's just done behind the scenes with functions changing prices and generating revenue and such. This would probably be a mod in itself, and not something to easily do without the module system.

#5 You could probably adapt the castle menu option for use with all this. You'd just have to expand it somehow and change the troop references it calls up. You'd have to use a function to get the appropriate npc slot for that town.

I may play around with #1 and #5 in the future, but for the next few weeks I'll likely be very busy - I have a 20 page research paper to write and two exams to complete (take home exams that they gave me yesterday and today, really nasty ones haha). Someone else who has been making tweaks might do it, though :)

ivan-the-viking,
It has been asked several times before, but I wouldn't know how to do it. My programming experience is next to nil, I don't even know python - I just wing it :) One of these days I'll take the time to learn how to make programs.

Olorin,
Sure, glad you're satisfied with the answer :P. I actually don't see the exact spot that determines whether or not a lord attacks a party, but that might be hidden somewhere in the area determining if they attack castles. It's hard to make heads or tails of some of the AI script stuff. A while back I was trying to figure out a way to make them not chase parties when they were following you as the marshall (to prevent the annoying thing where they run off while you're prepping for a siege), but I couldn't find the right spot to edit.
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...

Swadius

  • Grandmaster Knight
  • *
  • A little Dead- But Recovering
    • View Profile
  • Faction: Neutral
  • M&BWB
I believe that's all hardcoded. Skills.txt deals with skills, and it has a toggle for them to be party or personal, but that just makes them display as party or personal. The actual skill function is still the same. I couldn't find any scripts or triggers referencing the skills either.

You mean that changing this:
Code: [Select]
skl_prisoner_management Prisoner_Management 3 10 5 Every_level_of_this_skill_increases_maximum_number_of_prisoners_by_%d._(Leader_Skill)
skl_first_aid First_Aid 18 10 5 Heroes_regain_7%%_per_skill_level_of_hit-points_lost_during_mission._(Party_skill)
skl_surgery Surgery 2 10 5 Each_point_to_this_skill_gives_a_5%%_chance_that_a_mortally_struck_party_member_will_be_wounded_rather_than_killed._(Party_skill)
skl_wound_treatment Wound_Treatment 18 10 5 Party_healing_speed_is_increased_by_30%%_per_level_of_this_skill._(Party_skill)

would only make the text change?
'Many men who have ugly girl-friends think them most attractive' ~Sextus Empiricus

'Sons of Ariston, godlike offspring of a famous man' ~Plato

'Do no call up that which you cannot put down'

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Swadius,
You can change a couple things in the skills file that take effect in game, but not the way the actual skills behave.
Quote
skl_prisoner_management Prisoner_Management 3 10 Every_level_of_this_skill_increases_maximum_number_of_prisoners_by_%d._(Leader_skill)
The 3 is where flags for the skill are set. In this case the 3 is the base attribute (charisma is 3, int is 2, dex is 1, str is 0). It can also have a flag to determine if it's displayed in the party skills list or not. If this is the case, that number will be +16. Like the wound treatment skill has an 18 there (2 for int, +16 for party skill). Then the 10 is the maximum for the skill. All skills are set at 10 max by default, but you could change them to 5 or 20 or whatever - you'd still need 3x that in the base attribute to raise it that high, though. The rest of the text is the description you get when you mouse over it ingame. It has no actual effect on the way the skill works, only the description you get.

Whether or not a skill is displayed in the party skills list doesn't affect the way the skill works in the slightest - even if you make leadership a party skill and get companions with 10 leadership, you can still only lead the same number of troops. It's the same way with inventory management. It would show the skill in the party screen as if it was doing something, but nothing would happen.

Most of the skills are hardcoded in function, but some can be edited in the scripts. Leadership COULD be made into a party skill, since the factor determining your party size is a script - you could change it to search through your party and get the highest skill, just like it does with engineering. Inventory management, on the other hand, is hardcoded (or at least I couldn't find any script that set your inventory size based on it). So even if you made it display in the party skills list, it still wouldn't increase your inventory size - the engine is specifically checking YOUR inventory management skill.
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...

Sorkenlol

  • Knight
  • *
    • View Profile
  • Faction: Vaegir
TML, after I applied the tavernkeeper slavetrader tweak lots of weird mercenaries have been showing up in taverns, such as "Weaponsmith", "armorer". I can hire these, but I haven't tried as I am afraid it would crash the game. There's usually 2 tavernkeepers aswell, one behind the bar and one on the floor. Is it possible to remove these fake mercenaries?

Hinotori

  • Sergeant
  • *
  • Obedience, Diligence, Perseverance
    • View Profile
I just noticed, but I also asked if the relation the player has with locations could also be shown in the encyclopedia. I'd assume it'd be something similar.

I'm guessing you'd add the text at the end of the following line:

Code: [Select]
qstr_{s2}Its_prosperity_i {s2}Its_prosperity_is:_{s50}
but I'm not sure which variable to use in the relation line.
Abayoo.

Rocksaw

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
First off the obligatory thanks for all these tweaks, make the game more fun. :)

I've been searching around and can't seem to find the tweak I'm after, hopefully someone here can help. I've used the listed tweak to increase the bandits spawns from once every 36 hours to once every 24, however this still isn't providing enough neutral weaker NPCs for me to prey on. Theres a lot of Mountain Bandits and sea raiders but still struggle to find any looters.

So my question is, is there a way to increase the frequency of specifically Looters and Forest Bandits spawning? Theres enough Sea Raiders and Mountain Bandits.

Sorkenlol

  • Knight
  • *
    • View Profile
  • Faction: Vaegir
First off the obligatory thanks for all these tweaks, make the game more fun. :)

I've been searching around and can't seem to find the tweak I'm after, hopefully someone here can help. I've used the listed tweak to increase the bandits spawns from once every 36 hours to once every 24, however this still isn't providing enough neutral weaker NPCs for me to prey on. Theres a lot of Mountain Bandits and sea raiders but still struggle to find any looters.

So my question is, is there a way to increase the frequency of specifically Looters and Forest Bandits spawning? Theres enough Sea Raiders and Mountain Bandits.

Looters can be hard to find, but you wont have much use of killing them later on. However, if you're a beginner at early lvls and sea raiders/mountain bandits are a bit too hard, then you should run from Dhirim>Reyvadin>Rivacheg>Khudan>Curaw and back, there's always looters in that area, especially around reyvadin and Yruma Castle. For forest bandits, they only spawn at a certain area, which is the mountain pass between Elberl and Praven, it's just north of praven if you can't find it. LOTS of forest bandits there.

Rocksaw

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Thanks for the tips, will give that a go when I play later.

Lord Kinlar

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
Improve your relations with lords and ladies up to X by giving them expensive gifts.

Open conversation.txt and find this line...

Quote
dlga_lady_restore_relation_2:lady_restore_relation_2b 81919 467  7 50 1 1224979098644774912 33 3 1224979098644774912 360287970189639861 360287970189639991 2173 2 1224979098644774913 1224979098644774912 31 2 144115188075855887 1224979098644774913 1 2 936748722493063317 1224979098644774912 2147483678 2 72057594037927936 0 2322 2 1 1224979098644774912 {s1}  468  1 50 1 144115188075855965

then replace the red 0 with any number you want. Any number between 100 and 150 should work without problem.

This process normally only works when your relations with a person is below 0, now it'll work when it's below 100 or whatever the number you pick.

A quite expensive way to make new friends though. :)

If you're not happy with the amount of good relations that a gift provides, you can change it like this...

In the same file, find these lines...

Quote
dlga_lady_restore_relation_4:lady_restore_relation_5 69631 470  3 2149 2 1224979098644774912 360287970189639680 30 2 1224979098644774912 144115188075855966 2133 2 72057594037927946 144115188075855966 I_think_a_gift_of_{reg10}_denars_will_do.  471  2 2133 2 144115188075855905 1 2133 2 144115188075855933 144115188075855966
dlga_lady_restore_relation_4:lady_restore_relation_5.1 69631 470  3 2149 2 1224979098644774912 360287970189639680 30 2 1224979098644774912 144115188075855967 2133 2 72057594037927947 144115188075855967 Maybe_I_can_afford_{reg11}_denars.  471  2 2133 2 144115188075855905 2 2133 2 144115188075855933 144115188075855967
dlga_lady_restore_relation_4:lady_restore_relation_5.2 69631 470  3 2149 2 1224979098644774912 360287970189639680 30 2 1224979098644774912 144115188075855968 2133 2 72057594037927948 144115188075855968 In_that_case,_I_am_ready_to_spend_{reg12}_denars.  471  2 2133 2 144115188075855905 3 2133 2 144115188075855933 144115188075855968


and change the red 1, 2 and 3 to lets say 10, 20 and 30. :)


Not happy with the price of gifts? They're here
Quote
dlga_lady_restore_relation_3:lady_restore_relation_4 4095 469  8 2322 2 10 144115188075855965 2133 2 144115188075855966 1000 2133 2 144115188075855967 2000 2133 2 144115188075855968 3000 2133 2 72057594037927946 144115188075855966 2133 2 72057594037927947 144115188075855967 2133 2 72057594037927948 144115188075855968 1506 2 72057594037927940 144115188075855965 You_can_improve...

Tachyon

  • Veteran
  • *
    • View Profile
  • Faction: Khergit
  • WB
Damn... at this rate we'll soon reach 100 tweaks  :shock:

Way to go Lord Kinlar and the rest!

DaNotoriousMC

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Is there a way to remove "no slot for upgrading to [insert unit name]" when upgrading troops? Or at least a way to increase/modify the limit?

Edit

Also, when you go to a tavern and buy everyone a jar of wine, you're to limited doing it for one town every two days. Is there a way of changing that?
« Last Edit: October 23, 2008, 09:27:02 PM by DaNotoriousMC »

bravesirknight

  • Knight
  • *
    • View Profile
  • Faction: Vaegir
Improve your relations with lords and ladies up to X by giving them expensive gifts.
[/quote]

Ah, nice one. I need to start a new game soon with a lot of tweaks, see how it goes. My current one is too boring.  :lol: