# (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
]),