|
E6Jarhead -> Shared Event Code, Change Cities People to Neutral (6/2/2015 2:43:00 AM)
|
Below code will change the Peoples of 25% of all cities to Neutral. 0) LOOPER: TempVar0 FROM 0 TO CheckMapWidth 1) LOOPER: TempVar1 FROM 0 TO CheckMapHeight 2) CHECK: CheckLocTypeXY(TempVar0, TempVar1) == 0 3) SETVAR: TempVar2 = CheckRandomPercent 4) CHECK: TempVar2 =< 25 5) EXECUTE: ExecChangePeople(TempVar0, TempVar1, 8) 6) END CHECK 7) END CHECK 8) END LOOPER 9) END LOOPER I do this for my own use on private games.
|
|
|
|