• 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.

Basic Trigger Help

Status
Not open for further replies.
Level 2
Joined
Aug 13, 2010
Messages
8
I've been playing around with the trigger editor, just trying things out and I ran into a problem here, as far as I can tell everything should work fine, however, the top Ifthen will not function. I have tried swapping the regions, key presses, everything I could thing of, then I switched the positions, ie. moved the bottem ifthen to the top. It doesn't seem to matter which one it is, whichever is on top will not function. :confused:

I'm at a loss, any help would be greatly appreciated.
If having a look at the map would help I can upload it, just not sure where to upload it to.
WhatsWrong-1.jpg
 
Level 2
Joined
Aug 13, 2010
Messages
8
So I've played around a little more with this and it seems that only the action on the bottom of the list is operating. Still have no idea why.

Again, any help greatly apreciated.
 
Level 9
Joined
Nov 4, 2007
Messages
933
The reason the one at the bottom is the only one activating is because A. your conditions are returning as false and triggering the else, and B. the final orders at the end would replace any orders given previously as they have (Replace Existing Orders) on.
 
Level 2
Joined
Aug 13, 2010
Messages
8
I'm sorry, I guess I wasn't clear enough. I wasn't talking about the else part of each statement, I was talking about the ifthen statements as a whole.

This picture should better illustrate my point, this is another set of triggers that I experienced the same problem with:

WhatsWrong2.jpg


Now all three of these ifthens work, but only when they are on the bottem, where "C" is in the picture, as they are now, "A" and "B" do not funtion at all, but if I move, say "A" down to where "C" is, it will work just fine, but "C" will no longer function.

As I said before, I'm stumped on this, is it a bug or am I missing something simple or what?
 
Level 13
Joined
Jun 5, 2008
Messages
504
What do you expect it to do.

It Does 3x Action that cancels the action before.

First it does A fuctions (doesnt matter is the condition true or false, since you have action on both terms)

Then it does B fuctions (doesnt matter is the condition true or false, since you have action on both terms) This replaces A:s orders

Finally it does C fuctions (doesnt matter is the condition true or false, since you have action on both terms) and this one replaces B:s orders

CONCLUSION: Bottom action replaces previous actions

Im not sure if you understand, but it replaces the orders. It even says there REPLACE EXITING ORDERS. To fix this depends pretty much what you want it to do....you want to make the unit make some random order or what...this trigger doesnt make a whole lot sence to me, atleast purpose wise.
 
Level 2
Joined
Aug 13, 2010
Messages
8
:hohum:

Ok, facepalmed myself. I knew I had to be doing something stupid.
Live and learn though = D

Thanks Kewlthis.
 
Status
Not open for further replies.
Top