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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top