2015-07-07 00:44:58 +07:00
;This file handles modifications to perks and traits
2020-06-13 00:14:44 +08:00
;When adding extra perks to a mod, it's advisable to use the fake perk scripting functions rather than make modifications
; in this file, as some perks have hardcoded effects which may catch you out
;Since traits need to be picked before any scripts run, they have an additional NoHardcode option in this file which can
2015-07-07 00:44:58 +07:00
; be used to remove their hardcoded effects, and add new stat/skill effects
2019-09-06 12:32:47 +08:00
[PerksTweak]
2021-01-05 14:07:30 +08:00
;Changes the bonus for 'Master Trader' perk (ID 17)
;25 - default bonus
MasterTraderBonus = 25
;Changes the distance bonus for 'Weapon Long Range' weapon perk (ID 58)
;2 - no bonus, 4 - default bonus
WeaponLongRangeBonus = 4
;Changes the hit chance bonus for 'Weapon Accurate' weapon perk (ID 59)
;0 - no bonus, 125 - maximum bonus, 20 - default bonus
WeaponAccurateBonus = 20
;Change the penalty distance and distance bonus for 'Weapon Scope Range' weapon perk (ID 64)
2019-09-06 12:32:47 +08:00
;0 - no penalty, 8 - default penalty
WeaponScopeRangePenalty = 8
;2 - no bonus, 5 - default bonus
WeaponScopeRangeBonus = 5
2021-01-05 14:07:30 +08:00
;Changes the resistance bonuses for 'Vault City Inoculations' perk (ID 78)
;valid range: -100..100, 10 - default bonus
VaultCityInoculationsPoisonBonus = 10
VaultCityInoculationsRadBonus = 10
2019-09-06 12:32:47 +08:00
2021-01-05 14:07:30 +08:00
;Changes the damage bonus per level for 'Demolition Expert' perk (ID 82)
2021-01-06 11:18:50 +08:00
;999 - maximum bonus, 10 - default bonus
2021-01-05 14:07:30 +08:00
DemolitionExpertBonus = 10
2019-09-06 12:32:47 +08:00
2021-01-05 14:07:30 +08:00
;Changes the damage bonus for 'Living Anatomy' perk (ID 97)
;125 - maximum bonus, 5 - default bonus
LivingAnatomyBonus = 5
;Changes the damage bonus for 'Pyromaniac' perk (ID 101)
;125 - maximum bonus, 5 - default bonus
PyromaniacBonus = 5
;Changes the skill bonus per level for 'Salesman' perk (ID 103)
2021-01-06 11:18:50 +08:00
;999 - maximum bonus, 20 - default bonus
2021-01-05 14:07:30 +08:00
SalesmanBonus = 20
;Changes the percent chance for 'Stonewall' perk (ID 104)
;valid range: 0..100, 50 - default percent
StonewallPercent = 50
;Changes the strength bonus for 'Weapon Handling' perk (ID 106)
;0 - no bonus, 10 - maximum bonus, 3 - default bonus
2019-09-06 12:32:47 +08:00
WeaponHandlingBonus = 3
;##############################################################################
2019-10-14 10:19:11 +08:00
[Perks]
2019-10-15 11:40:59 +08:00
;Set to 1 to enable the modifications for perks
2019-10-14 10:19:11 +08:00
Enable = 0
2020-06-13 00:14:44 +08:00
;Name: The name of the perk (max 63 characters)
;Desc: The description of the perk (max 255 characters)
;Image: The line number (0-indexed) of the corresponding FRM in skilldex.lst
;Ranks: The number of perk levels
;Level: The minimum required level
;Type: If 0, the perk checks only Skill1 for skill requirements; if 1, it checks Skill1 or Skill2; if 2, it checks both Skill1 and Skill2
;Stat: The modified stat or -1 if you don't want to change any stats
;StatMag: The increased/decreased value to the modified stat
;Skill1/Skill2: The first/second skill (or -1 for none) to check, but if you set a specific bit 0x4000000 (67108864), it checks GVAR.
; For example, if Skill1=0x4000004, then the perk will check GVAR_BAD_MONSTER (0x4000000 + 4) on Skill1Mag value
;Skill1Mag/Skill2Mag: Positive value is used as the minimum requirements of the first/second skill/GVAR, and a negative value is interpreted as the maximum requirement.
; For example, with Skill1=0 and Skill1Mag=100, if player has small guns skill >= 100 and meets all other requirements, the perk will be available in the
; selection window; with Skill1=1 and Skill1Mag=-120, the perk will not be available if player has big guns skill >= 120
;STR-LCK: Positive values are used as minimum requirements of SPECIAL stats, and negative values are interpreted as maximum requirements.
; For some special perks processed by the engine (e.g. PERK_armor_powered and PERK_armor_combat), the values are not used as requirements
; but to add to corresponding SPECIAL stats
2017-09-12 15:38:07 +08:00
;If the value is set to -99999, the variable will be ignored (similar to comment out that line)
2019-03-10 11:55:41 +08:00
;You can add simple extra perks with ID numbers from 119 to 255
2019-03-17 10:35:12 +08:00
; that do not require using scripting functions to change player stats, and can also be used for Armor perks
2019-03-10 11:55:41 +08:00
;These parameters are only for extra perks
2020-06-13 00:14:44 +08:00
;Stat1/Stat2: same as Stat
;Stat1Mag/Stat2Mag: same as StatMag
;Skill3-Skill5: The skill to be modified (or -1 for none)
;Skill3Mod-Skill5Mod: The increased/decreased value to the modified skill
2019-03-10 11:55:41 +08:00
2019-09-06 12:32:47 +08:00
;##############################################################################
2019-03-10 11:55:41 +08:00
;This is a modification to vanilla perk 0
[0]
2015-07-07 00:44:58 +07:00
Name = Example
2019-03-10 11:55:41 +08:00
Desc = This is an example perk description
2015-07-07 00:44:58 +07:00
Image = 72
Ranks = 1
Level = 1
Type = 0
Stat = -1
StatMag = 0
Skill1 = -1
Skill1Mag = 0
Skill2 = -1
Skill2Mag = 0
STR = 0
PER = 0
END = 0
CHR = 0
INT = 0
AGL = 0
LCK = 0
2019-03-10 11:55:41 +08:00
;Example for creating extra perks
[119]
Name = Extra Perk
Desc = This perk can change player stats and skills
Image = 72
Ranks = 1
Level = 2
Type = 0
Stat = -1
StatMag = 0
Skill1 = -1
Skill1Mag = 0
Skill2 = -1
Skill2Mag = 0
STR = 0
PER = 0
END = 0
CHR = 0
INT = 0
AGL = 0
LCK = 0
; for extra perks only
Stat1 = -1
Stat1Mag = 0
Stat2 = -1
Stat2Mag = 0
Skill3 = -1
Skill3Mod = 0
Skill4 = -1
Skill4Mod = 0
Skill5 = -1
Skill5Mod = 0
2019-10-14 10:19:11 +08:00
;##############################################################################
[Traits]
2019-10-15 11:40:59 +08:00
;Set to 1 to enable the modifications for traits
2019-10-14 10:19:11 +08:00
Enable = 0
2015-07-07 00:44:58 +07:00
;This is a modification to trait 0
[t0]
NoHardcode = 0
Name = Example
Desc = This is an example trait
Image = 72
StatMod = 0|-1 ;Subtract 1 from strength
2017-09-12 15:38:07 +08:00
SkillMod = 0|20|1|-5 ;Add 20 to the player's small guns skill and subtract 5 from big guns