• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Why does this simple trigger not work?

Status
Not open for further replies.
Level 6
Joined
Mar 17, 2012
Messages
105
Overview: Every thirty seconds, a unit owned by player 11 (Dark Green) spawns at a random point in Region 002. This part works fine. Then there is this part; here is a screenshot of the trigger.


2237296.png


When the units spawn, they do not move anywhere, simple remain where they spawned.
If anyone could explain why this doesn't work, and how I could fix it, that'd be great. Thank you.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
is player 11 a computer. a computer's units dont handle "issue order" functions too well

also, to post triggers, when your posting a reply

Go to the top where it says "Order attackes east", right click, and hit "Copy as text" than in the hive hit the button that looks like a gear and post your rigger in there.
 
Level 6
Joined
Mar 17, 2012
Messages
105
is player 11 a computer. a computer's units dont handle "issue order" functions too well

also, to post triggers, when your posting a reply

Go to the top where it says "Order attackes east", right click, and hit "Copy as text" than in the hive hit the button that looks like a gear and post your rigger in there.

Okay, thanks, I'll be sure to do that in the future. And yes; player 11 is a computer. How can I get player 11 to handle the same command without issuing the order, then?
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
im not an ai expert, but perhaps someone can clarify me on this

AI - Lock Guard Position

(idk wait for someone who knows how to deal with computer ai thats def not my field of specialty)
 
Level 6
Joined
Mar 17, 2012
Messages
105
u tryed change the period to example 0.1? what happen?

even maybe not that the problem but pick all unit+order unit with 0.01 timer is enough hard....

I'm only spawning ten units of the Bandit model, mind you, and I increased the timer period to thirty seconds, which should be much more than enough time to handle the request - which it still did not. That's not it.
 
Level 11
Joined
Nov 15, 2007
Messages
800
Issuing the order every .01 seconds would interrupt the units' orders repeatedly so they'd never move anywhere. Aside from that there should be nothing wrong with this trigger. Check that your regions are placed appropriately and you're actually creating the units for the correct player would be all that I could advise.
 
Level 2
Joined
Jan 24, 2012
Messages
28
try using this...

events - every 15 second game time
condition - (none)
action - Unit Group - Order "your unit group" to Attack-Move To (Your Region)

it's work for me :wink:
 
Level 1
Joined
Mar 7, 2012
Messages
2
I think I know what your trying to do.

If that trigger is giving you problems, try using the <Unit enters region> Event and then issue the <triggering unit> to attack-move to <region>. Might free a little CPU or something so its not triggering 100 times a second too.
 
Status
Not open for further replies.
Top