Hello all. I certainly hope I'm asking this in the right place. I've been perusing this forum for a long time and have a basic civilization up and running with all the tutorials and help from this forum. All the actual text, art and units are working just fine. But so far, they are just placeholders.
As of now, I have run into a few issues trying to create the actual Unique abilities for my civilization. And the more I read and research, the more I'm starting to think that simple editing of the existing XML script isn't going to make them work.
I guess I just want to throw out a few of my concepts and ask the community if they can be done through XML scripting or if I need to start learning something more like Lua to make them a reality.
Unique Ability:
'After researching Theology, generate a Great Prophet every 100 years'. Much like the Mayan Long Count, this would happen every 100 years (not turns). But since it is a different rate than the Mayan Long Count (every 394 years), I'm pretty sure I have to come up with a whole new script for this. Do you think Lua is the best for this? Do you think there's a way to do it just in XML?
Unique Unit:
'Replacement for the Scout: Gains +1 movement on Tundra, Snow and Hill tiles. Can also cross over Mountains'. I've tried for about two days now to find a way through XML to give a normal Scout unit a way to gain an extra movement when on certain terrain. From using "Update" tags with Tundra exceptions to even trying to jimmy rig the Inca UA to the unit. Obviously, my knowledge of coding is very limited, but I'm willing to keep trying if someone tells me it can be done in XML. I'm also encouraged by recently seeing that someone here named JFD made a very similar unit in his Kingdom of Norway mod. But he used a format called SQL which I'm not familiar with at all and most tutorials (including the original Kaels) barely had one paragraph on.
In closing, I just want to emphasize that I'm not asking anyone to do any of this work for me. I am just asking if someone can confirm wither these can be done in XML or if I have to switch over to something else like Lua. But if you could point me to some helpful tag in XML that I'm overlooking, I certainly wouldn't ignore it.
As of now, I have run into a few issues trying to create the actual Unique abilities for my civilization. And the more I read and research, the more I'm starting to think that simple editing of the existing XML script isn't going to make them work.
I guess I just want to throw out a few of my concepts and ask the community if they can be done through XML scripting or if I need to start learning something more like Lua to make them a reality.
Unique Ability:
'After researching Theology, generate a Great Prophet every 100 years'. Much like the Mayan Long Count, this would happen every 100 years (not turns). But since it is a different rate than the Mayan Long Count (every 394 years), I'm pretty sure I have to come up with a whole new script for this. Do you think Lua is the best for this? Do you think there's a way to do it just in XML?
Unique Unit:
'Replacement for the Scout: Gains +1 movement on Tundra, Snow and Hill tiles. Can also cross over Mountains'. I've tried for about two days now to find a way through XML to give a normal Scout unit a way to gain an extra movement when on certain terrain. From using "Update" tags with Tundra exceptions to even trying to jimmy rig the Inca UA to the unit. Obviously, my knowledge of coding is very limited, but I'm willing to keep trying if someone tells me it can be done in XML. I'm also encouraged by recently seeing that someone here named JFD made a very similar unit in his Kingdom of Norway mod. But he used a format called SQL which I'm not familiar with at all and most tutorials (including the original Kaels) barely had one paragraph on.
In closing, I just want to emphasize that I'm not asking anyone to do any of this work for me. I am just asking if someone can confirm wither these can be done in XML or if I have to switch over to something else like Lua. But if you could point me to some helpful tag in XML that I'm overlooking, I certainly wouldn't ignore it.