Page 1 of 1

Shared Event Code, Change Cities People to Neutral

Posted: Mon Jun 01, 2015 11:43 pm
by E6Jarhead
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.

RE: Shared Event Code, Change Cities People to Neutral

Posted: Tue Jun 02, 2015 12:20 am
by danlongman
Thanks!