Help with a reverse Shackles ability?

Estel3

New Member
Reaction score
6
I idea of this spell is to heal a target unit every second while pausing both the caster and the target.

However, you can't just put -20 damage on Shackles, it does 20 damage per second.

Now normally I wouldn't have trouble with this one but I need the ability in MUI. I'm not very good with locals and I don't know JASS.

Can someone help?
 

2-P

I will work hard tomorrow
Reaction score
325
Base your spell on something like Rejuvenation and pause both units when the spell is cast.
 
I

IKilledKEnny

Guest
Do what 2-P said. If you want to keep it MUI do this trigger:

Code:
Event:
Unit casts spell
Condition:
Spell is blah blah blah
Action:
Custom script: local unit caster=GetTriggerUnit()
Custom script: local unit target=GetSpellTargetUnit()
Custom script: call PauseUnit(caster,true)
Custom script: call PauseUnit(target,true)
Add wait action here. 
Custom script: call PauseUnit(caster,false)
Custom script: call PauseUnit(target,false)
Custom script: set caster=null
Custom script: set target=null

Edit: Try going to the spell and in the damage field click left + shift and try adding then nagative value.
 

2-P

I will work hard tomorrow
Reaction score
325
You can keep that MUI with GUI too. Just use "Triggering Unit" for the caster and "Target Unit Of Ability Being Cast" for the target.
 
I

IKilledKEnny

Guest
I forgot a little GUI already, if you are sure that those are MUI variables then sure he can do it in GUI.
 

Estel3

New Member
Reaction score
6
Thanks guys, but I have problem. The idea of the spell is a channeling Heal over Time. If something interrupts the channeling, be it a stun spell or the player moving the unit the spell needs to stop then. So pausing a unit removes the ability to cancel it at will and it would still continue if the either unit were stunned.

How would I take care of those problems?

Also I tried inputing the data like IKK said (Shift + Clicking) and it still deals damage.
 

2-P

I will work hard tomorrow
Reaction score
325
This could get a bit tricky to keep it MUI.

Base the spell on Aerial Shackles and let a dummy unit cast Rejuvenation on the target.

Make sure that the Aerial Shackles and the Rejuvenation ability give the target unit an unique buff (no other ability should use the same buffs).
To cancel the healing effect you need a seperate trigger which periodical checks if a unit has the Rejuvenation buff and not the Shackles buff. It should look something like this:
Code:
    Events
        Time - Every 0.20 seconds of game time
    Conditions
    Actions
        Set Group = (Units in (Playable map area))
        Unit Group - Pick every unit in Group and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) has buff Rejuvenation) Equal to True
                        ((Picked unit) has buff Aerial Shackles) Equal to False
                    Then - Actions
                        Unit - Remove Rejuvenation buff from (Picked unit)
                    Else - Actions
        Custom script:   call DestroyGroup(udg_Group)

"Group" is a unit group variable.
 

Estel3

New Member
Reaction score
6
Awesome, works like a charm (I just set off an AOE damage in the middle of my units and used 3 priests to heal them all and it worked fine).

+rep
 
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