ernieschwitz -> RE: How to Count? (4/25/2014 4:13:46 AM)
|
If so I imagine you want to add a few lines to your function... 0) SetVar: TempVar2 == CheckTurn 1) LOOPER: TempVar0 FROM 0 TO CheckMapWidth 2) LOOPER: TempVar1 FROM 0 TO CheckMapHeight 3) CHECK: CheckLandscapeType(TempVar0, TempVar1) == 3 4) CHECK: CheckHexOwner(TampVar0, Tempvar1) == TempVar2 5) SETVAR: TempVar3 + 1 6) END CHECK 7) END CHECK 8) END LOOPER 9) END LOOPER 10) SETVAR: TempVar3 + ChechRegimeVar(TempVar2, "WheatVarNr") 11). EXECUTE: ExecSetRegimeVar (TempVar2, "WheatVarNr", TempVar3) Where "WheatVarNr" is the RegimeVarNr of wheat.
|
|
|
|