- Joined
- May 24, 2008
- Messages
- 27
I've been working with my script for a tower building game.
Quick Question...
Insted of Point-Value, How can i adress the x's of points for CVP's so that later i can use the differences of them.
The CVP's Are the unique points of each new structure as they are built.
Bc Later I ...
Quick Question...
- Events
- Unit - A unit Finishes construction
-
Actions
- Set C = (C + 1)
- If (C Equal to 1) then do (Set C1 = 1) else do (Do nothing)
- If (C Equal to 2) then do (Set C2 = 1) else do (Do nothing)
- If (C Equal to 3) then do (Set C3 = 1) else do (Do nothing)
- If (C Equal to 4) then do (Set C4 = 1) else do (Do nothing)
- If (C Equal to 5) then do (Set C = 1) else do (Do nothing)
- If (C1 Equal to 1) then do (Set CPV1 = (Point-value of (Constructed structure))) else do (Do nothing)
- If (C2 Equal to 1) then do (Set CPV2 = (Point-value of (Constructed structure))) else do (Do nothing)
- If (C3 Equal to 1) then do (Set CPV3 = (Point-value of (Constructed structure))) else do (Do nothing)
- If (C4 Equal to 1) then do (Set CPV4 = (Point-value of (Constructed structure))) else do (Do nothing)
Insted of Point-Value, How can i adress the x's of points for CVP's so that later i can use the differences of them.
The CVP's Are the unique points of each new structure as they are built.
Bc Later I ...
-
Finding the Difference between CPC1 4
-
Events
- Unit - A unit Finishes construction
-
Conditions
- C Equal to 4
-
Actions
- Set Differencenumber = (CPV1 - CPV2)
- If ((CPV3 - CPV4) Equal to (Integer((X of CastleDifference)))) then do (Unit - Create 1 Farm for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)
-
Events