Shared Event Code VP for Oil and Raw
Posted: Mon Jun 01, 2015 11:30 pm
This event will give 20 VP to all instances of Oil and Raw.
If you want a different VP amount changes the number "20" in lines 7 and 15
0) Comment Change VP of Raw and Oil Locations
1) CommentRaw
2) LOOPER: TempVar0 FROM 0 TO CheckMapWidth
3) LOOPER: TempVar1 FROM 0 TO CheckMapHeight
4) Comment Line below checks for location type #2 Raw
5) CHECK: CheckLocTypeXY(TempVar0, TempVar1) == 2
6) Comment Line below Changes VP amount of that Hex to 20
7) EXECUTE: ExecChangeVP(TempVar0, TempVar1, 20)
8) END CHECK
9) END LOOPER
10) END LOOPER
11) Comment Oil
12) LOOPER: TempVar0 FROM 0 TO CheckMapWidth
13) LOOPER: TempVar1 FROM 0 TO CheckMapHeight
14) CHECK: CheckLocTypeXY(TempVar0, TempVar1) == 3
15) EXECUTE: ExecChangeVP(TempVar0, TempVar1, 20)
16) END CHECK
17) END LOOPER
18) END LOOPER
If you want a different VP amount changes the number "20" in lines 7 and 15
0) Comment Change VP of Raw and Oil Locations
1) CommentRaw
2) LOOPER: TempVar0 FROM 0 TO CheckMapWidth
3) LOOPER: TempVar1 FROM 0 TO CheckMapHeight
4) Comment Line below checks for location type #2 Raw
5) CHECK: CheckLocTypeXY(TempVar0, TempVar1) == 2
6) Comment Line below Changes VP amount of that Hex to 20
7) EXECUTE: ExecChangeVP(TempVar0, TempVar1, 20)
8) END CHECK
9) END LOOPER
10) END LOOPER
11) Comment Oil
12) LOOPER: TempVar0 FROM 0 TO CheckMapWidth
13) LOOPER: TempVar1 FROM 0 TO CheckMapHeight
14) CHECK: CheckLocTypeXY(TempVar0, TempVar1) == 3
15) EXECUTE: ExecChangeVP(TempVar0, TempVar1, 20)
16) END CHECK
17) END LOOPER
18) END LOOPER