Increasing Map Speed & One-shot Bandit Parties

Users who are viewing this thread

Hello,

I'd like to increase the speed of all parties on the world map, is there a script somewhere in module_scripts I can edit to achieve this?

Additionally, is there something I can add to a bandit party's spawning script in module_scripts so that they spawn only once and never again after being destroyed?
 
Solution
Just go with something simple:
Code:
##  #script_game_get_party_speed_multiplier
##  # This script is called from the game engine when a skill's modifiers are needed
##  # INPUT: arg1 = party_no
##  # OUTPUT: trigger_result = multiplier (scaled by 100, meaning that giving 100 as the trigger result does not change the party speed)

("game_get_party_speed_multiplier",
   [
    (store_script_param, ":unused_party_no", 1),
    #(set_trigger_result, 100),   # normal speed
    (set_trigger_result, 120),   # 20 % faster
    #(set_trigger_result, 150),   # 50 % faster
    #(set_trigger_result, 200),   # 100 % faster, twice as fast
    ]),

You have probably inserted some fancy script which edits a lot of stuff and also affects mission...

Thanks for the links, I found what seems to be the script but I'm not sure what numbers I'm actually meant to be changing here.

Code:
("game_get_party_speed_multiplier",
        [
            (store_script_param_1, ":script_param_1"),
            (try_begin),
                (this_or_next|eq, ":script_param_1", "p_main_party"),
                (party_slot_eq, ":script_param_1", slot_party_type, 13),
                (party_get_skill_level, ":skill_level_script_param_1_14", ":script_param_1", 14),
                (val_mul, ":skill_level_script_param_1_14", 3),
                (val_add, ":skill_level_script_param_1_14", 100),
            (else_try),
                (assign, ":skill_level_script_param_1_14", 100),
            (try_end),
            (try_begin),
                (eq, ":script_param_1", "p_main_party"),
                (call_script, "script_get_inventory_weight_of_whole_party"),
                (assign, ":var_3", reg0),
                (val_div, ":var_3", 100),
                (val_sub, ":skill_level_script_param_1_14", ":var_3"),
            (try_end),
            (val_max, ":skill_level_script_param_1_14", 0),
            (set_trigger_result, ":skill_level_script_param_1_14")
        ]),
 
Upvote 0
Just go with something simple:
Code:
##  #script_game_get_party_speed_multiplier
##  # This script is called from the game engine when a skill's modifiers are needed
##  # INPUT: arg1 = party_no
##  # OUTPUT: trigger_result = multiplier (scaled by 100, meaning that giving 100 as the trigger result does not change the party speed)

("game_get_party_speed_multiplier",
   [
    (store_script_param, ":unused_party_no", 1),
    #(set_trigger_result, 100),   # normal speed
    (set_trigger_result, 120),   # 20 % faster
    #(set_trigger_result, 150),   # 50 % faster
    #(set_trigger_result, 200),   # 100 % faster, twice as fast
    ]),

You have probably inserted some fancy script which edits a lot of stuff and also affects mission templates. Never insert scripts of other people if you don't know what they are doing.
 
Last edited:
Upvote 0
Solution
Just go with something simple:
Code:
##  #script_game_get_party_speed_multiplier
##  # This script is called from the game engine when a skill's modifiers are needed
##  # INPUT: arg1 = party_no
##  # OUTPUT: trigger_result = multiplier (scaled by 100, meaning that giving 100 as the trigger result does not change the party speed)

("game_get_party_speed_multiplier",
   [
    (store_script_param, ":party_no", 1),
    #(set_trigger_result, 100),   # normal speed
    (set_trigger_result, 120),   # 20 % faster
    #(set_trigger_result, 150),   # 50 % faster
    #(set_trigger_result, 200),   # 100 % faster, twice as fast
    ]),

You have probably inserted some fancy script which edits a lot of stuff and also affects mission templates. Never insert scripts of other people if you don't know what they are doing.

Thank you very much sir
 
Upvote 0
I have just tried it myself but there is an error message when compiling:
Local variable never used: party_no, at: game_get_party_speed_multiplier

Code:
  ("game_get_party_speed_multiplier",
   [
     (store_script_param, ":party_no", 1),
     (set_trigger_result, 60),
    ]),
What else should be done in order to have it work?
 
Upvote 0
Back
Top Bottom