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

Help with this Drop Trigger

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
  • Rock Chunks
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Berserk Wildkin
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 11) Less than or equal to 1
        • Then - Actions
          • Set PositionVariable = (Position of (Dying unit))
          • Item - Create |c00EBCB14Wildkin Furhelm |r at PositionVariable
          • Custom script: call RemoveLocation(udg_PositionVariable)
        • Else - Actions
Hi guys i want to know what does this mean?
  • (Random integer number between 1 and 11) Less than or equal to 1
 
Level 6
Joined
May 4, 2012
Messages
187
it is like this;

"random integer number between 1 and 11 means that"= ANY NUMBER from 1 to 11, so it may a from of chance thingy

"Less than or equal to 1"= means like this; X < or = 1

So based on that trigger, that conditions means like this;

LET X = random integer number between 1 and 11

REP: X < or = 1

so it means that, IF X is any number and IT IS less than or equal to 1, the trigger RUNS

for example, X is equal to 1, and 1 is equal to 1 (lol), so that means the condition is correct, after that your "then-actions" will "RUN"

ahh damn i cannot explain it properly!

but i hope you got what i mean lol
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
it is like this;

"random integer number between 1 and 11 means that"= ANY NUMBER from 1 to 11, so it may a from of chance thingy

"Less than or equal to 1"= means like this; X < or = 1

So based on that trigger, that conditions means like this;

LET X = random integer number between 1 and 11

REP: X < or = 1

so it means that, IF X is any number and IT IS less than or equal to 1, the trigger RUNS

for example, X is equal to 1, and 1 is equal to 1 (lol), so that means the condition is correct, after that your "then-actions" will "RUN"

ahh damn i cannot explain it properly!

but i hope you got what i mean lol
So it means The lower the harder?
 
Level 6
Joined
May 4, 2012
Messages
187
depends on the condition actually

because if you did it like this;

"Random integer from 1 to 100"is less then 50"

then its chance is actually 50. so it is a 50/50 chance lol

the lower the harder thing is maybe because of the less than/greater than condition.

like for example the evasion, it has 30% chance to evade, it is like this;

"random integer from 1 to 100 is equal or less than 30"

so the chance is 30%

this means that the number/value of beside the "is equal to/is less than to" condtion is the percentage chance or something

arrgghh need math nazi here
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
depends on the condition actually

because if you did it like this;

"Random integer from 1 to 100"is less then 50"

then its chance is actually 50. so it is a 50/50 chance lol

the lower the harder thing is maybe because of the less than/greater than condition.

like for example the evasion, it has 30% chance to evade, it is like this;

"random integer from 1 to 100 is equal or less than 30"

so the chance is 30%

this means that the number/value of beside the "is equal to/is less than to" condtion is the percentage chance or something

arrgghh need math nazi here
Thanks
 
Status
Not open for further replies.
Top