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

Passive metamorphosis

Status
Not open for further replies.
Level 4
Joined
May 14, 2018
Messages
34
Need to make passive skill that will provide with N% chance use of metamorphosis when cahracter will be attacked. Metamorph button must be hidden.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set Chance[1] = 0.20
    • Set Chance[2] = 0.35
    • Set Chance[3] = 0.50
  • Events
    • Unit - A unit learns a skill
  • Conditions
    • (Learned hero skill) equal to SKILL
  • Actions
    • -------- if you use a Damage Detection System, you may wish to do this line differently --------
    • Trigger - Add to THIRD_TRIGGER <gen> the event ((Triggering Unit) takes damage)
    • Unit - For (Triggering unit), ability SKILL, enable:true, show ui: false
  • Events
    • -------- none, added by 2nd trigger ---------
    • -------- unless you're using a DDS which might be different --------
  • Conditions
    • -------- maybe some condition here to differentiate attacks, your dds will probably tell you what that is --------
  • Actions
    • If (All conditions are true) then do (Then actions) else do (Else actions)
      • If - Conditions
        • ((Random number between 0.00 and 1.00) less than or equal to Chance[(Level of SKILL for (Triggering Unit))]
      • Then - Actions
        • Unit - For (Triggering Unit), ability SKILL, enable: true, Show ui: true //this line might not be necessary
        • Unit - Order (Triggering Unit) to Night Elf Demon Hunter - Metamorphosis
        • Unit - For (Triggering Unit), ability SKILL, enable: true, Show ui: false //this line might not be necessary
      • Else - Actions
 
Status
Not open for further replies.
Top