Aldollin
Chieftain
- Joined
- Mar 7, 2017
- Messages
- 87
So after searching through the forum ans not really finding an actual solution i decides to ask
does anyone have working lua code that allows certain improvements to be build on mountains?
(Getting certain things to be able to move on mountains is solved and doable with xml)
The general idea seems to be that you change the terrain to a hill with lua, place the mine and then set the terrain back to a mountain, and as others have shown the mine will stay on the tile (with even a special looking mountain)
Now suppose i can do that with lua, what do i use for a trigger/Hook for when the script takes action? For that i would need maybe a new unitoperation that can only be used by builders on mountains?
I remember someone suggesting using the placement of a forest as a trigger since that can be done on mountains(after changing some xml)
But wouldnt that in practice require the planting of forests to be unlocked?
districts seem to be a similar problem, looking at what was mentioned in other posts
Looking forward to any input about putting stuff on mountains with lua really
does anyone have working lua code that allows certain improvements to be build on mountains?
(Getting certain things to be able to move on mountains is solved and doable with xml)
The general idea seems to be that you change the terrain to a hill with lua, place the mine and then set the terrain back to a mountain, and as others have shown the mine will stay on the tile (with even a special looking mountain)
Now suppose i can do that with lua, what do i use for a trigger/Hook for when the script takes action? For that i would need maybe a new unitoperation that can only be used by builders on mountains?
I remember someone suggesting using the placement of a forest as a trigger since that can be done on mountains(after changing some xml)
But wouldnt that in practice require the planting of forests to be unlocked?
districts seem to be a similar problem, looking at what was mentioned in other posts
Looking forward to any input about putting stuff on mountains with lua really