• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Hello! Could someone help w/ a trigger issue?

Status
Not open for further replies.

Master_Of_Panda

M

Master_Of_Panda

I need help making a trigger which would allow a unit to say his transmission when he uses a certain ability.
I have seem to make this work for the ability "Mirror Image" and it workedbut currently I'm trying to do it for "Critical Strike" and the trigger never seems to work(I've changed the percentile for it to 100.00) what do I do?
 
maybe a trigger like ye said

  • PlaySound
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Critical Strike
    • Actions
      • Sound - Play YourTransmissionSound <gen>
i aint sure but maybe this
 
Passive abilities don't follow the Unit - A unit begins/finishes/starts casting/the effect of an ability.
Use this:
  • Trigger1
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units in (Playable Map Area)) and do (Actions)
      • Loop - Actions
        • Trigger - Add to Trigger3 <gen> the event (Unit - (Picked unit) takes damage)
  • Trigger2
  • Events
    • Unit - A unit enters (Playable Map Area)
  • Conditions
  • Actions
    • Trigger - Add to Trigger3 <gen> the event (Unit - (Triggering unit) takes damage)
  • Trigger3
  • Events
  • Conditions
    • (Level of Critical Strike for (Damage source)) Greater than 0
  • Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Random integer number between 1 and 100) Less than or Equal to ((Level of Critical Strike for (Damage source)) * 10)
      • Then - Actions
        • //You detected the critical strike
      • Else - Actions
The condition above is the formula you need to use for your critical strike ability. Up to the chance per level, you will need a different formula. The one from the example has the chance of
Level 1 - 10%, Level 2 - 20%, Level 3 - 30% and so on.
 
Status
Not open for further replies.
Back
Top