• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Order String Wrong!

Status
Not open for further replies.
Level 16
Joined
Oct 12, 2008
Messages
1,569
Hi people,,

I got a little problem,, WITH ORDER STRINGS!!:cevil:
Im making a Harvest Detection system for someone,,
But the 'Order comparison' doesnt work well!
  • (Current Order of (Picked Unit)) equal to (Order(harvest))
That is what i tried at first,, But when it didnt work, i made the game display te current order of a unit, when it is issued an order to harvest,,
It was 'smart'
So, I used 'smart', but smart is also move,, so then you could harvest lumber by walking,,
When i put in 'harvest' it does nothing,,
I tried looking in the Object Editor for the string,, but it said 'harvest'
I tried setting all the Order String things in Object Editor to 'harvest'
But it still didnt work!!
OMG WHYY???:cevil:

Help Appreciated!
Tnx!:grin:

Yixx,,

P.S. Want me to attack the map?
 
smart is right click.
Try clicking on the harvest ability icon and them on the tree to see if it works.

When a unit is issued smart unit checks If it have harvest ability and if the target of issued order is equal to tree, than you know it is a harvesting
 
smart is right click.
Try clicking on the harvest ability icon and them on the tree to see if it works.

When a unit is issued smart unit checks If it have harvest ability and if the target of issued order is equal to tree, than you know it is a harvesting

Yeah, that is an option,, only,, im not using 'is issued order' event, since you can also issue the order from the other side of the map,,
Im checking if the life of a destructible is less then it was before (every 0.1 sec)
But i can still check if it has harvest =) ill try!
 
Status
Not open for further replies.
Back
Top