Skip to content

elsky42/ninja-bonus_independent_training

Repository files navigation

Bonus Independent Training Mod for Gothic 2 NotR

This is a Gothic 2 mod that changes the way training works such that only "trained points" for a specific skill/stat count toward the LP cost for further training. Other bonuses such as equipment or permanent bonuses (e.g. permanent stat increase potions) won't count.

The main effect of this mod is that you can use the permanent bonuses whenever you want.

This mod also adds a new command BIT getcharactervalues that prints to console the trained and effective values of each attribute and skill.

Optionally, this mod also alters the character menu to show the trained values together with the effective values.

Install

  1. Requires Gothic 2 with Ninja 2+
  2. Download BonusIndependentTraining.vdf from a release assets
  3. Copy BonusIndependentTraining.vdf to the Data directory of your installation
    • e.g. if you installed Gothic 2 inside the directory gothic II then you need to copy the file to gothic II/Data/BonusIndependentTraining.vdf

Uninstall

Just remove BonusIndependentTraining.vdf from your installation Data directory. Note that existing saves will retain the changes made by the mod even after you uninstall it.

Configuration

You can edit the configuration in gothic II/system/gothic.ini. This is an example:

[NINJA_BONUS-INDEPENDENT-TRAINING]

; shows a message with the trained and effective stat when you train
show_stats_when_training=false

; whether the trainer max attr/skill check is done against the
; trained or the effective value of that attr/skill.
;
; e.g. say that the bow level is 70 = 54 trained + 16 from bonuses
; and there is a trainer with max training at 70. If this is true
; then the trainer won't be able to train you anymore, otherwise the
; trainer will be able to train you for 16 more points.
trainer_max_against_effective=true

; shows the trained stat in the char menu on the left of the effective stat
; e.g. Strength 10 25 means that the hero has 10 trained strength
; and 25 effective
show_real_stats_in_char_menu=true

Character Menu with show_real_stats_in_char_menu=true

Commands

This mods makes two new commands available: BIT getcharactervalues and BIT setrealcharactervalue.

BIT getcharactervalues allows to check the trained and effective values. This is useful for when show_real_stats_in_char_menu is false.

BIT getcharactervalues example

BIT setrealcharactervalue allows to manually change the trained values of strength, dexterity, max mana, one-handed, two-handed, bow and crossbow. It takes two parametes in input: the attribute or talent to change and the new value.

The strings str, dex and mana can be used respectively for the attributes strength, dexterity and max mana. The strings 1h, 2h, bow and xbow can be used respectively for the talents one-handed, two-handed, bow and crossbow.

For example, to set the trained strength to 10:

BIT setrealcharactervalue str 10

Compatibility

This mod creates hooks around the functions B_TeachFightTalentPercent, B_TeachAttributePoints, B_RaiseFightTalent, B_RaiseAttribute and B_BlessAttribute to prevent them from changing the real attributes or fight talents. Therefore this mod should be highly compatible with other mods unless they require the real attributes or fight talents to be changed by the functions mentioned.

Thanks

  • Gothic 2 devs
  • Gothic 2 community
  • Ninja devs
  • manareg dev from which I stolecopied the github setup of this repository

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages