chimera_t said:
So if I had won 10 tournaments in the town, I would gain 10 relation with them?Windyplains said:
from ID_items import *
from ID_quests import *
from ID_factions import *
##############################################################
# These constants are used in various files.
# If you need to define a value that will be used in those files,
# just define it here rather than copying it across each file, so
# that it will be easy to change it if you need to.
##############################################################
# Renown Scaling
slot_center_tournament_wins = 233 # This tallies each win so that subsequent wins gain more reputation as a "crowd favorite".
wp_tpe_max_renown = 80 # This sets a hard limit on how much renown can be gained at most.
# -*- coding: cp1254 -*-
from header_common import *
from header_operations import *
from module_constants import *
from module_constants import *
from header_parties import *
from header_skills import *
from header_mission_templates import *
from header_items import *
from header_triggers import *
from header_terrain_types import *
from header_music import *
from header_map_icons import *
from ID_animations import *
####################################################################################################################
# scripts is a list of script records.
# Each script record contns the following two fields:
# 1) Script id: The prefix "script_" will be inserted when referencing scripts.
# 2) Operation block: This must be a valid operation block. See header_operations.py for reference.
####################################################################################################################
scripts = [
# Renown Scaling in Tournaments
# script_tpe_determine_scaled_renown
# This section implements the "Renown Scaling" feature.
# Inputs: None
# Output: reg0 (new renown)
("tpe_determine_scaled_renown",
[
# Determine renown gained by player level.
(store_character_level, ":player_level", "trp_player"),
(store_div, ":sr_level_factor", 40, ":player_level"), # Balanced for a max level of 40. Beyond this you get minimum gain.
(val_mul, ":sr_level_factor", 5),
(store_div, ":sr_factor_limit", wp_tpe_max_renown, 2), # Since two factors are used. Total is split by 2.
(val_min, ":sr_level_factor", ":sr_factor_limit"), # Prevents an extremely low level gaining more renown than intended.
(val_max, ":sr_level_factor", 5), # Sets a minimum renown gain of 5 no matter how high your level is.
# Determine renown gained by player renown.
(troop_get_slot, ":player_renown", "trp_player", slot_troop_renown),
(store_div, ":sr_renown_factor", 1500, ":player_renown"), # Balanced for a max renown of 1500. Beyond this you get minimum gain.
(val_mul, ":sr_renown_factor", 5),
(store_div, ":sr_factor_limit", wp_tpe_max_renown, 2), # Since two factors are used. Total is split by 2.
(val_min, ":sr_renown_factor", ":sr_factor_limit"), # Prevents an extremely low level gaining more renown than intended.
(val_max, ":sr_renown_factor", 5), # Sets a minimum renown gain of 5 no matter how high your level is.
(store_add, reg0, ":sr_level_factor", ":sr_renown_factor"), # combines both factors.
]),
# script_tpe_determine_scaled_renown
# This section implements the "Renown Scaling" feature.
# Inputs: None
# Output: reg0 (new renown)
("tpe_determine_scaled_renown",
[
# Determine renown gained by player level.
(store_character_level, ":player_level", "trp_player"),
(store_div, ":sr_level_factor", 40, ":player_level"), # Balanced for a max level of 40. Beyond this you get minimum gain.
(val_mul, ":sr_level_factor", 5),
(store_div, ":sr_factor_limit", wp_tpe_max_renown, 2), # Since two factors are used. Total is split by 2.
(val_min, ":sr_level_factor", ":sr_factor_limit"), # Prevents an extremely low level gaining more renown than intended.
(val_max, ":sr_level_factor", 5), # Sets a minimum renown gain of 5 no matter how high your level is.
# Determine renown gained by player renown.
(troop_get_slot, ":player_renown", "trp_player", slot_troop_renown),
(store_div, ":sr_renown_factor", 1500, ":player_renown"), # Balanced for a max renown of 1500. Beyond this you get minimum gain.
(val_mul, ":sr_renown_factor", 5),
(store_div, ":sr_factor_limit", wp_tpe_max_renown, 2), # Since two factors are used. Total is split by 2.
(val_min, ":sr_renown_factor", ":sr_factor_limit"), # Prevents an extremely low level gaining more renown than intended.
(val_max, ":sr_renown_factor", 5), # Sets a minimum renown gain of 5 no matter how high your level is.
(store_add, reg0, ":sr_level_factor", ":sr_renown_factor"), # combines both factors.
]),