• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Spell Problem

Status
Not open for further replies.
Level 13
Joined
Oct 25, 2009
Messages
995
It has a spell problem,this is the trigger:
  • Mana Burn
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Mana Burn
  • Actions
    • Set MB_Caster = (Casting unit)
    • Trigger - Turn on Mana Check <gen>
Trigger 2
  • Mana Check
  • Events
    • Time - Every 0.50 seconds of game time
  • Conditions
  • Actions
    • Set MB_UnitGroup = (Units within 160.00 of (Position of MB_Caster) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of MB_Caster)) Equal to True)))
    • Unit Group - Pick every unit in MB_UnitGroup and do (Actions)
      • Loop - Actions
        • Unit - Set mana of MB_Caster to (1.00 + (1.00 x (Real((Level of Mana Burn for MB_Caster)))))%
        • Unit - Set mana of (Picked unit) to ((Percentage mana of (Picked unit)) - (2.50 + (2.50 x (Real((Level of Mana Burn for MB_Caster))))))%
    • Custom script: call DestroyGroup(udg_MB_UnitGroup)
Trigger 3
  • Mana Burn Off
  • Events
    • Unit - A unit Stops casting an ability
  • Conditions
    • (Ability being cast) Equal to Mana Burn
  • Actions
    • Trigger - Turn off Mana Check <gen>
It doesn't work,it doesn't drain the nearby unit's mana,my hero mana also doesn't + percentange of mana
P/S: The Mana Burn is copy from the Immolation(Night Elf Demo Hunter Skill).:goblin_wtf:
 
Level 6
Joined
Dec 9, 2007
Messages
208
Try changing the "Unit - a unit begins casting an ability" to "Unit - a unit starts the effect of an ability"
 
Level 13
Joined
Oct 25, 2009
Messages
995
Like this?:
  • Mana Burn
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Mana Burn
  • Actions
    • Set MB_Caster = (Casting unit)
    • Trigger - Turn on Mana Check <gen>
    • Wait for 0.05 second
    • Trigger - Turn on Mana Burn Off
Trigger 2
  • Mana Check
  • Events
    • Time - Every 0.50 seconds of game time
  • Conditions
  • Actions
    • Set MB_UnitGroup = (Units within 160.00 of (Position of MB_Caster) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of MB_Caster)) Equal to True)))
    • Unit Group - Pick every unit in MB_UnitGroup and do (Actions)
      • Loop - Actions
        • Unit - Set mana of MB_Caster to (1.00 + (1.00 x (Real((Level of Mana Burn for MB_Caster)))))%
        • Unit - Set mana of (Picked unit) to ((Percentage mana of (Picked unit)) - (2.50 + (2.50 x (Real((Level of Mana Burn for MB_Caster))))))%
    • Custom script: call DestroyGroup(udg_MB_UnitGroup)
Trigger 3
  • Mana Burn Off
  • Events
    • Unit - A unit Stops casting an ability
  • Conditions
    • (Ability being cast) Equal to Mana Burn
  • Actions
    • Trigger - Turn off Mana Check <gen>
    • Trigger - Turn off (This trigger)
But when burning,i turn off the skill,the hero of enemy mana will decrease when i near it,(skill areally turn off)
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,240
I'll try to guess what you're trying to do then.

Remove the Stops casting trigger and use this:

  • Mana Check
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (MB_Caster has buff Mana Burn ) Equal to True
        • Then - Actions
          • Set MB_UnitGroup = (Units within 160.00 of (Position of MB_Caster) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of MB_Caster)) Equal to True)))
          • Unit Group - Pick every unit in MB_UnitGroup and do (Actions)
            • Loop - Actions
              • Unit - Set mana of MB_Caster to (1.00 + (1.00 x (Real((Level of Mana Burn for MB_Caster)))))%
              • Unit - Set mana of (Picked unit) to ((Percentage mana of (Picked unit)) - (2.50 + (2.50 x (Real((Level of Mana Burn for MB_Caster))))))%
          • Custom script: call DestroyGroup(udg_MB_UnitGroup)
        • Else - Actions
          • Trigger - Turn off (This trigger)
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Begins casting an ability we can ABUSE it by using "S" button
This event fires BEFORE the spell is triggered and can cause the spell to fire up WITHOUT triggering its COOLDOWN

Yes, I know that there's casting delay between begins casting and starting the effect and being able to abuse it.

Begins casting still has it's uses, and it's no more or less efficient than starts the effect. They just serve different purposes.
 
Status
Not open for further replies.
Top