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

[Trigger] Need help with Immolation percentage damage MUI

Status
Not open for further replies.
Guys I'm making a simple immolation spell but it deals percentage damage to nearby unit and the immolation last for 20,30 seconds (depends on level). I can't seems to make it MUI, here's the screenshot below: (I know the trigger sucks but help me improve it)

ask1t.jpg

askce.jpg
 
I am very sorry, but I found out that MUI immolation is actually more complicated to make than it seems. As far as I can see, you will need Hashtables, and I really do not have enough time to learn everything about Hashtables instead of you. So, read some tutorials and you will probably be able to make it yourself. :)

woah thank you.. thank so much -.-
 
Level 11
Joined
Nov 15, 2007
Messages
800
  • Immo1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Immolation
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (ImmoGroup is empty) Equal to True
        • Then - Actions
          • Trigger - Turn on Immo2 <gen>
        • Else - Actions
      • Unit Group - Add (Triggering unit) to ImmoGroup
      • Wait 20.00 game-time seconds
      • Unit Group - Remove (Triggering unit) from ImmoGroup
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (ImmoGroup is empty) Equal to True
        • Then - Actions
          • Trigger - Turn off Immo2 <gen>
        • Else - Actions

  • Immo2
    • Events
      • Time - Every 0.20 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in ImmoGroup and do (Actions)
        • Loop - Actions
          • Set TempUnit = (Picked unit)
          • Set TempLoc = (Position of TempUnit)
          • Set TempGroup = (Units within 300.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of TempUnit)) Equal to True)))
          • Unit Group - Pick every unit in TempGroup and do (Actions)
            • Loop - Actions
              • Unit - Cause TempUnit to damage (Picked unit), dealing ((Max life of (Picked unit)) x (0.02 + (0.01 x (Real((Level of Immolation for TempUnit)))))) damage of attack type Spells and damage type Normal
          • Custom script: call RemoveLocation(udg_TempLoc)
          • Custom script: call DestroyGroup(udg_TempGroup)
Have not tested, but this should work.
 
  • Immo1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Immolation
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (ImmoGroup is empty) Equal to True
        • Then - Actions
          • Trigger - Turn on Immo2 <gen>
        • Else - Actions
      • Unit Group - Add (Triggering unit) to ImmoGroup
      • Wait 20.00 game-time seconds
      • Unit Group - Remove (Triggering unit) from ImmoGroup
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (ImmoGroup is empty) Equal to True
        • Then - Actions
          • Trigger - Turn off Immo2 <gen>
        • Else - Actions

There's a problem, Crush of Guts doesn't last for 20 sec. At level 2 it last for 30 sec :O I'm thinking like making it like if unit have buff or something.. Help ! Thanks anyway! Hope you can help me :O :grin:
 
Status
Not open for further replies.
Top