Scripting the AI....
Posted: Thu Jan 22, 2015 8:46 pm
Apologies for the open-ended topic and for the fact that I'm most likely to be re-asking questions already asked before.
I now have an application written that reverses the scenario - tiles, objects, sides and height data (it's undergoing extensive testing and a bit of polishing at the moment). It would be possible, I guess, to simply use AI_Masterplan() as-is as a simple method of remaking scenarios for playing from the other side.
However, I'd prefer if possible to be a little bit more ambitious.
I'm assuming from what I've read here that other than assigning teams, there's not much point in using the editor to configure the AI (and I know that AI_Masterplan re-assigns the teams anyway)
First questions are around SetTeamActivationStage()
Is the definition of stages simply up to the Scenario Designer or do the stage numbers used have some pre-defined meaning.
SetTeamActivationStage() calls SetTeamData() using an "index" of 2.
Other indexes I've seen are 0 (which seems to be used for co-ordinates) and 1 (don't know what that's for).
Are there other pre-defined index values?
Are there index values available to the Scenario Designer to store his/her own user-defined team data?
Thanks in advance.
I now have an application written that reverses the scenario - tiles, objects, sides and height data (it's undergoing extensive testing and a bit of polishing at the moment). It would be possible, I guess, to simply use AI_Masterplan() as-is as a simple method of remaking scenarios for playing from the other side.
However, I'd prefer if possible to be a little bit more ambitious.
I'm assuming from what I've read here that other than assigning teams, there's not much point in using the editor to configure the AI (and I know that AI_Masterplan re-assigns the teams anyway)
First questions are around SetTeamActivationStage()
Is the definition of stages simply up to the Scenario Designer or do the stage numbers used have some pre-defined meaning.
SetTeamActivationStage() calls SetTeamData() using an "index" of 2.
Other indexes I've seen are 0 (which seems to be used for co-ordinates) and 1 (don't know what that's for).
Are there other pre-defined index values?
Are there index values available to the Scenario Designer to store his/her own user-defined team data?
Thanks in advance.