Hey, I'm new to coding and all that, never attempted it before, and I'm trying to make a new civilization/leader. I've been following the tutorials of a youtuber named Keniisu who is making tutorials for how to create this type of mod, but he currently only has 1 video on the subject. I watched that video and it helped a lot, but that was just for the ModBuddy aspect of creating a civ/leader, and I don't know what to do next in order to actually make my civilization do what I want it to do.
I'm trying to make a mod that gets extra gold for each type of district that is built in the Capital, and also gets Tourism from Commercial Hubs and their buildings (in all cities). However, I have no idea how to go about doing this.
So far, I've done the ModBuddy Civilization/Leader project aspect, but that doesn't include coding for actually making a trait; it just seems to include the technical stuff like text, city names, new leader's name, etc. I've also done the ModBuddy for creating a new building, and that seemed to go well. It was a simple building replacement, so I was able to just look at Civ 6's own coding and copy what I needed, and re-write what I wanted to change.
Anyway, my idea for the easiest possible method of making my leader/civ traits was to copy the code for Commercial Hubs/Markets/Banks/Stock Exchanges and add tourism as a yield for each, but I don't know which code to copy -- code of all districts and all buildings is jumbled up together in the xml files, which makes it difficult to isolate the code for a single building type -- and I also don't know what code to write in order for this change to only apply to my new mod civilization and not all other civilizations as well.
The next issue I have is that I don't know how to make the 'gold from districts' bonus only apply to the Capital city and not all other cities.
I think the major problem here is that I don't know how to create a mod lol. If anyone can help me resolve my issues, I'd be able to create my first mod, and hopefully any info I receive can be used in future mod attempts.
Thanks in advance.
I'm trying to make a mod that gets extra gold for each type of district that is built in the Capital, and also gets Tourism from Commercial Hubs and their buildings (in all cities). However, I have no idea how to go about doing this.
So far, I've done the ModBuddy Civilization/Leader project aspect, but that doesn't include coding for actually making a trait; it just seems to include the technical stuff like text, city names, new leader's name, etc. I've also done the ModBuddy for creating a new building, and that seemed to go well. It was a simple building replacement, so I was able to just look at Civ 6's own coding and copy what I needed, and re-write what I wanted to change.
Anyway, my idea for the easiest possible method of making my leader/civ traits was to copy the code for Commercial Hubs/Markets/Banks/Stock Exchanges and add tourism as a yield for each, but I don't know which code to copy -- code of all districts and all buildings is jumbled up together in the xml files, which makes it difficult to isolate the code for a single building type -- and I also don't know what code to write in order for this change to only apply to my new mod civilization and not all other civilizations as well.
The next issue I have is that I don't know how to make the 'gold from districts' bonus only apply to the Capital city and not all other cities.
I think the major problem here is that I don't know how to create a mod lol. If anyone can help me resolve my issues, I'd be able to create my first mod, and hopefully any info I receive can be used in future mod attempts.
Thanks in advance.