- General - If (Conditions) then do (Actions) else do (Actions)
-If
- Critical Strike <= 3
Then
- Math - Cycle Bonuscritdamage from 2 through 4
- Text Tag - Create a text tag with the text "Crit!" for (Active Players), using a font size of 24, at (Position of (Attacking Unit)) and height offset 1.0, initially Visible, and fog of war enforcement set to true
- General - Wait 1.0 Game Time seconds
- Text Tag - Destroy (Last created text tag)
- Unit - Set (Triggering unit) Life to ((Triggering damage amount) - (Real(Bonuscritdamage)))
The additional and sword master==sword master as me trying to make it apply only to that unit type and I understand after being able to read the error where the issue is but referring back to the critical strike trigger when I set up up just like the one displayed it didn't work at all so... Yeah. Help would be greatly appreciated.
The problem is in the "Triggering damage amount" in the last action. hang on...
Ok, your problem is that the "Triggering damage amount" is meant to be used with the "Unit takes damage" event, not "Unit is attacked". Change it to said event, everything should work fine.
Well it works without giving me the error now but it's still attacking setting the units hit points to like 2 then killing it any ideas on how to fix that?
That one's easy, you wanna subtract the damage amount + crit from the unit's total health. Right now its health is being set to how much damage you want to do. Something like this: Unit Property(Health) - (Triggering damage amount) - (Real(Bonuscritdamage)).
Don't ya hate those obvious solutions that take an hour to figure out?
You have no idea how much I hate this stuff. It makes me feel like a moron especially because I feel like I'm almost bothering people to help me with the simple stuff. Since you're helping me anyhow. I remember in WC3 when you tried to randomize a # it default it to like 0 or 1 during testing does that apply to this map maker as well?
I must be really stupid I still can't get it to work I'll keep trying though.
I haven't worked with random numbers yet, so I couldn't tell you. Blizzard fixed up a lot of the things in this one that were wrong with the World Editor, so I would guess it doesn't do that.
I did it another way I don't like it as much but it seems to work for now. I just have Damaging unit Deal "Mega" damage. = out to be about 200-300% bonus damage
I'm probably trying to do overly complicated things that I shouldn't be doing and it's ust getting to me that tends to be my one draw back when map making >.<
No everything looks like it should be right. Just can't get the trigger right. Probably just me.
Still reads as.
Unit - Set (Triggering unit) Life to (- (((Triggering damage amount) - (Real(Bonuscritdamage)))))
The reason why I asked about the cycling trigger is because if I set it to cycle beteen 1-4 and say if crit == 4 then it never happens in the test map. It should be a 25% chance but out of 100 strikes it never occured. Unless the cycle is based on a hidden time limits which wouldn't be good either because during the time it's on 4 the unit ould have a 100% chance to crit.
Yeah it isn't cyceling properly. I had it display the crit # as a text and it alays displayed 1. So either the actions are not being triggered properly by the event or it's a one time modification Which I think is a bit odd. I might have a way to fix it I'm going to try it now.
I tried to put it in the if then else statment of the trigger. So that if it was == 2 then cycle and do damage else just cycle and it's still just chillaxin at 1.
I've been working on this trigger for like 8 hours + I've almost got it but it's not working right and I was hoping for some help.
First off when it does trigger it sets the unit like to like almost dead so that the next hit kills and and I just ant it to do the extra damage.
The second is that I eventually ant it to apply to every unit of that type. Like apply to every stalker thats made. (In this case a custom unit.)
Third is I get an error that says
" 'gt_Crticalstrike_Func': Event response function 'EventUnitDamageAmount' has no matching event
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Critical Strike
Events
- Unit - Any Unit is attacked
Local Variables
- Sword Master = (Unit type of (Attacking Unit)) <Game Link - Unit>
- Critical Strike = 0 <Integer>
- Bonuscritdamage = 0 <Integer>
Conditions
- (Attacking Unit) == Sword Warrior [127.02, 125.71]
- And
- Conditions
- Sword Master == Sword Master
Actions
- Math - Cycle Critical Strike from 1 through 4
- General - If (Conditions) then do (Actions) else do (Actions)
-If
- Critical Strike <= 3
Then
- Math - Cycle Bonuscritdamage from 2 through 4
- Text Tag - Create a text tag with the text "Crit!" for (Active Players), using a font size of 24, at (Position of (Attacking Unit)) and height offset 1.0, initially Visible, and fog of war enforcement set to true
- General - Wait 1.0 Game Time seconds
- Text Tag - Destroy (Last created text tag)
- Unit - Set (Triggering unit) Life to ((Triggering damage amount) - (Real(Bonuscritdamage)))
Else
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The additional and sword master==sword master as me trying to make it apply only to that unit type and I understand after being able to read the error where the issue is but referring back to the critical strike trigger when I set up up just like the one displayed it didn't work at all so... Yeah. Help would be greatly appreciated.
Can you take a screen cap of the trigger? It would be much easier to understand.
Yeah sure I'll load it up... If I can figure out how.
The problem is in the "Triggering damage amount" in the last action. hang on... Ok, your problem is that the "Triggering damage amount" is meant to be used with the "Unit takes damage" event, not "Unit is attacked". Change it to said event, everything should work fine.
oh ok thanks I'll try that hopefully it works.
Well it works without giving me the error now but it's still attacking setting the units hit points to like 2 then killing it any ideas on how to fix that?
That one's easy, you wanna subtract the damage amount + crit from the unit's total health. Right now its health is being set to how much damage you want to do. Something like this: Unit Property(Health) - (Triggering damage amount) - (Real(Bonuscritdamage)). Don't ya hate those obvious solutions that take an hour to figure out?
You have no idea how much I hate this stuff. It makes me feel like a moron especially because I feel like I'm almost bothering people to help me with the simple stuff. Since you're helping me anyhow. I remember in WC3 when you tried to randomize a # it default it to like 0 or 1 during testing does that apply to this map maker as well?
I must be really stupid I still can't get it to work I'll keep trying though.
Ok so how do I get a - outside of the ( )?
I haven't worked with random numbers yet, so I couldn't tell you. Blizzard fixed up a lot of the things in this one that were wrong with the World Editor, so I would guess it doesn't do that.
Ok thanks.
I did it another way I don't like it as much but it seems to work for now. I just have Damaging unit Deal "Mega" damage. = out to be about 200-300% bonus damage
The first way should work fine. Maybe you didn't change all the "Attacking units" to "Damaging units"?
I'll look it over right now.
I'm probably trying to do overly complicated things that I shouldn't be doing and it's ust getting to me that tends to be my one draw back when map making >.<
No everything looks like it should be right. Just can't get the trigger right. Probably just me.
Still reads as.
Unit - Set (Triggering unit) Life to (- (((Triggering damage amount) - (Real(Bonuscritdamage)))))
The reason why I asked about the cycling trigger is because if I set it to cycle beteen 1-4 and say if crit == 4 then it never happens in the test map. It should be a 25% chance but out of 100 strikes it never occured. Unless the cycle is based on a hidden time limits which wouldn't be good either because during the time it's on 4 the unit ould have a 100% chance to crit.
Yeah it isn't cyceling properly. I had it display the crit # as a text and it alays displayed 1. So either the actions are not being triggered properly by the event or it's a one time modification Which I think is a bit odd. I might have a way to fix it I'm going to try it now.
I tried to put it in the if then else statment of the trigger. So that if it was == 2 then cycle and do damage else just cycle and it's still just chillaxin at 1.