Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Shared Event Code, Change Cities People to Neutral

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Mods and Scenarios >> Shared Event Code, Change Cities People to Neutral Page: [1]
Login
Message << Older Topic   Newer Topic >>
Shared Event Code, Change Cities People to Neutral - 6/2/2015 2:43:00 AM   
E6Jarhead

 

Posts: 29
Joined: 6/1/2015
From: Hendersonville, NC
Status: offline
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.
Post #: 1
RE: Shared Event Code, Change Cities People to Neutral - 6/2/2015 3:20:01 AM   
danlongman

 

Posts: 586
Joined: 3/27/2012
From: Over the hills and far away
Status: offline
Thanks!

_____________________________

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

(in reply to E6Jarhead)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Advanced Tactics Series >> Mods and Scenarios >> Shared Event Code, Change Cities People to Neutral Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.195