How to cast paladin's Divine Shield on other allied units?

Zerox

Ultra Cool Member
Reaction score
28
Hey I'm trying to recreate a the Unholy Armor skill from wc2 which grants temporary invulnerability to one unit but isn't usable on the caster. To do this I thought why not just use Divine Shield and make it castable onto other allied units but not the caster themself.

Only problem is I can't figure out how to do this. Can anyone help me? I'll give +rep to anyone who tries to help. :thup:

Zerox
 

Skippy

Active Member
Reaction score
39
Use trigger:
Trigger:
  • TRIGGER
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Light
    • Actions
      • Unit - Make (Target unit of ability being cast) Invulnerable
      • Wait 10.00 game-time seconds
      • Unit - Make (Target unit of ability being cast) Vulnerable
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
Use trigger:
Trigger:
  • TRIGGER
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Light
    • Actions
      • Unit - Make (Target unit of ability being cast) Invulnerable
      • Wait 10.00 game-time seconds
      • Unit - Make (Target unit of ability being cast) Vulnerable

That's a bad trigger. Waits never work that well, plus I think that leaks. Also there is no special effect or buff to show the unit is invulnerable.

When you get the unit to cast a dummy spell, add a disabled spell book to the hero. Put the divine shield spell in there and get the target to cast it.
 

Moridin

Snow Leopard
Reaction score
144
I suggest you don't use divine shield as a base spell. Divine shield has a buff called divine shield I think (or maybe invulnerability). Take an allied target casting spell like....Regeneration (Druid of the Claw), set the amount regened to 0, and give it the same buff as divine shield would. Then just alter the art.
 

Skippy

Active Member
Reaction score
39
My trigger works, but it schould be upgraded. It probably leaks, so add point variable and set it to Target of ability being cast. And replace wait with timer.
 

Bloodydood

New Member
Reaction score
14
Trigger:
  • Test
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to Holy Light
    • Actions
      • Unit - Add Divine Shield to (Target unit of ability being cast)
      • Unit - Order (Target unit of ability being cast) to Human Paladin - Activate Divine Shield
      • Unit - Remove Divine Shield from (Target unit of ability being cast)
 

Skippy

Active Member
Reaction score
39
That will add icon of Divine Shield to target unit for a period of duration.
 

Rainther

I guess I should write something of value here...
Reaction score
61
Not visually. It uses it the same second it dissapears since divine shield is instant and have time to be used during. It may however interrupt channels etc.
 

lh2705

Just another Helper
Reaction score
111
Event
A unit starts the effect of an ability
Condition
Ability being cast equal to Something
Actions
Set Target = Target Unit of ability being cast
Make Target Invulnerable
<<Add the divine shield special effect to the origin of the target>>(Sorry forgot the command)
Set Effect = Last Created Special Effect
Wait 10 game time seconds
Make Target Vulnerable
Destroy Effect

Something = A dummy ability with no buffs and effects. Chain Lightning is a good dummy ability base.

This is one way you can do it. Its not very good as its not so effective if you want to cast it within the time period given as the unit stored into variable changes. Hence it will cause more problems.

Here is another way for you to do it.
Base a dummy spell of rejuvenation.
Set the amount healed to 0.
Set the duration(How long the divine shield would last)
Create a new positive buff(based off rejuvenation or even divine shield would be fine), this makes the description of the buffs come out green instead of red on a negative buff. Change the effect to the divine shield effect, change the description to whatever you like.
Go back to your ability and set the buff to the new buff you created.

Make a trigger like this.
Code:
Trigger
    Events
        Time - Every 0.25 seconds of game time
    Conditions
    Actions
        Custom script:   set bj_wantDestroyGroup=true
        Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
            Loop - Actions
                If (((Picked unit) has buff Divine Shield** ) Equal to False) then do Unit - Make Picked Unit Vulnerable else Unit - Make Picked Unit Invulnerable

The divine shield buff is the new buff you created.

This trigger is much better as it doesn't involve any variables. The spell would then be MUI, you could continuously cast it as many times as you like without any problems.

Hope it helps :D
 

Zerox

Ultra Cool Member
Reaction score
28
I appreciate all of your help and I think they all made sense and would work to an extent but lh2705's second method seems to be the best way we've figured out and so I'll use that. Thanks everyone. The simpler stuff helped me understand his to an extent more and I appreciate it. I'll give +rep to all as promised.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • 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 Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top