Spell Vengeance

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
Vengeance

vengeancecr3.jpg


Leakless: Yes
MUI/MPI: MUI (but not really because it only takes 2000 damage sources)
GUI/JASS: GUI

The Warden Unleashes all her power in order to revenge every unit that damaged her in the last 10 seconds. Deals 75%/100%/125%/150% of the damage taken.

Code:
Code:
Vengeance Periodic
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 2000, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        VengeanceDuration[(Integer A)] Greater than 0
                    Then - Actions
                        Set VengeanceDuration[(Integer A)] = (VengeanceDuration[(Integer A)] - 1)
                    Else - Actions
                        Set VengeanceDamage[(Integer A)] = 0.00
                        Set VengeanceUnit[(Integer A)] = No unit
                        Set VengeanceWarden[(Integer A)] = No unit


Code:
Vegeance Damage Taken
    Events
    Conditions
        (Damage taken) Greater than 0.00
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                VengeanceArray Equal to 2000
            Then - Actions
                Set VengeanceArray = 0
            Else - Actions
                Set VengeanceArray = (VengeanceArray + 1)
                Set VengeanceDamage[VengeanceArray] = (Damage taken)
                Set VengeanceDuration[VengeanceArray] = 10
                Set VengeanceUnit[VengeanceArray] = (Damage source)
                Set VengeanceWarden[VengeanceArray] = (Triggering unit)

Code:
Vengeance
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Vengeance 
    Actions
        Set temppoint = (Position of (Triggering unit))
        Unit - Create 1 Vengeance Effect for (Owner of (Triggering unit)) at temppoint facing (Facing of (Triggering unit)) degrees
        Animation - Play (Last created unit)'s spell animation
        Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
        Custom script:   call RemoveLocation (udg_temppoint)
        For each (Integer A) from 1 to 2000, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        VengeanceWarden[(Integer A)] Equal to (Triggering unit)
                        VengeanceUnit[(Integer A)] Not equal to No unit
                    Then - Actions
                        Unit - Cause (Triggering unit) to damage VengeanceUnit[(Integer A)], dealing (VengeanceDamage[(Integer A)] x (0.75 + ((Real((Level of Vengeance  for (Triggering unit)))) x 0.25))) damage of attack type Chaos and damage type Normal
                        Set temppoint = (Position of VengeanceUnit[(Integer A)])
                        Special Effect - Create a special effect at temppoint using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
                        Special Effect - Destroy (Last created special effect)
                        Custom script:   call RemoveLocation (udg_temppoint)
                    Else - Actions

Code:
Vengeance Learn
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Vengeance 
        (Level of Vengeance  for (Triggering unit)) Equal to 1
    Actions
        Trigger - Add to Vegeance Damage Taken <gen> the event (Unit - (Triggering unit) Takes damage)

For implementation just copy the ability, create a dummy unit and copy the effect unit(and the triggers of course^^)

EDIT: a lil tooltip change^^
 

Attachments

  • Vengeance.w3x
    73.2 KB · Views: 554
>>(but not really because it only takes 2000 damage sources)
If I'm not mistaken, you're using global arrays, if then, why not max it up to 8190?
 
because then i have to run every second trough 8000 loops
dunno maybe that laggs for some ppl
 
Code:
Set VengeanceUnit[(Integer A)] = No unit
Set VengeanceWarden[(Integer A)] = No unit
Code:
Vengeance Periodic
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 2000, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        VengeanceDuration[(Integer A)] Greater than 0
                    Then - Actions
                        Set VengeanceDuration[(Integer A)] = (VengeanceDuration[(Integer A)] - 1)
                    Else - Actions
                        Set VengeanceDamage[(Integer A)] = 0.00
                        Custom Script: set udg_VengeanceUnit[bj_forLoopIndexA] = null
                        Custom Script: set udg_VengeanceWarden[bj_forLoopIndexA] = null
GJ on the spell by the way.
 
> Is this the DotA skill? By Spectre?

No.

> Set VengeanceUnit[(Integer A)] = No unit

Nulling a global variable is pointless.

Where are those implementation instructions?
 
> Set VengeanceUnit[(Integer A)] = No unit

Nulling a global variable is pointless.

because then i can check if the unit = no unit

Where are those implementation instructions?

i will add some

and t.s.e
whats the difference between both?
 
> because then i can check if the unit = no unit

Oh, well, usually if the variable cannot be set to a unit it will retain its "No unit" value.
 
