BannerlordCE / CEEvents

Captivity Events Source Code
https://www.nexusmods.com/mountandblade2bannerlord/mods/1226
MIT License
4 stars 6 forks source link

Introduce Delayed Events #45

Open TheBadListener opened 3 years ago

TheBadListener commented 3 years ago
LL-Muse commented 3 years ago

I did something similar in one of my other mods

I pretty much add a new class that had 2 fields -time left in hours -event to fire

created a list of type of my new class then I added a campaign on hourly tick where I iterate over the list and decrement the hours left and check if it is 0 and once it hits zero I execute the event and remove it for the list

TheBadListener commented 3 years ago

Added Randomizer and Conditional Checker as well as for Random/Captor/Captive.