I did try the following in my LuaAI.lua:
Code: Select all
return {
{
name="Kernel Panic AI",
desc="Can now play all three factions and ONS!",
version = 4,
options =
{
{
key="difficulty",
name="AI Difficulty Level",
desc="1 means, the AI plays very poor, 5 means, it gives its best",
type = 'number',
def = 3,
min = 1,
max = 5,
step = 1,
},
},
},
{
name="Fair KPAI",
desc="Does not build much more than opponents.",
},
}
- Maybe I am using the wrong syntax, in which case tell me the right one.
- Maybe AI options are not supported for LuaAI, in which case that is my feature request.
Note: I know SpringLobby support C++ AI options because for BaczekKPAI the option shows fine.