I'm trying to write a Lua script that can either eliminate certain diplomatic penalties for a civ, or at least get as close to that as possible by using positive opinion modifiers to try to cancel out the penalties. I have some questions regarding this topic:
1. What's the difference between GameEvents.GetScenarioDiploModifier1 and GameEvents.GetScenarioDiploModifier2? Judging from the way GSDM1 is used in ViceVirtuoso's Diarmuid mod (http://steamcommunity.com/sharedfiles/filedetails/?id=180615578) and the examples shown for GSDM1 and 2 on the modding wiki, they seem to both apply a decrease in opinion (with negative value = increase) for one AI towards another player.
2. Is there any way for me to directly "erase" a player's history of disliked behaviours (e.g. make it so that Player.GetWarmongerThreat reports no warmonger threat, and Player.GetNumTimesRobbedBy, GetWeDenouncedFriend, etc. return 0 for the human player)?
3. If 2. is impossible, requires DLL or impractical, does anyone happen to know how the warmonger levels returned by Player.GetWarmongerThreat are converted into negative opinion modifiers?
1. What's the difference between GameEvents.GetScenarioDiploModifier1 and GameEvents.GetScenarioDiploModifier2? Judging from the way GSDM1 is used in ViceVirtuoso's Diarmuid mod (http://steamcommunity.com/sharedfiles/filedetails/?id=180615578) and the examples shown for GSDM1 and 2 on the modding wiki, they seem to both apply a decrease in opinion (with negative value = increase) for one AI towards another player.
2. Is there any way for me to directly "erase" a player's history of disliked behaviours (e.g. make it so that Player.GetWarmongerThreat reports no warmonger threat, and Player.GetNumTimesRobbedBy, GetWeDenouncedFriend, etc. return 0 for the human player)?
3. If 2. is impossible, requires DLL or impractical, does anyone happen to know how the warmonger levels returned by Player.GetWarmongerThreat are converted into negative opinion modifiers?