• Welcome to the forums on our new hosting setup. Everything should be working the same, but if you run into any problems, please let us know over here.

tweaking attribute/proficiency points gained when increasing levels

Users who are viewing this thread

tezster

Recruit
I apologize if this has already been covered elsewhere - it's not so much a modding but a tweaking question (I did try doing a search for it, but couldn't quite phrase it in such a way as to return relevant message threads).

I would like to make a small change to increase the both the attribute and proficiency points given when gaining a level. Would someone be able to point me in the right direction?

thanks :smile:
 

Somebody

Code Pope
Baron
WBWF&S
It's pretty much hardcoded. You could, however, easily make a trigger that fires up a menu whenever the player reaches a new level, asking him/her to distribute a new point.
 

Ikaguia

Grandmaster Knight
WBWF&SNW
in constants.py

Code:
slot_troop_level = X

in scripts.py

Code:
  # script_update_troop_level
  ("update_troop_level",
  [  
   (try_for_range, ":troop", "trp_player", "trp_relative_of_merchants_end"),
     (store_character_level,":troop_level",":troop"),
	 (troop_set_slot, ":troop", slot_troop_level, ":troop_level"),
   (try_end),
  ]),
 
 
and at the first script:

Code:
(call_script, "script_update_troop_level"),


at simple_trigers.py


Code:
  (1,
   [
(try_for_range, ":troop", "trp_player", "trp_relative_of_merchants_end"),
  (troop_get_slot,":troop_level",":troop", slot_troop_level),
  (store_character_level,":troop_new_level",":troop"),
  (store_sub, ":val", ":troop_new_level", ":troop_level"),
  (store_mul, ":att", ":val", 4),#4 additional att points per level
  (store_mul, ":skl", ":val", 1),#1 additional skill point per level
  (store_mul, ":wp", ":val", 10),#10 additional weapon proficience points per level
#  (troop_add_attribute_points, ":troop", ":att"), #that operation doesnt exist, need to find the correct one
#  (troop_add_skill_points, ":troop", ":skl"), #that operation doesnt exist, need to find the correct one
  (troop_add_proficiency_points, ":troop", ":wp"),
(try_end),
(call_script, "script_update_troop_level"),
]),


not tested yet
it does that for every troop, not just for the player
 
Top Bottom