- Joined
- Feb 2, 2010
- Messages
- 3
Well this is what i need..
You can buy a unit, if u then try to buy another 1 it displays some text, and u won't be able to buy it. If the unit dies, you can buy another 1
Unit = Force Recon,Rifleman or Scout Sniper (1 in Total).
This is what i have:
Only it doesnt WORK! As it looks like it does..
Thanks!
You can buy a unit, if u then try to buy another 1 it displays some text, and u won't be able to buy it. If the unit dies, you can buy another 1
Unit = Force Recon,Rifleman or Scout Sniper (1 in Total).
This is what i have:
Only it doesnt WORK! As it looks like it does..
Thanks!
-
Class Selecting 1
-
Events
- Unit - A unit Sells a unit
-
Conditions
- ((Selling unit) is A structure) Equal to True
- ((Buying unit) is A ground unit) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Player_Bought Equal to 1
-
Then - Actions
- Game - Display to (Player group((Owner of (Sold unit)))) for 5.00 seconds the text: You already have a ...
- Unit - Remove (Sold unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Player_Bought Equal to 0
-
Then - Actions
- Unit - Move (Sold unit) instantly to (Random point in Wait Spawn <gen>)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Class Selecting 2
-
Events
- Unit - A unit Dies
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Dying unit)) Equal to |cff995500Force Recon|r
- (Unit-type of (Dying unit)) Equal to |cff995500Rifleman|r
- (Unit-type of (Dying unit)) Equal to |cff995500Stealth Sniper|r
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Set Player_Bought = 0
-
Events
-
Class Selecting 3
-
Events
- Unit - A unit Sells a unit
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Dying unit)) Equal to |cff995500Force Recon|r
- (Unit-type of (Dying unit)) Equal to |cff995500Rifleman|r
- (Unit-type of (Dying unit)) Equal to |cff995500Stealth Sniper|r
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Set Player_Bought = 1
-
Events