On the learning curve...

Jopo

Chieftain
Joined
May 8, 2010
Messages
90
Location
Joensuu, Finland
I used to mod Civ 5 and earlier ones too, so I´m not totally new to modding, but this new Civ 6 system does indeed seem to have a bit of a learning curve, at least for me. :-D

Don´t get me wrong, I think the new system has potential as it allows us to create new modifiers etc. very freely, so I´m exited to get learning this new system.

Now, I would have a few debugging questions...

I´ve tried creating two things that I haven´t yet been able to get working;

1. The Armorer building; This building gives all land combat units (melee, anti-cav, ranged and both cavalries) the "Cuirass"-ability which gives a generic combat strength boost (if you have an idea or want to present arguments for a well balanced effect, I´m all ears). The idea is that, after discovering Iron Working, things like the Roman "Lorica Segmentata" and other types of body armor come available, although there were of course even earlier armors made of leather, bronze etc., but I decided to put the building prereq to Iron Working. The Generic (both on attack and defense) modifier is justified, I think, because such armor made all the difference on the battlefield.
Just imagine yourself in a sword fight as a Roman legionary against a Celtic warrior etc. :-D You are wearing Iron armor whereas the Celt fights in "traditional costume" wearing only his bravery and some paint. My point of course is that, with the armor you could withstand a hit if the opponent gets one through, whereas the Celt´s fight would pretty much be over if you got lucky with your trusty Gladius. On the other hand, if you find yourself on the defensive, facing arrows etc. then you´d definitely want to have armor, right? :-D

Iron armor of course went out of use after gunpowder weapons rendered them obsolete, but modern warfighters have advanced body armors capable of saving your bacon even against assault rifle bullets (if it hits the ceramic plate), so the story of the "Cuirass" goes on. :-D

For game effect, I was thinking something like 5-10 points of combat power increase? Say a swordsman with a strength of 36 was it, becomes str 46, giving a very distinct advantage against other swordsmen etc. but still weaker than musketman (str 55 I think).

So in this one I would need help in creating the unit ability and successfully referencing it through buildings etc.



2. Amaterasu, The Goddess of The Rising Sun-Belief;

For this one I tried creating a modifier similar to the Goddess of Festivals, increasing output from plantations etc. (farmed bonus & luxury resources), as Amaterasu is the Goddess of the Sun, so I thought it would be suitable that she affects farming?

Question; To all Japanese people on the forums... If you have an idea for a suitable effect which would do justice to Amaterasu, then I´m all ears again.

However, when I tested my mod, it failed to launch and went back to main menu, so something didn´t pass the checks?


Now, if someone wants to help me code these things, then I´d like to ask, does the fanatics forums have a Discord Channel etc. where it would be possible to chat/talk without the delay of forum posts and possibly exchange .xml files so ppl could take a look at the rather lengthy files and possibly locate what´s wrong?


Oh yes, there´s the upload button; A zip file containing the .xml gameplay files for my mod. If someone could take a look at the code and spot the errors for me?

Thank you!
 

Attachments

Oh Yes! I had a definite Eureka moment there! :-D I got the Belief working as the game finally launched and it showed up in civilopedia. All the while as Sogno Di Volare was playing in the background. Well, now to get the unit ability working also...
 
I´m on a roll... I got 2 beliefs working now and more coming up as soon as I hash out ideas for suitable effects for different old deities etc. :-D

Now, a few questions...

If I wanted to create a building (say Brewery), which grants a luxury resource (Beer), but requires Wheat within city radius and furthermore, this flow of Beer would grant faith (Brewery building faith yield) with the Ancient Egyptian Cat Goddess Bastet belief (one of their favorite deities Wikipedia says) and also the Sekhmet, Lioness of Slaughter belief.
This is because the Egyptians believed that such Cat/Lion-Goddesses must occasionally (once a year) be appeased by drinking yourself under the table, traditions which have sadly been totally forgotten by modern religions. :-D

So here´s what I´ve thought for those beliefs etc. effect-wise;

Bastet, Cat-Goddess of Protection, +2 Faith From Breweries & Granaries, also +2 food from granaries (Cats were extremely important to Egyptians, as they protected the granaries from vermin) and if that´s not enough, then maybe a small combat bonus on friendly soil (protector deity)?

Sekhmet, The Lioness of Slaughter; +2 Faith from Barracks and Breweries, receive a portion of killed units strength as faith and maybe the "Fury of Sekhmet"-Ability to melee units?
The story goes (Wikipedia) that The Gods sent Sekhmet once to punish humanity and unfortunately She liked the taste of blood so much that She didn´t stop even when commanded by the other Gods, so they had to trick her into drinking the water of the Nile, which they turned into wine, effectively rendering poor Sekhmet so inebriated that she lost her will to slaughter and humanity was saved once more. :-D

So, anyone adept in coding buildings and resources? How would I make my wheat requiring Brewery etc.?

Cheers!
 
OK, I got an idea for an effect for the Amaterasu belief; Amaterasu, the Goddess of the Rising Sun, grants her chosen people 3 relics upon adoption of belief, these are the 3 historic treasures of Japan, the Sword, The Mirror and The Necklace. I´m working on adding relic icons for these and many more... Also since the Imperial family of Japan at least used to be considered descendants of Amaterasu, then maybe as an effect, grant say +5 faith from the Palace and since Shinto permeates Japanese culture at least to some extent then perhaps say +2 culture from shrines and temples? Not too overpowered I hope? Heaven help you if the AI gets to the belief first... :-D

Question; When coding the modifier, can I specify which relic to grant? I looked at the goody hut effect and it only says "grant 1 (random) relic"? I´d like to specify that the Amaterasu belief grants exactly the 3 aforementioned relics, but if that´s impossible then random relics it´ll have to be... :-D
 
Back
Top Bottom