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

Chance on Hit / Chance

Status
Not open for further replies.
Level 3
Joined
Dec 15, 2007
Messages
44
How do you make a chance on hit skill? How would the triggers work, if someone could show me how that'd be great.

Maybe a skill that is like, chance on hit to purge or fireball.

I really just wanna know all about % and how to use it well.
 
Level 24
Joined
May 9, 2007
Messages
3,563
  • Fury
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Warrior
    • Actions
      • Set WarriorRandomAttack = (Random integer number between 1 and 100)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WarriorRandomAttack Greater than 90
        • Then - Actions
          • Unit - Add WarStomp (Warrior) to (Attacking unit)
          • Unit - Order (Attacking unit) to Orc Tauren Chieftain - War Stomp
          • Wait 1.00 seconds
          • Unit - Remove WarStomp (Warrior) from (Triggering unit)
        • Else - Actions
Provides 10% chance.


Random# = An Real # Variable

This is from my map
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
You should note that the "Unit - A unit Is attacked" event is abusable. If you keep spamming the right click button the trigger is going to fire. I think the orb of lightning might be of help with this problem but I don't have WE open right now because I'm in the middle of a game :p
 
Level 11
Joined
Apr 6, 2008
Messages
760
dont need to use a variable... just do

  • (Random integer number between 1 and 10) Greater than or equal to (>=) 9
and yes as emperor said u can exploit that, u need a damage detection system to make it unexploitable(correct?^^)
 
Level 3
Joined
Dec 15, 2007
Messages
44
Thanks for the pointers, but I'm still a little confused. Anyone want to elaborate on a "damage detection" system, that's treading into deep water for me and I'd really be greatful.

PS. [ + Rep ] to you guys.

Edit: What is this about the lightning orb ability?
 
Last edited:
Level 17
Joined
Jan 21, 2007
Messages
2,014
There is an item in wc3 that has a % chance to cast an purge. The item skill may be edited to have your prefered skill & chance per hit. The problem with this skill is that it is an orb effect(ever wondered why maelstrom and sange&Yasha in DotA is orb effects):bored: So it won't stack with other orb effects.

U can find the skill under Special - items - orb of lightning

And as far from what i've heard, damage system in GUI always leaks a little. This is just something i've heard though.(well, more of read...)
 
Level 12
Joined
Mar 23, 2008
Messages
942
But I heard that %change items are "half-orbs", if you have a orb and a "half-orb" when you attack, the orb effect you go, but in case the "half-orb" skill is used, the "half-orb" will take the effect instead of the orb.

I'm not sure about that, but seems to work on some cases, and that have something with items slot too... Orbs are so complicated...
 
Status
Not open for further replies.
Top