WB Coding Is it possible to change player captivity time?

正在查看此主题的用户

Mrxenovers

Recruit
I'm doing my first mod, and I want to change how long we are captive. I have found references to the scripts that control this (I think), in module_scripts "stay_captive_for_hours", I'm not sure what to do here to change the time someone's captured, this script is also in simple triggers.
 
解决方案
Welcome!

Check the "captivity_wilderness_taken_prisoner" menu in module_game_menus. The time of being captive is pseudo randomized there via this operation:
Python:
(store_random_in_range, ":random_hours", 18, 30),

Adjust these numers above as you need but remember that it's upper range -1 (so it's 18-29 in reality by default).
Welcome at modding, I hope you will have fun!
These two sections might be useful for you in general:

I collected here some information bits which are around in the Forge and can also serve you well

For the player captivity I can only look at the evening for it, have it not in mind at the moment and I don't have the module system files with me. Normally there should be a value indicating the hours and you can simply edit that one.
 
点赞 0
Welcome!

Check the "captivity_wilderness_taken_prisoner" menu in module_game_menus. The time of being captive is pseudo randomized there via this operation:
Python:
(store_random_in_range, ":random_hours", 18, 30),

Adjust these numers above as you need but remember that it's upper range -1 (so it's 18-29 in reality by default).
 
点赞 0
解决方案
Welcome!

Check the "captivity_wilderness_taken_prisoner" menu in module_game_menus. The time of being captive is pseudo randomized there via this operation:
Python:
(store_random_in_range, ":random_hours", 18, 30),

Adjust these numers above as you need but remember that it's upper range -1 (so it's 18-29 in reality by default).


Thank you I will try this
 
点赞 0
后退
顶部 底部