| 03-06-2004, 06:36 PM | #1 |
I'm making an ability using critical strike as the dummy ability. I want to add different effects for when his criticals actually hit. What sort of events/conditions do i need to find this? If that can't be done, could someone give me the events/conditions i need for when a unit attacks. I've got E: Unit issued an order targeting an object C: Unit is equal to (MyUnit) C: Order issued equal to Order(attack) What this does tho...is only works when the unit is ordered to attack...it doesn't work for successive attacks, not to mention, it also works the instant the unit is ordered to attack...not when the unit actually attacks. Thanks a bunch ~Lynx~ |
| 03-06-2004, 06:52 PM | #2 |
You might be able to figure it out with the use of damage dealt, but then again there's armor, armor type, dice etc. The only resonable solution is to trigger it. |
| 03-06-2004, 08:18 PM | #3 |
There is no way to tell when the unit has done a critical strike. Technically, no. But you can manipulate it so you can tell. Like above, Youma said check the damage, and contradicted himself O.o. But, there's so many threads on this, please check them. They give lots of ways to do it, I believe. |
| 03-07-2004, 03:48 AM | #4 |
Would you love me if I said you can detect bash? That would be the way to do it I think. |
| 03-07-2004, 05:12 AM | #5 |
I think some one has tried this before... not sure how it came to be... but if u figure it out i would like to know, good luck. |
| 03-07-2004, 06:03 AM | #6 |
Make a trigger that does the critical strike part. The spell-part would be a dummy-passive spell, and the critical would be trigger based. That's a sinch to detect from. |
| 03-07-2004, 08:19 AM | #7 |
Here try this. I didn't make this so credit goes to whoever did. |
| 03-07-2004, 01:13 PM | #8 |
Well... I don't think that map is very reliable. For starters, it has the most confusing GUI I have ever seen, and it uses items to detect it! My solution would be to run a trigger, when the unit casts the ability, then just set (interger here) = random number between 1-100. Then do an If/Then/Else to get If (interger here) is greater than or equal to 80 then do. BLAH. If you want me to make you a map to show you I would be more than happy, but I smell bacon so I have to eat, so no spell checking for this post, sorry. |
| 03-07-2004, 07:37 PM | #9 |
The "BLAH" part is more complicated than you think. And it would still be interesting to know if it's possible to detect a passive ability, because that demo map sure isn't detecting anything. |
| 03-07-2004, 08:45 PM | #10 |
ok, here's my responses to everyone: Youma: yeah, i could, but the critical hit doesn't actually do anything on it's own. It's just the dummy spell. I've got it set to do x1 normal damage, so that won't work, even if i got it to work. MysticGeneral: True, that is my last resort, because thats really sloppy triggering. I don't want to do that if i don't have to. As for looking for this on the threads...finding it is another story. I'll give it a shot, but things like this aren't usually easy to find. Sage the Mage: no, because bash stuns the target. I don't want that, because that will interrupt spells. Lami: i don't doubt that. If you know see who has...gimme a shout, and if i figure it out, i'll post it for ya. ThyFlame: I did make a trigger that did the crit strike part. The thing is i don't know the events/conditions for when a unit 'attacks' another unit. I know the events/conditions for when a unit is TOLD to attack another unit, but thats all. I suggest you read my first post again. Reb: i have yet to look at that...although i know LinkMaster isn't a fool (he doesn't always know what he's talking about, but he's not a fool :P) and he says it ain't too good. So, i'm not getting too excited. linkmaster23: You say to run a trigger for when the unit casts the ability. there is a problem...he never casts it. I could be misunderstanding you...if so, please explain yourself better. (PS: i hope you got over your 'crusty avatar' :P) Youma: your right the 'BLAH' part is easier said than done, but i won't have a problem with it. It was the 'casting' the spell i had a problem with...passive spells aren't cast. I guess this a bit more difficult problem than i imagined. I'll have to post my answer when i get it :D thanks for all the help. |
| 03-07-2004, 09:17 PM | #11 |
seems like this guy has my best answer. as soon as i responded to all your feedback, i looked back at the forum, and this guy was two threads below me. http://www.wc3campaigns.com/showthread.php?t=50411 I'd still like a better answer. But it seems like one isn't coming any time soon. |
| 03-08-2004, 07:00 PM | #12 |
Sigh, no one listens to good ol' Linkmaster23, since you people can't taek good advice when you see it, :P, I am going to make your map. |
| 03-08-2004, 07:07 PM | #13 |
dude... i dont even think this has to be trigered... or at least it can be done easyer then you might think. you can make a spell based off the item skill 'item mellee lightening attack' or something like that, its the ability orb of lightening has. with that skill you can install a chance to cast an ability when you attack. if you make that a dummy ability i believe you should be able to make a trigger that you cast a random ability correct? i think thats the way you want to go for. i've made several skills succesfully with this method. you dont want to use this on a hero that can cast an ability based of metamorph though, for some reason he unlearnes it if you use metamorph and it never comes back :/... |
| 03-08-2004, 07:57 PM | #14 |
Heres the map... very short and SIMPLE. The Detect Map |
| 03-08-2004, 10:08 PM | #15 |
It's also quite clumsy. Wait, no, I did not just say that to a moderator... ;) but wouldn't it be easier to just put: if (random_integer) is (greater than or equal to) (100 - (25 x Level of ability(DA move) for (attacking unit))) then do all the stuff that you had to type 3 times... OK, this is just a faster way of doing things, of course, as an explanatory example yours is probably better. Another note: if you just want a custom spell to be cast when you attack, like the storm bolt in this case, with no trigger stuff like messages being displayed, you don't have to use triggers, you can use a modified orb of slow ability; unless your hero has a metamorphosis style ability, which apparently in some people's experience causes problems. |
