HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Error in spell need help!

08-12-2008, 08:02 AM#1
Argo
OK, the problem I'm having with this spell is what ever unit is selected first sticks to being the only unit able to be released by the release ability. I checked the code over multiple times and can't seem to see whats wrong. Some help please!

Init:
Initialization
Collapse Events
Map initialization
Conditions
Collapse Actions
Player - Make Player 1 (Red) treat Player 12 (Brown) as an Ally
Player - Make Player 12 (Brown) treat Player 1 (Red) as an Ally with shared vision and full shared units
controlStart:
Control
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Control
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
VD_Control_amount Greater than or equal to 11
Collapse Then - Actions
-------- ERROR DISPLAY (NEED CODE) --------
Do nothing
Collapse Else - Actions
Set VD_Control_unit[VD_Control_amount] = (Target unit of ability being cast)
Set release[VD_Control_amount] = ((Player number of (Owner of (Target unit of ability being cast))) - 1)
Unit - Change ownership of VD_Control_unit[VD_Control_amount] to Player 1 (Red) and Retain color
Unit - Add Release to VD_Control_unit[VD_Control_amount]
Set VD_Control_amount = (VD_Control_amount + 1)
controlEnd:
controlEND
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Release
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[0]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[1]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[2]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[3]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[3] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[4]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[4] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[5]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[5] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[6]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[6] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[7]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[7] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[8]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[8] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[9]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[9] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[10]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[10] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[11]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 3
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 4 (Purple) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 4
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 5 (Yellow) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 5
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 6 (Orange) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 6
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 7 (Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 7
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 8 (Pink) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 8
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 9 (Gray) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 9
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 10 (Light Blue) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 10
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 11 (Dark Green) and Change color
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[11] Equal to 11
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 12 (Brown) and Change color
Collapse Else - Actions
Do nothing
Else - Actions
Attached Files
File type: w3xVoodoo Masters.w3x (370.6 KB)
08-12-2008, 08:25 AM#2
Pyrogasm
You ought to post the code. Some of us really aren't bothered to download and open a testmap.
08-12-2008, 09:20 AM#3
Pyrogasm
Why convert it to JASS? Post the GUI code, please.
08-13-2008, 01:05 AM#4
Argo
Posted GUI.
08-13-2008, 01:24 AM#5
ToukoAozaki
Quote:
Originally Posted by Argo
OK, the problem I'm having with this spell is what ever unit is selected first sticks to being the only unit able to be released by the release ability. I checked the code over multiple times and can't seem to see whats wrong. Some help please!

Could you clarify your description on the spell? I can't understand your description clearly.
08-13-2008, 01:33 AM#6
Argo
OK, I fixed it. What I did was change the control trigger around to use a Boolean variable for each unit.

Trigger:
Control Copy
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Control
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
taken[0] Equal to False
Collapse Then - Actions
Set VD_Control_unit[0] = (Target unit of ability being cast)
Set release[0] = ((Player number of (Owner of (Target unit of ability being cast))) - 1)
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Retain color
Unit - Add Release to VD_Control_unit[0]
Set taken[0] = True
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
taken[1] Equal to False
Collapse Then - Actions
Set VD_Control_unit[1] = (Target unit of ability being cast)
Set release[1] = ((Player number of (Owner of (Target unit of ability being cast))) - 1)
Unit - Change ownership of VD_Control_unit[1] to Player 1 (Red) and Retain color
Unit - Add Release to VD_Control_unit[1]
Set taken[1] = True
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
taken[2] Equal to False
Collapse Then - Actions
Set VD_Control_unit[2] = (Target unit of ability being cast)
Set release[2] = ((Player number of (Owner of (Target unit of ability being cast))) - 1)
Unit - Change ownership of VD_Control_unit[2] to Player 1 (Red) and Retain color
Unit - Add Release to VD_Control_unit[2]
Set taken[2] = True
Collapse Else - Actions
Game - Display to (All players) the text: Max number of contr...
Trigger:
controlEND
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Release
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[0]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 1 (Red) and Change color
Set taken[0] = False
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 2 (Blue) and Change color
Set taken[0] = False
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[0] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[0] to Player 3 (Teal) and Change color
Set taken[0] = False
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[1]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[1] to Player 1 (Red) and Change color
Set taken[1] = False
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[1] to Player 2 (Blue) and Change color
Set taken[1] = False
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[1] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[1] to Player 3 (Teal) and Change color
Set taken[1] = False
Collapse Else - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Casting unit) Equal to VD_Control_unit[2]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 0
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[2] to Player 1 (Red) and Change color
Set taken[2] = False
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 1
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[2] to Player 2 (Blue) and Change color
Set taken[2] = False
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
release[2] Equal to 2
Collapse Then - Actions
Unit - Change ownership of VD_Control_unit[2] to Player 3 (Teal) and Change color
Set taken[2] = False
Collapse Else - Actions
Do nothing
Else - Actions