[Solved] Changing Map party speed.

  • 主题发起人 Cromcrom
  • 开始时间

正在查看此主题的用户

Cromcrom

Hi all,

I would like to make little tweaks to party speeds on the main map, But I can't find the code to do this.

Any hints or tricks or bits of coding would be greatly appreciated.

Thanks in advance.
 
Module scripts.py.

Find: script_game_get_party_speed_multiplier

You can ajust diferent speeds for parties here.
 
Thanks, but I checked through the game, it doesn't seem to be used anywhere, so no trying to figure out how its done here :sad:.

What, in the game, makes the "farmer" party go as fast as they go, what makes me go as fast as I go, what makes steppe bandits go their speed, and so on...

I would like the farmers to slow down a bit from the beginning, mainly, but I can't find the variables or party_slot or whatever to change this particular speed.

Even looking for words like "speed", "movement", travelling, in most of the "big" files, doesn't return anything seemingly usable about tweaking speeds...
 
Scripts that begin with "game" are called by the engine...they aren't called by other pieces of the module system, typically.
 
Cromcrom 说:
Thanks, but I checked through the game, it is not used anywhere.

What, in the game, makes the "farmer" party go as fast as they go, what makes me go as fast as I go, what makes steppe bandits go their speed, and so on...

I would like the farmers to slow down a bit from the beginning, mainly, but I can't find the variables or party_slot or whatever to change this particular speed.

Even looking for words like "speed", "movement", travelling, in most of the "big" files, doesn't return anything seemingly usable about tweaking speeds...

It's no used on native because native use default speed that game engine provides. Even the script is useful if you want to make farmer parties slower. Just give them multiplier below 100, and they will be slow downed.

插入代码块:
 ("game_get_party_speed_multiplier",
  [
    (store_script_param_1, ":party_no"),

    (assign,":speed_multiplier",100),
    (try_begin),
        (party_slot_eq, ":party_no", slot_party_type, spt_village_farmer),
       (assign,":speed_multiplier",30),
    (try_end),
   (set_trigger_result, ":speed_multiplier"),
  ]),
 
Alternatively, you can increase the carries_goods(x) flag in the farmer's party template - it might also have the side effect of giving them more loot?
 
@Dunde, thank you again so much, It works wondefully. This little function rocks.


Thanks to everybody else for taking time to answer.

Take care all :smile:
 
后退
顶部 底部