Search found 2 matches

by Giovy2001
Tue Aug 02, 2022 10:37 am
Forum: Modding help
Topic: Event handlers de-sync
Replies: 2
Views: 973

Re: Event handlers de-sync


The way you usually deal with event handlers registered at runtime is to store all the related state that made you register them into the global table, and then re-register all of the handlers again in the on_load event based on the state you stored in global.


Thank you. It was simpler than I ...
by Giovy2001
Mon Aug 01, 2022 2:07 pm
Forum: Modding help
Topic: Event handlers de-sync
Replies: 2
Views: 973

Event handlers de-sync

Hello, I'm making a mod called "Dialogue box" which allows modder to create dialogues quickly.
briefly you just define a global variable containing all necessary info and the mods add dialogues for you.

Example:
example_dialogue_1 = {
person="Uncle", -- Used in the title of the dialogue and as a ...

Go to advanced search