Actions
Unit - Create 1 Zealot for player 11 at (Random point in region1) facing (Random point in region1) (No Options)
Unit - Order (Last created unit) to ( Charge targeting (Random Living unit from (Any units in (Entire map) owned by player (Random integer between 1 and 10) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
Player Group - Pick each player in (Player group(11)) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Charge targeting (Random Living unit from (Any units in (Entire map) owned by player (Random integer between 1 and 10) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
Im trying to get it so every 5 seconds it spawns a player 11 zealot(enemy) and sends those zealots to a random player 1-10(can be a 10player map max), then does my ability charge.
t seems like every once in awile, like 1 out of 10 times they will use the ability, and if they do, they never use it again
Helped a little, however still having problems.
Now at least when they are created they usually cast the spell on me, however after they never will again, when i want them to always be casting it
Every 5 seconds the zealots should be using the spell on me, but they aren't I'm not sure why, they DO use it on spawn though, I did change it like you said, in fact I even did copy paste, as in i copy pasted my(spawn action the one that works) to the part under pick each UNIT in UNIT GROUP, and only changed the triggering unit/picked unit part, and it don't work, which I just don't see why it wouldn't
It'd be best if you c/ped your latest triggers exactly.
But I can take a guess what you're doing wrong.
Unit - Order (Last created unit) to ( Charge targeting (Random Living unit from (Any units in (Entire map) owned by player (Random integer between 1 and 10) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
The problem is the owned by player (Random integer between 1 and 10).
What if there's only 1 player? That means 90% of the time, the zealot is going to have no target because there will be NO units owned by player. That's where you get your "1 out of 10 times" from. What you'll want to do is either change your unit group to unit group matching alliance: enemy OR make the random integer go between 1 and Number of Players in Unit Group: Active Players. Or something like that.
nope I did have it as you already said, here's what I have though, I ment to post earlier sorry about that
Events
Timer - Every 5.0 seconds of Game Time
Actions
Unit - Create 1 Zealot for player 11 at (Random point in region) facing (Random point in region) (No Options)
Unit - Order (Last created unit) to ( charge targeting (Random Living unit from (Units in (Entire map) having alliance Enemy with player 11 matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit - Order (Picked unit) to ( charge targeting (Random Living unit from (Units in (Entire map) having alliance Enemy with player 11 matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Events Timer - Every 5.0 seconds of Game Time
Actions Unit - Create 1 Zealot for player 11 at (Random point in region1) facing (Random point in region1) (No Options)
Unit - Order (Last created unit) to ( Charge targeting (Random Living unit from (Any units in (Entire map) owned by player (Random integer between 1 and 10) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
Player Group - Pick each player in (Player group(11)) and do (Actions) Actions Unit - Order (Picked unit) to ( Charge targeting (Random Living unit from (Any units in (Entire map) owned by player (Random integer between 1 and 10) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
Im trying to get it so every 5 seconds it spawns a player 11 zealot(enemy) and sends those zealots to a random player 1-10(can be a 10player map max), then does my ability charge.
t seems like every once in awile, like 1 out of 10 times they will use the ability, and if they do, they never use it again
@threeleven: Go
I would say it's because you're ordering a Picked Unit when you're using pick each player in player group. There is no picked unit.
Make that a Pick each unit in unit group.
@xenrathe: Go
Helped a little, however still having problems. Now at least when they are created they usually cast the spell on me, however after they never will again, when i want them to always be casting it
@threeleven: Go
Every 5 seconds the zealots should be using the spell on me, but they aren't I'm not sure why, they DO use it on spawn though, I did change it like you said, in fact I even did copy paste, as in i copy pasted my(spawn action the one that works) to the part under pick each UNIT in UNIT GROUP, and only changed the triggering unit/picked unit part, and it don't work, which I just don't see why it wouldn't
@threeleven:
It'd be best if you c/ped your latest triggers exactly.
But I can take a guess what you're doing wrong.
Unit - Order (Last created unit) to ( Charge targeting (Random Living unit from (Any units in (Entire map) owned by player (Random integer between 1 and 10) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
The problem is the owned by player (Random integer between 1 and 10).
What if there's only 1 player? That means 90% of the time, the zealot is going to have no target because there will be NO units owned by player. That's where you get your "1 out of 10 times" from. What you'll want to do is either change your unit group to unit group matching alliance: enemy OR make the random integer go between 1 and Number of Players in Unit Group: Active Players. Or something like that.
@xenrathe: Go
nope I did have it as you already said, here's what I have though, I ment to post earlier sorry about that
Events Timer - Every 5.0 seconds of Game Time
Actions Unit - Create 1 Zealot for player 11 at (Random point in region) facing (Random point in region) (No Options)
Unit - Order (Last created unit) to ( charge targeting (Random Living unit from (Units in (Entire map) having alliance Enemy with player 11 matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)
Unit Group - Pick each unit in (Last created units) and do (Actions) Actions Unit - Order (Picked unit) to ( charge targeting (Random Living unit from (Units in (Entire map) having alliance Enemy with player 11 matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)