Shared Event Code, Change Cities People to Neutral (Full Version)

All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Mods and Scenarios



Message


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.




danlongman -> RE: Shared Event Code, Change Cities People to Neutral (6/2/2015 3:20:01 AM)

Thanks!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.101563