| 02-23-2006, 12:37 AM | #1 |
I have a trigger, which I was complaining about in another thread, which orders a unit to keep going to its target when it is ordered to do something else. I got it working, but it has an unexpected side effect! I have an ability based on War Stomp, no triggers, just a slightly object-editored War Stomp. Now when I stomp units that have the "stay-on-target" trigger applied to them they get the War Stomp buff but they can still move and attack!!! ![]() All the trigger does is tell the units to attack-move to p, and that trigger only fires when they are issued an order targetting a point, object or no target. If I turn the trigger off the units get stunned properly. What am I to do?! |
| 02-23-2006, 01:10 AM | #2 |
be more aggresive in the first trigger.. Rather than order it to move to P... kill the units which they try to order to do something else. ------------- Or catch when a unit is selected. And deselect it so they cant order it in the first place. |
| 02-23-2006, 01:11 AM | #3 |
I thought War Stomp didn't completelly stun? |
| 02-23-2006, 02:04 AM | #4 |
Thunder Clap doesn't completely stun, it just slows units down lots. War Stomp definitely stuns. I shouldn't have to be more aggressive with the trigger. In fact I think I need to be less aggressive somehow. But this doesn't make sense. Does the War Stomp actually give the affected units an order or something?? |
| 02-23-2006, 02:47 PM | #5 |
check if the unit has the stun buff, if it does, dont order him to move. |
| 02-24-2006, 09:00 AM | #6 |
Yeah, that is exactly what I tried. It crashed the game. No error message. Have I stumbled upon some bug? EDIT: Oops, that was a different thing I changed in the trigger that was crashing the game. When I check if the unit is stunned first there is no difference. The units keep on attacking and moving despite being War Stomped. I put in a message to display the order that these units might be recieving but they aren't recieving any, so the trigger shouldn't even be firing (which I figured). |
| 02-24-2006, 10:14 AM | #7 |
You sure you didn't base the spell on thunder clap? |
| 02-24-2006, 11:27 AM | #8 |
What changes do the unit undergo when it is made to not stop when ordered? Anything at all that may make them unable to be affected by war stomp. The fact that they are not stunned means that it's possible war stomp doesn't affect them. The fact that they have the buff but are still moving though, hints that war stomp isn't being used. |
| 02-24-2006, 12:40 PM | #9 |
So, if you use war stomp w/o the trigger enabled, the units are stunned properly but if you use war stomp with the trigger enabled they keep attack-moving toward their ordered location regardless of the fact that they should be stunned? Hmm. I don't know if this has anyting to do with it, but at times it looks like units "forget" their previous orders when they are stunned. For example, say a footman and a Paladin are fighting a Tauren Cheiftan and a Grunt. If I order my footman to attack the Tauren Cheiftan and then the Cheiftan uses warstomp, the footman will sometimes turn to attack the Grunt once the stun has worn off. Of course, what seems to be happening here is kinda the opposite. |
| 02-26-2006, 12:56 AM | #10 |
Yes I am obviously using War Stomp and it was working perfectly normally until I added this trigger, and I discovered it was this trigger because when I disabled it the War Stomp worked again. I did a bit more research and I discovered that its the "Unit is issued an order targeting an object" that causes the malfunction. Enabling or disabling the other two events has no effect. I will investigate it further, and maybe I can create a condition to exclude whatever order those units think they are recieving. UPDATE: So the units being stomped are getting ordered to do nothing to the war stomper. That's right. The unit being issued an order is each victim of the War Stomp, the target of their (non-)action is the hero doing the War Stomp and the issued order is . Bet you guys didn't know that happens. Or maybe you do. Has anyone seen anything like this before? I tried adding a condition to the trigger so it wouldn't do the actions if the order was equal to "" or null, but that didn't work. I'm at a loss, |
| 02-27-2006, 01:16 AM | #11 |
Hurray! I solved the problem! I used GetIssuedOrderId() and instead of blank it said the War Stomped units were being ordered 851973. So I made an if statement so the units wouldn't be re-ordered when recieving that particular order. It isn't Move, Attack, Stop, Hold Position, or Patrol and those are the only ones I really need to worry about, but I am curious. Does anybody know what 851973 is? |
| 02-27-2006, 01:18 AM | #12 |
It is the order that the units get when they are war stomped |
| 02-27-2006, 02:11 AM | #13 |
Its a special order just for that? Is it like a hold ground + hold attack then? Might be useful for triggering or for adding a "Hold Your Fire" ability to units. |
| 02-27-2006, 02:42 AM | #14 |
That's cool that they have special orders for those abilities...might be useful in some situations. |
| 02-27-2006, 03:05 AM | #15 |
I don't really know, time to do experiments? |
