Spellpack Waveform & Mixed Components

Naminator

Coming Back To Life
Reaction score
76
Here are 2 spells that i made. This first one is Waveform like in dota. I do this because i ask how do it time ago, I tried myself and i do it :D. The second is Mixed components.

It's all in GUI. Ther are MUI..but better you see. ;)

Waveform
Copy the trigger and the ability. That's all.
Dissolves into his components and surges forward, dealing damage to everything in his wave.

spells1bw7.jpg


Mixed Components
Copy the trigger and the ability. That's all.
This unit mixed water and electricity making deal extra damage. Can deals Small Charges, Medium Charges and Big Charges. Has 30% to deal charges.

spells2ag6.jpg


Hope you like it!
 

Attachments

  • Spells_FIXED_LEAKS.w3x
    26.1 KB · Views: 1,586
  • Waveform.w3x
    22.8 KB · Views: 1,459
Waveform:

Nice spell, but with quite a few leaks.
Look at the actions in bold:
Code:
Wave Form
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Waveform 
    Actions
        Set WF_Caster = (Triggering unit)
        [B]Set WF_Caster_Loc = (Position of WF_Caster)[/B]
        [B]Set WF_Point = (Target point of ability being cast)[/B]
        Set WF_Angle = (Angle from WF_Caster_Loc to WF_Point)
        Set WF_Distance = (Distance between WF_Caster_Loc and WF_Point)
        Set WF_Check = False
        [B]Unit - Make WF_Caster face WF_Point over 0.01 seconds[/B]
        Unit - Turn collision for WF_Caster Off
        Unit - Hide WF_Caster
        [B]Trigger - Add to Wave Form Action <gen> the event (Unit - A unit comes within 225.00 of WF_Caster)[/B]
        Trigger - Turn on Wave Form Action <gen>
        Wait until (WF_Check Equal to True), checking every 0.10 seconds
        Unit - Unhide WF_Caster
        Selection - Select WF_Caster for (Owner of WF_Caster)
        Unit - Turn collision for WF_Caster On
        Trigger - Turn off Wave Form Action <gen>
WF_Caster_Loc -> It is very important that you remove this variable immediately after use in this trigger, as its also used in the other trigger that runs every 0.02 seconds. And why is it important? Simply because its first value will leak itself into your comp's memory, and will NOT be able to be removed, as it is set 0.02 seconds later in the periodic trigger.

WF_Point -> This variable is also not removed in this trigger, but, it is needed to compare with in the periodic trigger. Simple work-around here - just remove it after the "Wait until" action.

Unit - Make WF_Caster face WF_Point -> Pretty pointless IMO, the caster is ordered to face WF_Point in the periodic trigger anyway. Remove this action if you want.

Trigger - Add to Wave Form Action -> Bad, bad, bad. And I'll tell you why: adding events to triggers is completely inefficient becuase it can cause double-fires of the added-to-trigger. There is a work-around to this though - you only did this because you probably didn't know of another way to not damage units every 0.02 seconds, and you wanted it to work like Shockwave's damage. Well I've got good news for you - you CAN still make the periodic trigger efficient, and you can still make it damage units like Shockwave. I'll explain how to do this soon.

Next trigger, the periodic one:
Code:
Wave Form Action
    Events
        Time - Every 0.02 seconds of game time
    Conditions
    Actions
        Set WF_Entering_Unit = (Entering unit)
        Unit - Order WF_Caster to damage WF_Entering_Unit for (100.00 + (75.00 x (Real((Level of Waveform  for WF_Caster))))) using attack type Spells and damage type Normal.
        Set WF_Caster_Loc = (Position of WF_Caster)
        [B]Unit - Move WF_Caster instantly to (WF_Caster_Loc offset by 50.00 towards WF_Angle degrees), facing WF_Angle degrees[/B]
        Set WF_Distance = (Distance between WF_Caster_Loc and WF_Point)
        Special Effect - Create a special effect at WF_Caster_Loc using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
        Special Effect - Destroy (Last created special effect)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                WF_Distance Less than or equal to 50.00
            Then - Actions
                Set WF_Check = True
                Trigger - Turn off (This trigger)
            Else - Actions
        Custom script:   call RemoveLocation (udg_WF_Caster_Loc)
