Craig_Sutter
Deity
I'm not certain if anyone actually responds to this thread... but I'll give it a try:
In my mod, I wish to have positive and negative diplomatic modifiers that are inherent between civilizations. For example, I want Denmark and Sweden to always be a little friendly with each other... perhaps "We share a similar culture" would be the text for this. Similarly, I wish some civilizations to always be a little against each other... for instance, the Celts and Denmark may always be a little against each other, as in "This is our island, stay out!".
I've seen the following lua function that would serve:
GetScenarioDiploModifier1(ePlayer1, ePlayer2)
As of now, the coding is beyond me... I'll learn, and I've looked in the game files, but nothing there quite does what I want. I really need a very good template and I can take it from there. All I need is something that would say (+ 25) diplomacy (or so) between players no. 0 and 15 (which are the id numbers for Denmark and Sweden in my mod... and this would stay throughout the game.
Similarly, I want to have such values between some minor civilizations and playable civs. I not certain if the above function will work for minors as well.
So if someone were able to make a template that I could follow and adjust to my specific civs in my mod, I would appreciate it. I have a feeling it is only a moments work for someone familiar with lua while it is likely at least a week of frustration for me.
Thank-you in advance.
In my mod, I wish to have positive and negative diplomatic modifiers that are inherent between civilizations. For example, I want Denmark and Sweden to always be a little friendly with each other... perhaps "We share a similar culture" would be the text for this. Similarly, I wish some civilizations to always be a little against each other... for instance, the Celts and Denmark may always be a little against each other, as in "This is our island, stay out!".
I've seen the following lua function that would serve:
GetScenarioDiploModifier1(ePlayer1, ePlayer2)
As of now, the coding is beyond me... I'll learn, and I've looked in the game files, but nothing there quite does what I want. I really need a very good template and I can take it from there. All I need is something that would say (+ 25) diplomacy (or so) between players no. 0 and 15 (which are the id numbers for Denmark and Sweden in my mod... and this would stay throughout the game.
Similarly, I want to have such values between some minor civilizations and playable civs. I not certain if the above function will work for minors as well.
So if someone were able to make a template that I could follow and adjust to my specific civs in my mod, I would appreciate it. I have a feeling it is only a moments work for someone familiar with lua while it is likely at least a week of frustration for me.
Thank-you in advance.