you think of this part?:
Else - Actions
Set VengeanceDamage[(Integer A)] = 0.00
Set VengeanceUnit[(Integer A)] = No unit
Set VengeanceWarden[(Integer A)] = No unit
 
Yea, but what you did is fine. You aren't nulling in any way. :)
 
Neat spell :thup:



This is not good:
Code:
Vegeance Damage Taken
    Events
        [I][COLOR="Red"]Unit - Warden 0002 <gen> Takes damage[/COLOR][/I]
    Conditions
        (Damage taken) Greater than 0.00
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                VengeanceArray Equal to 2000
            Then - Actions
                Set VengeanceArray = 0
            Else - Actions
                Set VengeanceArray = (VengeanceArray + 1)
                Set VengeanceDamage[VengeanceArray] = (Damage taken)
                Set VengeanceDuration[VengeanceArray] = 10
                Set VengeanceUnit[VengeanceArray] = (Damage source)
                Set VengeanceWarden[VengeanceArray] = (Triggering unit)
... so delete that event and create yourself another trigger:
Code:
Vengeance Learn
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Vengeance 
        (Level of Vengeance  for (Triggering unit)) Equal to 1
    Actions
        Trigger - Add to Vegeance Damage Taken <gen> the event (Unit - (Triggering unit) Takes damage)


Also here:
Code:
Vegeance Damage Taken
    Events
    Conditions
        (Damage taken) Greater than 0.00
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                VengeanceArray Equal to 2000
            Then - Actions
                Set VengeanceArray = 0
            Else - Actions
                Set VengeanceArray = (VengeanceArray + 1)
                Set VengeanceDamage[VengeanceArray] = (Damage taken)
                [I][COLOR="Red"]Set VengeanceDuration[VengeanceArray] = 10[/COLOR][/I]
                Set VengeanceUnit[VengeanceArray] = (Damage source)
                Set VengeanceWarden[VengeanceArray] = (Triggering unit)
... that variable needs to be changed to:
Code:
Set VengeanceDuration[VengeanceArray] = ((Level of Vengeance  for (Triggering unit)) x 10)


Your "Vengeance Effect" unit should have a "flying" movement-type so it's created at the right spot as opposed to being offset slightly.
It should also not be shown on the minimap - set "Stats - Hide Minimap Display" to "true".
 
Rather than running from 1 to 2000 every time, why not just have it run to the Value of VengeanceArray?

That way, it runs to the max. And to keep it from getting anywhere near 2000, every 10 seconds that the warden is not in combat, it resets to 0. Or it could just be really late and I Could be really dumb.
 
Rather than running from 1 to 2000 every time, why not just have it run to the Value of VengeanceArray?