Unit - Move WF_Caster instantly to (WF_Caster_Loc offset by 50.00 towards WF_Angle degrees) -> There is a point leak here. Set another point variable to: WF_Caster_Loc offset by 50.00 towards WF_Angle degrees, and then move WF_Caster to that new point variable. You'll need to remove it too, obviously, to prevent another leak :).

Now, about that work-around with the damage thing - I know of a pretty simple, efficient way of doing this. All you need to do, is create a new group variable (I called mine WF_Group), pick every unit within range of WF_Caster_Loc, and then perform an If-Then-Else statement inside the Loop - Actions of that Unit Group function, checking if the Picked unit is part of the new WF_Group variable or not.

If it IS part of the group variable (not added to the group yet), we don't damage them, or do anything, in fact. But, if that unit IS NOT part of the group, we DO damage them, and we also add them to the group. I know what your thinking; "umm... wth?" :p, so let's put this into trigger form.

I've changed both triggers, the periodic one quite alot.
Text in Italic = new/changed.
Code:
Wave Form Fixed
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Waveform 
    Actions
        Set WF_Caster = (Triggering unit)
        Set WF_Caster_Loc = (Position of WF_Caster)
        Set WF_Point = (Target point of ability being cast)
        Set WF_Angle = (Angle from WF_Caster_Loc to WF_Point)
        Set WF_Distance = (Distance between WF_Caster_Loc and WF_Point)
        Set WF_Check = False
        Unit - Turn collision for WF_Caster Off
        Unit - Hide WF_Caster
        [I]Custom script:   call RemoveLocation (udg_WF_Caster_Loc)[/I]
        Trigger - Turn on Wave Form Action <gen>
        Wait until (WF_Check Equal to True), checking every 0.10 seconds
        Unit - Unhide WF_Caster
        Selection - Select WF_Caster for (Owner of WF_Caster)
        Unit - Turn collision for WF_Caster On
        Trigger - Turn off Wave Form Action <gen>
        [I]Custom script:   call RemoveLocation (udg_WF_Point)[/I]
Code:
Wave Form Action Fixed
    Events
        Time - Every 0.02 seconds of game time
    Conditions
    Actions
        [I]Set WF_Caster_Loc = (Position of WF_Caster)[/I]
        [I]Set WF_Offset = (WF_Caster_Loc offset by 50.00 towards WF_Angle degrees)[/I]
        Set WF_Distance = (Distance between WF_Caster_Loc and WF_Point)
        [I]Unit - Move WF_Caster instantly to WF_Offset, facing WF_Angle degrees[/I]
        Special Effect - Create a special effect at WF_Caster_Loc using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
        Special Effect - Destroy (Last created special effect)
        [I]Custom script:   set bj_wantDestroyGroup = true
        Unit Group - Pick every unit in (Units within 225.00 of WF_Caster_Loc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of WF_Caster)) Equal to True)))) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is in WF_Group) Not equal to True
                    Then - Actions
                        Unit Group - Add (Picked unit) to WF_Group
                        Unit - Order WF_Caster to damage (Picked unit) for (100.00 + (75.00 x (Real((Level of Waveform  for WF_Caster))))) using attack type Spells and damage type Normal.
                    Else - Actions[/I]
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                WF_Distance Less than or equal to 50.00
            Then - Actions
                Set WF_Check = True
                [I]Unit Group - Remove all units from WF_Group[/I] <== Very important - don't forget to add!
                Trigger - Turn off (This trigger)
            Else - Actions
        Custom script:   call RemoveLocation (udg_WF_Caster_Loc)
        [I]Custom script:   call RemoveLocation (udg_WF_Offset)[/I]

Mixed Components:

This first trigger is pretty worthless, and I'll tell you why: the hero can't "use" the spell unless they have the buff anyway, so, having a trigger that just turns on another in this case, is dumb :D. Delete the trigger that turns on the "real" one, and have the real one initially on.

As for the real trigger, I don't see any problems here, except for the fact that the spell isn't levelable. And, considering the spell DOES have levels, its pretty pointless the way the trigger is atm, IMO. For more info about levelable spells, read here.

_________

Well that's basically all that needs to be fixed, apart from the fact that the tooptips have a "[Nivel]" in them. Change it to "[Level]", just so its in English :).

