First question, if I have for example 10 high templars in various locations and I want them to cast psi storm whenever a player enters within whatever range of any of them. Do I need to set up a seperate trigger for each high templar or is there a more simple way of doing this?
Second question if I have a trigger set up like this, and say 2 players start the map and theres 10 marines in region 1. Will both players get 5 marines each? Player 1 and 2 are on a team, player 8 is the enemy. If this isnt the way of doing it how would I go about distributing units equally to players?
Pick each unit in (Marine units in region 1 owned by player 0 matching yada yada, with at most any amount) and do (actions)
Actions:
Unit - Change ownership of (Picked unit) to player (Number of players in (Enemies of player 8)) and Change Color
playerVariable of playergroup(Enemies of player 8) <== don't know the exact function, but it is basicly picking a player by using his position in the playergroup.
@booogers: Go
you can try adding the autocast information for the psi storm ability, so that it automatically casts it on any units that come in range of it.
How would I go about doing that cause I have no clue how.
That seems to make player controlled units auto cast also which I dont want. I was thinking maybe the AI Advanced - Tactical AI - Cast trigger might work but the part where it says Optionally passes marker Marker info. Im not sure what I would put for Marker. Anyone know what to do with that or any other way of setting up autocast just for the comp?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
First question, if I have for example 10 high templars in various locations and I want them to cast psi storm whenever a player enters within whatever range of any of them. Do I need to set up a seperate trigger for each high templar or is there a more simple way of doing this?
Second question if I have a trigger set up like this, and say 2 players start the map and theres 10 marines in region 1. Will both players get 5 marines each? Player 1 and 2 are on a team, player 8 is the enemy. If this isnt the way of doing it how would I go about distributing units equally to players?
Pick each unit in (Marine units in region 1 owned by player 0 matching yada yada, with at most any amount) and do (actions) Actions: Unit - Change ownership of (Picked unit) to player (Number of players in (Enemies of player 8)) and Change Color
@booogers: Go
what you want is something like:
playerVariable of playergroup(Enemies of player 8) <== don't know the exact function, but it is basicly picking a player by using his position in the playergroup.
How would I go about doing that cause I have no clue how.
uhm set the Ability - Auto cast range value to 9? (data editor, Ability data type, Psi Storm Ability)
9 is the default range of the spell.
@Helral: Go
That seems to make player controlled units auto cast also which I dont want. I was thinking maybe the AI Advanced - Tactical AI - Cast trigger might work but the part where it says Optionally passes marker Marker info. Im not sure what I would put for Marker. Anyone know what to do with that or any other way of setting up autocast just for the comp?