Won't work correctly. Once the VengeanceArray returns to 1 (after hitting 2000), you won't be able to get the loop correct (since you can't do an integer loop from 1900 to 2000 and back to 1 for example.

As I already suggested, dummy group would be the best way to go IMO (rather than checking through 2000 conditions) since it only takes the dummy units in exist (and those dummies will obviously get removed when no longer needed).
 
Neat spell :thup:




Also here:
Code:
Vegeance Damage Taken
    Events
    Conditions
        (Damage taken) Greater than 0.00
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                VengeanceArray Equal to 2000
            Then - Actions
                Set VengeanceArray = 0
            Else - Actions
                Set VengeanceArray = (VengeanceArray + 1)
                Set VengeanceDamage[VengeanceArray] = (Damage taken)
                [I][COLOR="Red"]Set VengeanceDuration[VengeanceArray] = 10[/COLOR][/I]
                Set VengeanceUnit[VengeanceArray] = (Damage source)
                Set VengeanceWarden[VengeanceArray] = (Triggering unit)
... that variable needs to be changed to:
Code:
Set VengeanceDuration[VengeanceArray] = ((Level of Vengeance  for (Triggering unit)) x 10)

why should i do that?
then the duration of the damage taken is 10*level?
i want it to be 10 seconds not 10*level

for the rest ok i change it

EDIT: edited^^
 
> why should i do that?

Because otherwise your ability has false tooltips from levels 2+;
they state that the Warden damages units in the last 20/30/40 seconds.

I forgot to mention earlier that you need to add a 'Read Me' inside the test map.
(That contains better instructions than those in your 1st post)
 
> why should i do that?

Because otherwise your ability has false tooltips from levels 2+;
they state that the Warden damages units in the last 20/30/40 seconds.

I forgot to mention earlier that you need to add a 'Read Me' inside the test map.
(That contains better instructions than those in your 1st post)

ahhhh
sry
thats because of the auto fill tool i will edit that
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    I would be there for days, even with my camera set up slides can take a long time, and if they want perfect captures I really need to use my scanners that are professionally made for that. My camera rig works well for what it is, but for enlargements and things it's not as good.
  • Varine Varine:
    I've only had a couple clients with that so far, though. I don't have a website or anything yet though.
  • Varine Varine:
    Console repair can be worthwhile, but it's also not a thing I can do at scale in my house. I just don't have room for the equipment. I need an office that I can segregate out for archival and then electronic restoration.
  • Varine Varine:
    But in order for that to be real, I need more time, and for more time I need to work less, and to work less I need a different job, and for a different job I need more money to fall back on so that I can make enough to just pay like, rent and utilities and use my savings to find these projects
    +1
  • Varine Varine:
    Another couple years. I just need to take it slow and it'll get there.
  • jonas jonas:
    any chance to get that stolen money back?
  • jonas jonas:
    Maybe you can do console repair just as a side thing, especially if there's so much competition business might be slow. Or do you need a lot of special equipment for that?
  • jonas jonas:
    I recently bought a used sauna and the preowner told me some component is broken, I took a look and it was just a burnt fuse, really cheap to fix. I was real proud of my self since I usually have two left hands for this kinda stuff :p
  • tom_mai78101 tom_mai78101:
    I am still playing Shapez 2. What an awful thing to happen, Varine, and hopefully everything has been sorted out soon. Always use multi-factor authentication whenever you have the opportunity to do so.
    +1
  • Varine Varine:
    I think all of the money is accounted for now, and all the cards have been changed out, so I think for the most part it's taken care of now. Just need to go through and make sure all of my accounts are secured again, it's just time consuming.
  • Varine Varine:
    And yeah everything has 2 factor turned on now, or at least everything I can think of at the moment.
  • Varine Varine:
    The consoles don't need too much equipment that I don't already have. I would like to get a reflow oven, but I don't really want to buy one so I'm thinking about modifying a toaster oven I have to make something that will work for what I'm doing.
  • Varine Varine:
    I have the soldering irons and reflow and all that, but without an oven it's kind of hard to build mod chips and things like that. I made a handful of them with a hot air station, but it's a pain.
  • Varine Varine:
    The only thing I'm not really set up for is BGA rework. I've done it before a little bit, but not reliably, and that equipment is wildly expensive. You need X-rays and shit.
  • Varine Varine:
    I also have a couple 3D printers. I'm not super good with those and need to get an enclosure built, but they'll be useful for some aesthetic mods I've been thinking about. At least I can use them to do designs and then just have someone else print out the parts for me once I know they work.
  • Varine Varine:
    I also use them to make adapters for all my camera shit, but that's also an on the side thing for now. Lens adapters get really expensive.
  • Varine Varine:
    I've been trying to do some little art pieces as well, but I'm not much an engineer so they haven't gone great. I got some new things showing up to try and play with
  • Varine Varine:
    I want to build this tesserect kind of thing with mirrors, and I've been trying to make this like black hole diorama. In my head it looks really cool, but I kind of thought I could form polarizing lenses into a sphere but I tend to just destroy them every time I try.
  • Varine Varine:
    So I got a new idea, but I'm not sure how to make it work like I want without being able to get a polarizer curved. I think they are made out of PVA typically, and I thought I could just heat it up a little bit to soften the film, but that clearly isn't working. So I'm going to try a few other things, I'm thinking if I put a mirror film over the polarizing film I might get something cool. I have some polarized LED's as well, and I think if I make a central light source I can use the mirrors combined with the polarizers to make that central light APPEAR black. I have next week off so I'm going to spend some time trying to figure it out
  • Varine Varine:
    The tesserect works, at least. I just need to figure out how to be able to assemble it, but I think I have a pretty good idea of how to go about it. Or at least a prototype of it. I'll post some pictures next week
  • jonas jonas:
    That last bit sounds like the last entry in a scientist's journal in a destroyed research facility in a post-apocalyptic video game
  • Varine Varine:
    lol it's not that exciting
  • Varine Varine:
    Shiny tho
  • Varine Varine:
    Basically it's a cube with a two way mirror on the inside, and then a smaller cube suspended in that with a mirrors on the outside of it. Kind of like those infinity pictures where they use two mirrors to go forever. Only it's twelve mirrors
  • Varine Varine:
    And the tiniest LED strip I could find

      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