2015-07-07 00:44:58 +07:00
|
|
|
;This file handles modifications to perks and traits
|
|
|
|
|
;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
|
|
|
|
|
; be used to remove their hardcoded effects, and add new stat/skill effects
|
|
|
|
|
|
2017-09-12 15:38:07 +08:00
|
|
|
;Name=The name of the perk
|
|
|
|
|
;Desc=The description of the perk
|
|
|
|
|
;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=The first skill (or -1 for none) to check, but if you set a specific bit
|
|
|
|
|
; (67108864 or 0x4000000), it checks GVAR. For example, if Skill1=67108864, then
|
|
|
|
|
; the perk will check GVAR_PLAYER_REPUTATION (67108864 + 0) on Skill1Mag value
|
|
|
|
|
;Skill1Mag=Positive value is used as the minimum requirements of the first
|
|
|
|
|
; 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
|
|
|
|
|
;Skill2=The second skill/GVAR (or -1 for none) to check
|
|
|
|
|
;Skill2Mag=Same as Skill1Mag, but for Skill2
|
|
|
|
|
;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
|
|
|
|
|
|
|
|
|
|
;If the value is set to -99999, the variable will be ignored (similar to comment out that line)
|
|
|
|
|
|
2015-07-07 00:44:58 +07:00
|
|
|
;This is a modification to perk 119
|
|
|
|
|
[119]
|
|
|
|
|
Name=Example
|
|
|
|
|
Desc=This is an example perk~Second line
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
;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
|