get_training_cpu_action

Returns the current “CPU Action” setting in training mode. Can be used in ai_update.gml to separate attack code from other code (like recovery code).

Return values:

When not in training mode, the function will always return CPU_FIGHT.

Example, called from ai_update.gml:

if (get_training_cpu_action() == CPU_FIGHT) {
// insert custom attack code here, since it should only execute
// if the CPU Action is set to Fight
}
// insert custom recovery code here, since the CPU should try to recover regardless of the CPU Action setting