alpaca
King of Ungulates
- Joined
- Aug 3, 2006
- Messages
- 2,322
Fixing this AI handicap thing seems like it might be a little bit more annoying than originally thought. It is very difficult to discover exactly what bonuses or negatives the AI is receiving from the player and/or AI lists for handicaps.
From my observations, AIUnhappinessPercent is not used. I started a game on Prince and one on Deity, and in both the AI got 60% unhappiness (corresponding to the chieftain level). Changing the post defines, the AI got the correct amount of happiness for Prince even when I play on Deity. The easiest way to check is using FireTuner's Lua console.
Unfortunately, modding the postdefines is either bugged or at least doesn't work like I expect it to. When I change the postdefine in a mod and start a game, then nothing changes (actually, the DB value changes but the AI still uses the old value in game). But when I exit to the menu again and restart, the new values are used. Very annoying.