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

chanced buffs

Status
Not open for further replies.
Level 6
Joined
Oct 11, 2005
Messages
142
I want to make a passive ability for a weapon with a chance to poison and cripple the attacked unit but I'm having problems figuring out how to set the chance and buff. Basically I want to make a slow poison with a chance of working and a passive cripple also with a chance.
 
Level 4
Joined
Dec 25, 2006
Messages
94
Use the orb of lightning effect. Replace the purge skill with cripple/poison(maybe shadow strike), and set the chance you want.

That may help but what about this????

The orb of lightning fires only sometimes, when u just let ur unit stand and do not order him to attack and enemy comes near and he attacks he wont not in any case fire the ability, even with 100% chance it wont fire.

It is kinda impossible to make, or at least not simple. I may know a way but only if your hero is put on the map if it is for chooseing i cant make it coz there must be a Specific Unit Event included it the trigger.
 
Level 11
Joined
Jul 12, 2005
Messages
764
Using Orb of lightning is the best, but you can do it with triggers, it's not that impossiple lol.
Event - A unit is attacked
Conditions - Level of (Ability) for Attacking Unit is greater than 0
Actions
If [chance] is greater than or equal to (Random integer between 1 and 100)
Create a dummy unit that casts slow or what you want.
 
Level 4
Joined
Dec 25, 2006
Messages
94
Using Orb of lightning is the best, but you can do it with triggers, it's not that impossiple lol.
Event - A unit is attacked
Conditions - Level of (Ability) for Attacking Unit is greater than 0
Actions
If [chance] is greater than or equal to (Random integer between 1 and 100)
Create a dummy unit that casts slow or what you want.

Well u cant do it that way coz the trigger event:
Unit is attacked - fires emidiatly, same moment the unit swings even before he has a chance to hit the target

And if the target has lets say evasion, divine shield, mana shield...
It wont take damage

Lest say your attack misses and it triggers your hero to poison the target??? Wierd u missed him and still poisoned him.

IT CANT BE DONE WITH:
UNIT IS ATTACKED must do it with UNIT TAKES DAMAGE
 
Level 11
Joined
Jul 12, 2005
Messages
764
Yeah, I know all of these. I also know that GUI sucks. That's why I use JASS.
But one thing: Do you know the action 'Add event to trigger'?
With that, you can add a 'Unit is damaged' event to any trigger. So now you have two triggers, the first is a trigger that registers when a unit enters the map, revives, or sthg, and you add the event 'Triggering Unit is damaged' to the second trigger. This is the 'Any unit damaged' trigger event-substitute.
But i still say, JASS is the best.
 
Level 11
Joined
Jul 12, 2005
Messages
764
Something like this:

Event - Map Init
Action:
Pick all units in map and do:
Add event (Picked Unit is damaged) to Trigger #3

Event - Unit enters the map / revives / these...
Action:
Add event (Triggering Unit is damaged) to Trigger #3

Trigger #3
Event- n/a (will be)
Conditions - Level of (Ability) for Damage Source > 0
Actions-
...
 
Status
Not open for further replies.
Top