Good spellpack anyway, +rep.

Oh, and btw, here's the updated map that I fixed for you.
Its been completely fixed, apart from Mixed Components not been levelable, and the tooltips aren't fixed either (I thought you could do those 2 things yourself).
 
I dont know what i am doing wrong but its not working for me i copied wave form and wave form action (only need waveform) and i copyed the ability but it still wont work? do i have to do it on a blank map?

Ive gotten these off the spells leaks fixed map
 
this resource is severely outdated, you should code your own, after 3 years some change in wc3 could cause it to no longer work
 
Im not good at triggers and never looked at making spells before.
although one question the waveform works on the demo map but not on a normal map like plaguelands? (comes with wc3 cusom game map)
 
you probably did not do it correctly then, try copying all the variables that they have in the map into yours first
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    But the electorate would have to demand it and vote people in to do it.
  • Ghan Ghan:
    Government spending, foreign policy, and the southern border are all bigger issues than the income tax right now I'd say.
  • The Helper The Helper:
    For you those are the bigger issues. Cannabis legalization and get rid of Income tax are mine.
  • Ghan Ghan:
    We have so much cannabis up here in Oklahoma. Can't go a block without running into 3 dispensaries. xD
  • The Helper The Helper:
    if the demand is there
  • jonas jonas:
    I think the biggest issue in USA is how divided the country has become
  • Ghan Ghan:
    There's a big split happening in fundamental values that is very worrisome.
  • jonas jonas:
    I think there's always been a split in values. But now there's a split in what reality is. No matter whom you ask, they think a third of the country is insane and wants to destroy the country
  • The Helper The Helper:
    pretty big split
  • The Helper The Helper:
    Happy Saturday!
    +1
  • V-SNES V-SNES:
    Happy Saturday!
    +1
  • The Helper The Helper:
    Dont forget to check out the list of all the recipes on the site at the Recipe Index - I am about to take Ghan up on the offer of making that a site :) https://www.thehelper.net/threads/main-recipes-menu-recipes-index-version-2-0.189517/
  • The Helper The Helper:
    We should add that as part of site navigation
  • Varine Varine:
    I just don't think Trump actually understands how the government works. I'm not going to pretend like I can understand the entirety of government but in my industry he kind of caused massive fucking issues. Tarriffs and the international counters had a pretty significant impact on what I do, it was actually kind of interesting to see though. I live in Idaho so I'm not really concerned with it, it'll be R pretty much the entire way down. We do have ranked choice on our ballot this year though and I DO really care about that. But if we are going to have a federal government we kind of need income tax. They could abolish it and tax states I guess, but then states are just going to raise income taxes. It's not really viable without a very significant and holistic overhaul of how the federal government works, and that isn't something I would expect Trump to do.
  • Varine Varine:
    I don't expect Harris to do it either. I want to see wealth and church taxes, but those also aren't things I'm going to hold my breath for.
  • jonas jonas:
    I mean he definitely doesn't, which is why he had to retract most of his executive orders, didn't manage to get rid of obamacare etc.
  • jonas jonas:
    B
  • jonas jonas:
    Replacing income tax with a wealth tax would be amazing imho, but I can't even imagine that this would happend
  • Ghan Ghan:
    Wealth tax would be a disaster. Imagine having to liquidate retirement accounts because you have a tax bill just for unrealized gains. Or your house goes up in price and you have to sell it to pay the tax bill.
  • jonas jonas:
    I'm not talking about an income tax on wealth gain.
  • jonas jonas:
    we already have a wealth tax on our house, it's called a property tax. I'm talking about extending that to other income-generating assets like private equity, bonds and stocks.
  • jonas jonas:
    I agree that the effect of that would be to depress asset prices, but I think that's a good thing. Makes it easier for hard working young people to grow their retirement income
    +1
  • seph ir oth seph ir oth:
    Potential problem for a wealth tax for the US would be the ultra rich just offshoring assets in another country without a wealth tax. Those that would eat the wealth tax on, say, stocks, would be the middle class that puts money slowly into the market via the likes of funds.
  • seph ir oth seph ir oth:
    happy US election day btw!
  • Varine Varine:
    Oh election day

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top