Help with spell (Frenzy)

skyblader

You're living only because it's illegal killing.
Reaction score
159
Okay, I haven't touched the world editor for awhile now. Need some help getting back on track. Basically this is a spell that's like immolation, you can turn it on and off. When you turn it on, the unit gains Attack speed and movement speed, and loses it when turned off. I made a dummy ability, and a spellbook with an endurance aura inside. These are my triggers.

Trigger:
  • Frenzy
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Frenzy
    • Actions
      • Unit - Add Spell Book to (Triggering unit)
      • Unit - Set level of Endurance Aura for (Triggering unit) to (Level of Frenzy for (Triggering unit))
      • Player - Disable Spell Book for (Owner of (Triggering unit))


Trigger:
  • Frenzy Off
    • Events
      • Unit - A unit Stops casting an ability
    • Conditions
      • (Ability being cast) Equal to Frenzy
    • Actions
      • Unit - Remove Spell Book from (Triggering unit)
 

Sim

Forum Administrator
Staff member
Reaction score
534
...

And what happens when you cast it?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
I get the immolation buff, the endurance aura's effects doesn't work, the buff comes out for say 2 seconds and goes. Maybe I'll have to use custom scripts to sense activate/deactivate? Seems like the spellbook is added and removed at the same time.
 

Sim

Forum Administrator
Staff member
Reaction score
534
> the buff comes out for say 2 seconds and goes.

You are misinterpreting "Stop casting an ability". When your unit "starts" casting that immolation spell, well then the buff is added to the unit. But when the unit stops casting, barely an heartbeat later, it removes the spellbook, thus the buff.

Instead, use "A unit Starts the effect of an ability", and check both if the spell being cast is Frenzy and if the unit currently has the Frenzy buff. If it hasn't the buff yet, add the spellbook. If it has the buff, remove the spellbook.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
If I use starts the effect, won't it only be working when I activate it? The problem right now is how to remove it when it's deactivated..
 

Happy

Well-Known Member
Reaction score
71
check whther it has the buff instead of casting/starting the effect/etc...then it should work.
 

aki15

New Member
Reaction score
5
IN FIRST TRIGGER Try adding a casting unit in a group when it start chanelling/casting ability.
----------------------------------------------------------------

Here is second trigger... Try this (Freehand) :
Event
Every 0.03 second of the game.
Condition
Unit has a buff Endurance Aura not equal to true
Action
Unit Remove every unit in group ENAURA
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Okay I already made it work, the buff comes on and everything. Right now, the movement speed works BUT the attack speed doesn't increase. I've tried adding 1000% increased atk speed at level, added the skill to level 1 and tried attacking on and off. There's no difference. Plus can someone check if this is MUI for me?

Trigger:
  • Casted Frenzy
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(immolation))
    • Actions
      • Unit - Add Spell Book to (Triggering unit)
      • Unit - Set level of Endurance Aura for (Triggering unit) to (Level of Frenzy for (Triggering unit))
      • Player - Disable Spell Book for (Owner of (Triggering unit))


Trigger:
  • Frenzy
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set AllPlayers = (All players)
      • Player Group - Pick every player in AllPlayers and do (Actions)
        • Loop - Actions
          • Set FrenzyGroup = (Units owned by (Picked player) matching (((Matching player) controller) Equal to User))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Mana of (Picked unit)) Less than or equal to (8.00 + (2.00 x (Real((Level of Frenzy for (Picked unit))))))
            • Then - Actions
              • Unit - Order (Picked unit) to Night Elf Demon Hunter - Deactivate Immolation
              • Unit Group - Remove (Picked unit) from FrenzyGroup
              • Unit - Remove Spell Book from (Picked unit)
            • Else - Actions


Trigger:
  • Frenzy Off
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unimmolation))
    • Actions
      • Unit Group - Remove (Triggering unit) from FrenzyGroup
      • Unit - Remove Spell Book from (Triggering unit)
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
man you don't have to use anything like spellbooks and nothing, just on object editor add at activate and deactivate order, and then check the orders with triggers. See the pic

.To check the order just use this condition:
Trigger:
  • Melee Initialization
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(frostarmoron))
    • Actions
      • Custom script: Do what you want

This is for right-clicking ability, but for toggle you use "Use/turn on" and "Turn off"
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
I have to add the spellbook, because I don't want the ability I added to be seen. The problem's already fixed. Just need to know if it's MUI or not.
 

tommerbob

