Serp
King
- Joined
- Apr 1, 2015
- Messages
- 666
When I use include("modLUA"), where does the file look for this modLUA ?
I think you can include all files, which are in the same mod?
Is it possible to include a file which is in another mod?
and:
if I include a .lua in which I call several Events directly. Will they be called twice ? One time in the included lua and one time in the lua which includes?
The problem is the following (not really important to read, would be enough if you can answer my main questions
):
In my modpack I use the "fortress borders" mod and the "Units - Colonists and Pioneers" mod. I improved the fortress borders mod a bit.
What I want to do now is: Before cities, founded by pioneers, gets their additional tiles, remove tile ownership from the forts near to that city.
-> I have to link these too mods. The easiest thing to do is to include the ColonistsLUA.lua in the "fortress borders" lua and call the Colonists function after the "fortress border" functions are done.
I think you can include all files, which are in the same mod?
Is it possible to include a file which is in another mod?
and:
if I include a .lua in which I call several Events directly. Will they be called twice ? One time in the included lua and one time in the lua which includes?
The problem is the following (not really important to read, would be enough if you can answer my main questions

In my modpack I use the "fortress borders" mod and the "Units - Colonists and Pioneers" mod. I improved the fortress borders mod a bit.
What I want to do now is: Before cities, founded by pioneers, gets their additional tiles, remove tile ownership from the forts near to that city.
-> I have to link these too mods. The easiest thing to do is to include the ColonistsLUA.lua in the "fortress borders" lua and call the Colonists function after the "fortress border" functions are done.