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

Gorehowl why doesn't it work?help

Status
Not open for further replies.
Level 6
Joined
Sep 1, 2022
Messages
91
Increases the damage by 240, and adds 36 to all stats. Also gives chances on hit to perform 2x (15%), 3x (5%), 4x (4%), 5x (3%), 6x (2%), 7x (1%) critical strikes.

2023-02-23_201646.jpg



What am I doing wrong?:
 
Level 29
Joined
Sep 26, 2009
Messages
2,595
where do you set those variables in the condition? Also, conditions do not work like that.
By default, all conditions have to be true, meaning in your case integer07 must be >= 28 and <= 29 while simultaneously that same integer07 must be >= 25 and <= 27, etc.
So it doesn't make sense, the conditions block will always evaluate to false and never run the action block
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Damage taken does not work with A Unit is Attacked. This sort of a question/problem/trigger is literally asked a few times a month here; do a small amount of searching and you will see all the reasons why Attacked is a bad event that doesn’t do what you think it does and why you will need to use a Damage Detection System.

Real02 is also not set to anything as this trigger runs and checks conditions.

In addition to what Nichilus said about your impossible conditions, consider how you want this to work. Should the unit have a total chance for some sort of crit of 15+5+4+3+2+1 = 30%, or should all the chances overlap such that the true chance to crit is only as big as the largest chance? Imagine rolling the integer 1-100. Does it work like this:

1-15 = 2x
16-20 = 3x
21-24 = 4x
25-27 = 5x
28-29 = 6x
30 = 7x

Or like this:

0-0 = 2x (this range is already covered by the rest since they add to 15%, so in this example you couldn’t get a 2x crit anyway)
11-15 = 3x
7-10 = 4x
4-6 = 5x
2-3 = 6x
1 = 7x
 
Status
Not open for further replies.
Top