Minecraft. :D
Reaction score
110
You don't need a player group. Just add the unit to a unit group, and in your periodic trigger, do what you did, but without using a player group. It should be MUI. Here's what it should look like:

Trigger:
  • Casted Frenzy
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(immolation))
    • Actions
      • Unit - Add Spell Book to (Triggering unit)
      • Unit - Set level of Endurance Aura for (Triggering unit) to (Level of Frenzy for (Triggering unit))
      • Player - Disable Spell Book for (Owner of (Triggering unit))
      • Unit Group -Add (Triggering unit) to FrenzyGroup


Trigger:
  • Frenzy
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in FrenzyGroup and Do Actions
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Mana of (Picked unit)) Less than or equal to (8.00 + (2.00 x (Real((Level of Frenzy for (Picked unit))))))
            • Then - Actions
              • Unit - Order (Picked unit) to Night Elf Demon Hunter - Deactivate Immolation
              • Unit Group - Remove (Picked unit) from FrenzyGroup
              • Unit - Remove Spell Book from (Picked unit)
              • Unit Group - Remove (Picked unit) from Frenzy Group
            • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Number of units) in FrenzyGroup Less Than or Equal To 0
      • Then - Actions
        • Turn off - (This Trigger)
      • Else -Actions


Trigger:
  • Frenzy Off
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unimmolation))
    • Actions
      • Unit Group - Remove (Triggering unit) from FrenzyGroup
      • Unit - Remove Spell Book from (Triggering unit)
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Ah. I already improved the trigger, just didn't post it.

Trigger:
  • Casted Frenzy
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(immolation))
    • Actions
      • Unit Group - Add (Triggering unit) to FrenzyGroup
      • Unit - Add Frenzy book to (Triggering unit)
      • Unit - Set level of Endurance Aura for (Triggering unit) to (Level of Frenzy for (Triggering unit))
      • Player - Disable Frenzy book for (Owner of (Triggering unit))


Trigger:
  • Frenzy
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in FrenzyGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Endurance Aura ) Equal to True
              • (Mana of (Picked unit)) Less than or equal to (8.00 + (2.00 x (Real((Level of Frenzy for (Picked unit))))))
            • Then - Actions
              • Unit - Order (Picked unit) to Night Elf Demon Hunter - Deactivate Immolation
            • Else - Actions


Trigger:
  • Frenzy Off
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unimmolation))
    • Actions
      • Unit - Remove Frenzy book from (Triggering unit)
      • Unit Group - Remove (Triggering unit) from FrenzyGroup
 

tommerbob

Minecraft. :D
Reaction score
110
Ah. I already improved the trigger, just didn't post it.

Trigger:
  • Casted Frenzy
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(immolation))
    • Actions
      • Unit Group - Add (Triggering unit) to FrenzyGroup
      • Unit - Add Frenzy book to (Triggering unit)
      • Unit - Set level of Endurance Aura for (Triggering unit) to (Level of Frenzy for (Triggering unit))
      • Player - Disable Frenzy book for (Owner of (Triggering unit))


Trigger:
  • Frenzy
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in FrenzyGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Endurance Aura ) Equal to True
              • (Mana of (Picked unit)) Less than or equal to (8.00 + (2.00 x (Real((Level of Frenzy for (Picked unit))))))
            • Then - Actions
              • Unit - Order (Picked unit) to Night Elf Demon Hunter - Deactivate Immolation
            • Else - Actions


Trigger:
  • Frenzy Off
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unimmolation))
    • Actions
      • Unit - Remove Frenzy book from (Triggering unit)
      • Unit Group - Remove (Triggering unit) from FrenzyGroup

Yep. :thup: Also, do you need a 0.03 periodic? It seems like .05 or slower should be fine.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
The faster the better, because there is some delay for the buff to go off even if the duration - hero/creeps is 0.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Now why didn't I think of that... Too bad there's no way to add buffs like that. There'll be delay when turning on the spell.
 

tommerbob

Minecraft. :D
Reaction score
110
Yeah that would be REALLY nice. It would make half the dummy casting systems out there unnecessary. :p
 

DioD

New Member
Reaction score
57
there is no delay if you set all fileds on spell and dummy to right values.

you will be able to detect buff right after casted it, check castersystem by vexorian for dummy unit.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
@DioD Example please? You kinda lost me. Because I didn't use a dummy unit at all for my triggers... Unless you're suggesting I should create a dummy unit and order it to cast the spell on my hero when the spell is activated?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top