MinhazMurks
Chieftain
- Joined
- Mar 8, 2018
- Messages
- 30
Hello,
I am trying to create a custom mission for a UU for my civilization. The custom mission is supposed to be able to claim a tile, only if the tile is not already owned by someone else. I intend to make it only claimable if there is a resource on the tile, but I will do that later. The Lua file that has the code for the mission runs, but for some reason, it's not adding the mission to my unit. I'm not sure exactly what's wrong, there shouldn't be syntax issues because I ran into that a couple of times an fixed it. I put print statements in all the functions to see what was being run, and the only thing that is printing is the first statement that prints "Kaixa Claims loaded successfully."
I added the mission following what @whoward69 said, does anyone know what might be wrong? I have attached the mod if anyone wants to look at it.
EDIT: By adding a dependency to the Community Patch I got it to work a bit better. The action still doesn't show, but now the other print statements from the functions are printing. Not quite sure what's wrong. I've reuploaded the mod.
I am trying to create a custom mission for a UU for my civilization. The custom mission is supposed to be able to claim a tile, only if the tile is not already owned by someone else. I intend to make it only claimable if there is a resource on the tile, but I will do that later. The Lua file that has the code for the mission runs, but for some reason, it's not adding the mission to my unit. I'm not sure exactly what's wrong, there shouldn't be syntax issues because I ran into that a couple of times an fixed it. I put print statements in all the functions to see what was being run, and the only thing that is printing is the first statement that prints "Kaixa Claims loaded successfully."
I added the mission following what @whoward69 said, does anyone know what might be wrong? I have attached the mod if anyone wants to look at it.
EDIT: By adding a dependency to the Community Patch I got it to work a bit better. The action still doesn't show, but now the other print statements from the functions are printing. Not quite sure what's wrong. I've reuploaded the mod.
Attachments
Last edited: