Search the Community
Showing results for tags 'priority'.
In modinfo.lua we have a variable called "priority", and the higher this value is (compared to other mods) the earlier it will be loaded, and thus the lower it is, the later it will be loaded. So, a mod load order could look like this. Priority 300 - Mod 1 Priority 300 - Mod 2 Priority 1 - Mod 3 Priority 0 - Mod 4 Priority -1 - Mod 5 Priority -3 - Mod 6 If that's correct, then I'm happy so far Now, how does that impact the modutil functions? If I have a mod where the only functionality is to call AddComponentPostinit() or AddPrefabPostinit() or AddPlayerPostinit(), does the load order matter? My guess would be no, thinking that all these postinits being compiled into a list, and then after all the mods are loaded, the world starts generating and applying all the postinits as it spawns entities. If so, then the "priority" variable is irrelevant for my mod, right? Also, what are the maximum and minimum values acceptable for the "priority" variable? I always wanted to know, and I can't find that info anywhere.
when i press the space bar i want it to do these actions in this order: 1. if there are hostile mobs within range - ATTACK 2. if equipped with a net - CATCH NEAREST INSECT (not to pick up petals!! you can still pick up petals if you click on them with the mouse) 3. if your inventory is full and there are no hostile mob in range - PICK UP FIRST STACKABLE ITEM IN INVENTORY 4. that's all i can think of now but i'm sure you guys can think of some other actions to put in number 4.