• 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 Chance on Hit spell

Status
Not open for further replies.
Level 5
Joined
Sep 29, 2008
Messages
171
Currently I'm creating an AoS and have a few heroes that use chance on hits. All of the base abilities use an editted bash and a microstun for the trigger editor to detect. I've tried to create it the twos ways I know how, using "unit starts the effects of an ability" + "ability = <spell name>" = "events a, b, and c" and one involving "a unit is attacked" + "unit has the buff <spell's buff>" = "events a, b, and c."

Neither of those worked, and I have a few ideas why, so when I asked if either of my methods had any problems, I was told that both the original method and the revised ones should, in theory, work. However, the revised ones did not. I tried a few entirely new ways (long past forgotten) and eventually recreated the current 2 triggers in the attached map to send to Clanookarep, who agreed to try his own methods to fix the trigger.

If anyone is interested in helping me out, please dl and try to find an effective way to make this work. Clan should upload his editted version of the map with the changes he made within a few days, for a more complete list of tried and failed method.

The map contains one hero with some jacked up health regen to survive all of the creep fights, but not so much damage, in the hopes that fixing the triggered attack proc would cause most of the damage. The current spells are titled Searing Pain and Searing Arrows, which use the triggering events "unit starts the effects of an ability" and "unit starts casting a spell". The rest of the triggers procede the exact same way.


List o' Screwups

"unit enters the effects of an ability" = I set it to caster dealing damage to target. I'm not sure if the triggering unit in this case is the damager or the damagee, so that may be the problem.

"unit starts casting an ability" = I'm afraid that as a chance on hit, it's not cast so much as just an additional effect added to the attack.

"Unit is attacked" + "unit is stunned" = I think the micro stun is coming after the attack, so it might not have a chance to show up in the .01 second stun. I lengthened the stun and threw a visual effect in there too, but it didn't show up after the target was attacked while already stunned o_O

<left to be filled upon Clan's reply with his changes>
 

Attachments

  • Maegwyn - Searing Pain.w3x
    44.5 KB · Views: 58
Level 6
Joined
Jul 24, 2008
Messages
180
I'm not really understanding, but it seems like you want a random chance for an action. For example, a 25% chance, just create an integer variable like 'RollChance' and set it to Math - Random number between 1 and 4. Then set up If/Then statements beneath.

"unit enters the effects of an ability" = I set it to caster dealing damage to target. I'm not sure if the triggering unit in this case is the damager or the damagee, so that may be the problem.

The triggering unit is the unit entering the effect. You cannot use a 'Damage Source' here because there is none.

"unit starts casting an ability" = I'm afraid that as a chance on hit, it's not cast so much as just an additional effect added to the attack.

I have no idea what that is supposed to mean... ?

"Unit is attacked" + "unit is stunned" = I think the micro stun is coming after the attack, so it might not have a chance to show up in the .01 second stun. I lengthened the stun and threw a visual effect in there too, but it didn't show up after the target was attacked while already stunned o_O

Make another trigger. In the first (Attack Trigger) set a timer or wait function of maybe .5 and then run the second. The effect should have been added by then.
 
Level 5
Joined
Sep 29, 2008
Messages
171
While I was working on a separate hero for this AoS, trying to make an aoe bash was being pretty nitpicky so I changed it to a dummy bash and triggered all of the effects. It worked perfectly first try, and I just thought of a new way to make my little Chance on Hit Damage over Time. :grin: Even thought you didn't really help me that much, thanks for clearing up the thing about who was the triggering unit in the case of entering the effects of an ability.
 
Status
Not open for further replies.
Top