What are you doing with the cubes? There could be a better way to do it that doesn't involve making 400-some units. Like s3rius said, just using actors instead of units might help.
Game - Player Any Player types a chat message containing "-give", matching Partially
Local Variables
toPlayer = 0 <Integer>
amount = "" <String>
Conditions
(Position of "-give" within (Entered chat string) (Insensitive to case)) == 1
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Substring((Entered chat string), 8, 8)) == " "
Then
Variable - Set toPlayer = (Integer((Substring((Entered chat string), 7, 7))))
Variable - Set amount = (Substring((Entered chat string), 9, (Length of (Entered chat string))))
Else
Variable - Set toPlayer = (Integer((Substring((Entered chat string), 7, 8))))
Variable - Set amount = (Substring((Entered chat string), 10, (Length of (Entered chat string))))
UI - Display (Combine ("Give ", (Text(amount)), " minerals to ", (Text(toPlayer)))) for (All players) to Subtitle area
I'm going to lunch, this might need some error handling. You had the right idea, just need to use a few substring. I also made it so there'd only have to be one trigger.
0
@Wakeman: Go
Even when not using an ability?
0
For my 3rd person shooter system I used purely actors for missiles, I then used:
Actor - Send message (SetPositionH (X of Origin) (Y of Origin) (Height - (Ground height at Origin))) to actor bulletActor
But, you can use "Get Unit Actor" if you'd like to use a unit instead.
0
Why don't you use the data editor rather than the trigger editor to attach things to the missiles (assuming its an actor of course)?
0
@Skittles17: Go
You could create a region for each player and add rects to them, the actors would be just for show. Not sure if this would be better for lag or not.
Edit: Or even just one region for all players if you don't care about who got the kill.
0
@Durga: Go
Create a global timer variable.
Start the timer at the game start.
Create a trigger that happens when the global timer expires with the victory as the action.
0
@zenasprime: Go
"Unit - Vision Height" I believe.
0
What are you doing with the cubes? There could be a better way to do it that doesn't involve making 400-some units. Like s3rius said, just using actors instead of units might help.
0
@dudegab666: Go
You can also use the data editor. Auto-casting burrow with a validator for life below 20%
0
@Tristiss: Go
Make a copy of move and disable smart. Remove the normal from from the Unit's abilities and give it this new move (do not add it to the command card).
0
@Bjorne91: Go
Give Gold
Events
Game - Player Any Player types a chat message containing "-give", matching Partially
Local Variables
toPlayer = 0 <Integer>
amount = "" <String>
Conditions
(Position of "-give" within (Entered chat string) (Insensitive to case)) == 1
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Substring((Entered chat string), 8, 8)) == " "
Then
Variable - Set toPlayer = (Integer((Substring((Entered chat string), 7, 7))))
Variable - Set amount = (Substring((Entered chat string), 9, (Length of (Entered chat string))))
Else
Variable - Set toPlayer = (Integer((Substring((Entered chat string), 7, 8))))
Variable - Set amount = (Substring((Entered chat string), 10, (Length of (Entered chat string))))
UI - Display (Combine ("Give ", (Text(amount)), " minerals to ", (Text(toPlayer)))) for (All players) to Subtitle area
I'm going to lunch, this might need some error handling. You had the right idea, just need to use a few substring. I also made it so there'd only have to be one trigger.
0
@chubz04: Go
Trigger it. "If race = Terran then upgrade dummy_Terran" or use a switch.
0
@ShadowDancer93: Go
Whats the event for the trigger?
0
@Azzaaer: Go
Alter the ability's button (rather the one you're using on the command card).
0
@Azzaaer: Go
There's an "Abilities Finish Infested Swarm (Timed Life)" line in the "Effects" section of the "Info+" field in the "MorphToInfestedTerran" ability.
0
@Frightwolf2005: Go
Is it a pre-placed structure?