My problem: I created A unit that every 8 seconds will cast constricting slime. Then in the trigger editor I created an event that when a button is pressed he will spawn in a region and move towards another region with an issue order. but because he cast the ability every 8 seconds, the unit spawns moves for 8 seconds then after the auto cast it just stops and continues to auto-cast every 8 seconds..
Add a repeat forever loop, and then a while loop, and a if then statement in to the forever loop. Make it so that when the ability is cast it causes a behavior to become active on the unit. Then set the while loop to check for that behavior to not be on the unit, which when it isn't it orders it to move to the point. And then for the if then else statement you have it so that it checks to see if the unit is within a certain distance of the point you want it to go, and if it is then you break the loop and skip remaining actions.
Im fairly New to the trigger editor so im be doing something completely wrong but this is what i got.
I've tried multiple ways for example this is my trigger currently
Event:
UI - player 1 presses Send Curruptor(button)
Loval Variables:
(None)
Condition:
(None)
Actions:
Unit- Create 1 Courrptor for player 15 at (Random point in Region(Region1) faceing ( random point in Region2) (No Option)
General- Repeat(actions) Forever
Actions
Unit- Order(Last created unit) to ( move targeting ( Radom point in region2)) (Replace existing order)
this trigger doesnt work for me..
but when i add an issue order
Unit- Order(last created unit) to (Turn Constricting Slime auto cast Off) ( Replace Existing Orders)
It begins to do the issue order Move but doesnt cast the autocast obviously. I know in the data editor i have the ability allowed movement so i don't see why it wont issue the order if the auto cast is on.
Thanks
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey Guys,
My problem: I created A unit that every 8 seconds will cast constricting slime. Then in the trigger editor I created an event that when a button is pressed he will spawn in a region and move towards another region with an issue order. but because he cast the ability every 8 seconds, the unit spawns moves for 8 seconds then after the auto cast it just stops and continues to auto-cast every 8 seconds..
help, Thanks
Add a repeat forever loop, and then a while loop, and a if then statement in to the forever loop. Make it so that when the ability is cast it causes a behavior to become active on the unit. Then set the while loop to check for that behavior to not be on the unit, which when it isn't it orders it to move to the point. And then for the if then else statement you have it so that it checks to see if the unit is within a certain distance of the point you want it to go, and if it is then you break the loop and skip remaining actions.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
You shouldn't need to complicate things by using a bahavior; just check in the loop if the unit is idle or not.
@hobbidude: Go
@hobbidude: Go
Im fairly New to the trigger editor so im be doing something completely wrong but this is what i got.
I've tried multiple ways for example this is my trigger currently
Event: UI - player 1 presses Send Curruptor(button) Loval Variables: (None) Condition: (None) Actions: Unit- Create 1 Courrptor for player 15 at (Random point in Region(Region1) faceing ( random point in Region2) (No Option) General- Repeat(actions) Forever Actions Unit- Order(Last created unit) to ( move targeting ( Radom point in region2)) (Replace existing order)
this trigger doesnt work for me.. but when i add an issue order
Unit- Order(last created unit) to (Turn Constricting Slime auto cast Off) ( Replace Existing Orders)
It begins to do the issue order Move but doesnt cast the autocast obviously. I know in the data editor i have the ability allowed movement so i don't see why it wont issue the order if the auto cast is on.
Thanks