How to mod the AI? |
I have a question which arisen from another post of mine, since it isn't the same topic I am creating a new thread.
I would like to mod the AI so it will accept gifts even if it is very angry or murderous. Is there a way? If so, how?
If that isn't possible, is there a way to magically switch a planet's ownership from me to an AI opponent?

Re: How to mod the AI?
What is the range of valid values for AI anger, and how do they correspond to the "mood" you see in the game. In the game, there seems to be a spectrum with "murderous" on the bad end and some more positive terms on the other end, but there also seems to be a seperate spectrum with things like "fearful" in it.

Re: How to mod the AI?
If you look in the source file Script_AI_Politics.txt, you'll see a function, Calculate_Current_Anger, that converts a player's anger level into its mood against each of the other players.
The Balance Mod AI has additional moods which are created as a combination of anger and fear, which is where you'll see moods like co-operative or fearful etc.
-----

Re: How to mod the AI?
I'm using Unnamed's mod, but the Script_AI_Politics.txt provided therein says it is from (or at least based on) Balance Mod v1.05. I see the function and how it switches in the alternate moods based on point count. Is this just chrome, though, or is there an actual difference in AI diplomacy between (for example) "Murderous", "Insatiable" & "Terrified".
In Script_AI_GlobalSettings.txt (again from Unnamed's mod), the AI_Set_Political_Treaty_Elements function looks to be using the "anger" as a number rather than the moods.

Re: How to mod the AI?
It's does, but indirectly. In the Balance Mod, the anger level for various political items are modified by the same variables as the mood description. A lot of that infrastructure was present in the v1.05 scripts but has since been improved in the latest incarnations.
You can read a bit more about it here:
http://www.captainkwok.net/balancemodfaqs.php
-----




Re: How to mod the AI?
There's some general information at the SE wiki:
http://wiki.spaceempires.net/index.php/AI_and_Script_Editing_%28SEV%29
It's pretty basic, but gives you an overview on how the scripts work, including which ones to compile etc.
The info you'd be interested in are the [Empire Name]_Main_Script.txt, which has each AI's anger levels for various political items. You can change the anger values to accept a gift. After, follow the outline on the wiki for re-compiling the scripts and where to put them.
-----
Space Empires Depot | SE:V Balance Mod