Question about People
Posted: Wed Apr 02, 2008 3:22 am
Here's what i need to do i need to be able to have a city that has us people when in us control then after it gets captured the people goto the 2nd regmines people. SO heres what i did.
I really wish i could write setting to a gamevar via a gamevar # instead of having to pick from teh gui if so i could have done it all in a loop but now i need to make 1 event per city which sucks but oh well.
First the loop
I really wish i could write setting to a gamevar via a gamevar # instead of having to pick from teh gui if so i could have done it all in a loop but now i need to make 1 event per city which sucks but oh well.
First the loop
Code: Select all
0) ' Each event nbr corresponds to a city via gamevars
1) LOOPER: TempVar0 FROM 26 TO 27
2) EXECUTE: ExecExecuteEvent(TempVar0)
3) EMPTY
4) END LOOPER
Code: Select all
0) ' AUSTIN event 26
1) SETVAR: TempVar0 = Gameslot_Austin X(#56)
2) SETVAR: TempVar1 = Gameslot_Austin Y(#86)
3) SETVAR: TempVar2 = CheckHexOwner(TempVar0, TempVar1)
4) SETVAR: TempVar3 = 0
5) CHECK: Gameslot_Austin Owner(#26) == TempVar2
6) SETVAR: TempVar3 = 1
7) END CHECK
8) CHECK: TempVar3 == 0
9) SETVAR: Gameslot_Austin Owner(#26) = TempVar2
10) CHECK: TempVar2 == 0
11) SETVAR: TempVar4 = 1
12) END CHECK
13) CHECK: TempVar2 > 0
14) SETVAR: TempVar4 = 2
15) END CHECK
16) EXECUTE: ExecChangeLocationType(TempVar0, TempVar1, 5, TempVar4)
17) EXECUTE: ExecMessage(TempVar2, -1, 0, -1)
18) END CHECK