Extra skillpoints for Wifey Companion?

Users who are viewing this thread

Klatu

Recruit
Anyone know a way I can give a companion some extra skillpoints? (not attribute points)

I took my wife in as companion but apparently she is suffering quite the skillpoint deficit, only starting with 2 or 3. I'd like to give her a few points to make her on-par with the average starting character/companion. She did come with a reasonable amount of attribute points relative to level.

I know there exists a cheat to level companions, but I have no interest in that as I like to level manually and it won't actually fix the core problem.
 
Find "courtship_event_bride_marry_groom" in module_scripts.py

After this

(store_script_param, ":bride", 1),
(store_script_param, ":groom", 2),
(store_script_param, ":elopement", 3),

Add the code below

(try_begin),
(eq, ":groom", "trp_player"),
(is_between, ":bride", kingdom_ladies_begin, kingdom_ladies_end),
(troop_raise_skill, ":bride", skl_riding, 1),
(troop_raise_skill, ":bride", skl_first_aid,1),
(troop_raise_skill, ":bride", skl_surgery,1),
(try_end),


Another way is simply to edit module_troops and give everyone better starting skills :grin:
 
Last edited:
Upvote 0
Anyone know a way I can give a companion some extra skillpoints? (not attribute points)

I took my wife in as companion but apparently she is suffering quite the skillpoint deficit, only starting with 2 or 3. I'd like to give her a few points to make her on-par with the average starting character/companion. She did come with a reasonable amount of attribute points relative to level.

I know there exists a cheat to level companions, but I have no interest in that as I like to level manually and it won't actually fix the core problem.
"edit" header_operations.py to see the full syntax of EVERY script line.

Now try this:
# (store_proficiency_level, ":skill_now", ":troop", ":wp_type"), # if you wanted to know the current skill for some reason
(troop_raise_proficiency_linear, ":troop", ":wp_type", ":delta"), # where ":delta" is the number to add, which could also be a negative number

# wpt_one_handed_weapon = 0
# wpt_two_handed_weapon = 1
# wpt_polearm = 2
# wpt_archery = 3
# wpt_crossbow = 4
# wpt_throwing = 5
# wpt_firearm = 6

You still need a way to find the troop, so

(try_for_range, ":lady", "trp_kingdom_1_lady_1", "trp_heroes_end"), # heroes_end is just past the last kingdom lady
(main_party_has_troop, ":lady"), # assumes spouse is a Kingdom lady and currently travelling with your party
# quest "escort a lady" might also have a kingdom lady travelling in party though
(try_for_range, ":count", 0, 7),
(lt, ":count", 7), # completely pointless test to avoid a compiler warning "":count" is not used"
(troop_raise_proficiency_linear, ":lady", ":count", 25), # raise each skill by 25 in this example.
# As it is linear the skill raise is capped by Weapon Master skill
(try_end),
(try_end),

Now it's time to actually place this where you can control it
I either stuff it as a cheat menu item at camp menu (which is pretty busy, can only have 16 items shown per menu any extras are clipped)
so actually that would be a menu item under a menu, calling a second menu with my one off cheats, and the "cheat aspect just to hide it from view until needed. You are simply hiding a thing you control, not really a cheat.
("do_a_special_action_for_gs0", [(eq, "$cheat_mode", 1)], # not seen unless cheat mode is active (and not seen if cheat mode is 2,3,etc)
" (!) GS debug stuff here patch time", # display the menu selection
[
(call_script, "script_phantasy_patch_150n7"), # instead you paste whatever you want to do here. I was manually updating savegames
]
),


Or you could make it something a little more silent, like this, except here I have already provided a global variable at character start.
at a module_simple_triggers.py trigger I have this to silently update my in-flight text characters this week

(24,
[
(eq, "$g_phantasy_patch_major", 1580),

(display_message, "@{!}PATCH : -------- update for v160 A1 --------"),
# (call_script, "script_phantasy_patch_160a1"),
## # <-- instead of calling a script you could paste your action here, now you click nothing
(assign, "$g_phantasy_patch_major", 1600), # this global var is normally set only at character creation
# keeps from re-doing this change daily
]),
 
Last edited:
Upvote 0
Back
Top Bottom