Shared Event Code, Change Cities People to Neutral

Discuss and post your mods and scenarios here for others to download.

Moderator: Vic

Post Reply
E6Jarhead
Posts: 29
Joined: Sun May 31, 2015 10:26 pm
Location: Hendersonville, NC

Shared Event Code, Change Cities People to Neutral

Post 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.
Th only reason some people are still alive is because it is illegal to kill them!
danlongman
Posts: 584
Joined: Tue Mar 27, 2012 8:36 pm
Location: Over the hills and far away

RE: Shared Event Code, Change Cities People to Neutral

Post by danlongman »

Thanks!
"Patriotism: Your conviction that this country is superior to all other countries because you were born in it." - George Bernard Shaw
Post Reply

Return to “Mods and Scenarios”