if (datecount == 0) { if (phaseturns >= 5) looping = true; if (phaseturns == 0) { myattackchoice = 1; difficulty = 0; } if (phaseturns == 1) { myattackchoice = 6; difficulty = 1; } if (phaseturns == 2) { myattackchoice = 1; difficulty = 1; } if (phaseturns == 3) { myattackchoice = 6; difficulty = 0; } if (phaseturns == 4) { myattackchoice = 5; difficulty = 0; } if (phaseturns > 4) { var _rand = choose(0, 1); if (_rand == 0) { myattackchoice = 1; difficulty = 4; } if (_rand == 1) { myattackchoice = 6; difficulty = 0; } } } if (datecount == 1) { if (phaseturns > 4) phaseturns = 0; if (phaseturns == 0) { myattackchoice = 3; difficulty = 0; } if (phaseturns == 1) { myattackchoice = 4; difficulty = 0; } if (phaseturns == 2) { myattackchoice = 6; difficulty = 4; } if (phaseturns == 3) { myattackchoice = 5; difficulty = 1; } if (phaseturns == 4) { myattackchoice = 3; difficulty = 2; looping = true; } } if (datecount == 2 || datecount == 3) { if (phaseturns == 0) { myattackchoice = 3; difficulty = 1; } if (phaseturns == 1) { myattackchoice = 6; difficulty = 2; } if (phaseturns == 2) { myattackchoice = 1; difficulty = 2; } if (phaseturns == 3) { myattackchoice = 4; difficulty = 1; } if (phaseturns == 4) { myattackchoice = 1; difficulty = 3; } if (phaseturns == 5) { myattackchoice = 6; difficulty = 3; } if (phaseturns >= 6) { myattackchoice = 5; difficulty = 2; phaseturns = 2; } } scr_debug_print("turn: " + string(turns)); if (myattackchoice == 1) scr_debug_print("myattackchoice: cats"); if (myattackchoice == 2) scr_debug_print("myattackchoice: bombs"); if (myattackchoice == 3) scr_debug_print("myattackchoice: rotating box"); if (myattackchoice == 4) scr_debug_print("myattackchoice: 3d tunnel"); if (myattackchoice == 5) scr_debug_print("myattackchoice: sing"); scr_debug_print("difficulty: " + string(difficulty));