Spell Polarity Shift

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
A spell I made in my spare time, and is set up as follows.
Leakless as far as I know.
NOT MUI.
Fun to use :p .
Written in GUI.
To import simply copy the spell from the object editor, and afterwards copy the folder "Polarity Shift" which contains all the triggers for the spell, then paste both of these into your map.

The hero bashes the ground with his hammer shifting outlying units into the center while creating a crater in the ground. Upon impact units around the caster are stunned.
PolarityShift.jpg
 

Attachments

  • Polarity Shift.w3x
    20.6 KB · Views: 606

elmstfreddie

The Finglonger
Reaction score
203
Like it except there's a leak :O
Code:
Polarity Shift Pull In
    Events
        Time - Every 0.09 seconds of game time
    Conditions
    Actions
        Set PolarityGroup = (Units within 500.00 of PolarityShiftPoint matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an ally of (Owner of PolarityShiftCaster)) Equal to False)))
        Unit Group - Pick every unit in PolarityGroup and do (Actions)
            Loop - Actions
                Set PolarityShiftTarget = (Picked unit)
                Set faceangle = ((Angle from PolarityShiftPoint to (Position of PolarityShiftTarget)) - 180.00)
                Special Effect - Create a special effect attached to the origin of PolarityShiftTarget using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
                Special Effect - Destroy (Last created special effect)
                Unit - Cause PolarityShiftCaster to damage PolarityShiftTarget, dealing (3.00 + (1.00 x (Real((Level of Unknown (A08S) for PolarityShiftCaster))))) damage of attack type Spells and damage type Normal
                Set Temp_Point = ((Position of PolarityShiftTarget) offset by 5.00 towards faceangle degrees)
                Unit - Move PolarityShiftTarget instantly to Temp_Point, facing faceangle degrees
        Custom script:   call DestroyGroup(udg_PolarityGroup)
        [B]Custom script:   call RemoveLocation(udg_Temp_Point)[/B]

The bolded text should be inside the unit group loop :eek:
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
Point taken =/ Ehe, thats a leak or two :p Lemme fix that right now. Thanks.
 

Tinki3

Special Member
Reaction score
418
Found a few more leaks.

Please look at the text in bold:
Code:
Polarity Shift
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Polarity Shift 
    Actions
        Set PolarityShiftCaster = (Casting unit)
        Set PolarityShiftPoint = (Position of PolarityShiftCaster)
        Environment - Create a 0.01 second Permanent crater deformation at PolarityShiftPoint with radius 400.00 and depth 400.00
        [B]Environment - Create a 0.50 second wave deformation from PolarityShiftPoint to (PolarityShiftPoint offset by 256.00 towards 360.00 degrees) with radius 256.00, depth 96.00, and a 0.00 second trailing delay[/B]
        Trigger - Turn on Polarity Shift Pull In <gen>
        Wait 5.00 seconds
        Trigger - Turn off Polarity Shift Pull In <gen>
        Environment - Create a 3.00 second Permanent crater deformation at PolarityShiftPoint with radius 400.00 and depth -400.00
        Custom script:   call RemoveLocation(udg_PolarityShiftPoint)
Environment - Create a 0.50 second wave deformation from PolarityShiftPoint to (PolarityShiftPoint offset -> This leaks a polar offset. Set the polar projection data into a variable like so:

Set Temp_Point = (PolarityShiftPoint offset by 256.00 towards 360.00 degrees)

Then use "Temp_Point" as the point to create the effect at.
You'll also need to remove Temp_Point immediately after use, preferably just before
you turn on the periodic trigger.

Code:
Polarity Shift Pull In
    Events
        Time - Every 0.09 seconds of game time
    Conditions
    Actions
        Set PolarityGroup = (Units within 500.00 of PolarityShiftPoint matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an ally of (Owner of PolarityShiftCaster)) Equal to False)))
        Unit Group - Pick every unit in PolarityGroup and do (Actions)
            Loop - Actions
                Set PolarityShiftTarget = (Picked unit)
                Set faceangle = ((Angle from PolarityShiftPoint to (Position of PolarityShiftTarget)) - 180.00)
                Special Effect - Create a special effect attached to the origin of PolarityShiftTarget using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
                Special Effect - Destroy (Last created special effect)
                [B]Unit - Cause PolarityShiftCaster to damage PolarityShiftTarget, dealing (3.00 + (1.00 x (Real((Level of Unknown (A08S) for PolarityShiftCaster))))) damage of attack type Spells and damage type Normal[/B]
                [B]Set Temp_Point = ((Position of PolarityShiftTarget) offset by 5.00 towards faceangle degrees)[/B]
                Unit - Move PolarityShiftTarget instantly to Temp_Point, facing faceangle degrees
                Custom script:   call RemoveLocation(udg_Temp_Point)
        Custom script:   call DestroyGroup(udg_PolarityGroup)
(Real((Level of Unknown (A08S) for PolarityShiftCaster))) -> "A08S" needs to be replaced with the Polarity Shift ability :)

(Position of PolarityShiftTarget) offset by 5.00 towards faceangle degrees -> This leaks twice. You need to initially set the position of the PolarityShiftTarget into a variable, and then set another variable with the polar projection data (Italic = new/modified):
Code:
Unit Group - Pick every unit in PolarityGroup and do (Actions)
    Loop - Actions
        Set PolarityShiftTarget = (Picked unit)
        [I]Set Temp_Point[1] = Position of PolarityShiftTarget
        Set faceangle = ((Angle from PolarityShiftPoint to Temp_Point[1] - 180.00)
        Set Temp_Point[2] = Temp_Point[1] offset by 5.00 towards faceangle degrees)[/I]
        Special Effect - Create a special effect attached to the origin of PolarityShiftTarget using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
        Special Effect - Destroy (Last created special effect)
        [I]Unit - Cause PolarityShiftCaster to damage PolarityShiftTarget, dealing (3.00 + (1.00 x (Real((Level of Polarity Shift for PolarityShiftCaster))))) damage of attack type Spells and damage type Normal[/I]
        [I]Unit - Move PolarityShiftTarget instantly to Temp_Point[2], facing faceangle degrees[/I]
     [I]   Custom script:   call RemoveLocation(udg_Temp_Point[1])
        Custom script:   call RemoveLocation(udg_Temp_Point[2])[/I]

Good work on the spell btw ;)
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
>(Position of PolarityShiftTarget) offset by 5.00 towards faceangle degrees -> This leaks twice. You need to initially set the position of the PolarityShiftTarget into a variable, and then set another variable with the polar projection data (Italic = new/modified):

I honestly didnt know that, I thought putting the whole thing in there eliminated leaks, which means that my maps movement triggers on my other spells leak -_-. Oh boy! Least I know now, thanks Tinki. Lemme fix it.
Edit - Should be fixed now...
 

Sim

Forum Administrator
Staff member
Reaction score
534
> Set faceangle = ((Angle from PolarityShiftPoint to (Position of PolarityShiftTarget)) - 180.00)

This leaks a point too :)
 

Hero

─║╣ero─
Reaction score
250
Is this a dota spell?

Anyways yours looks better than DotAs

I like it...well from the screen shot...when I get home I well test it and stuff...


*Subscribed
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
> Set faceangle = ((Angle from PolarityShiftPoint to (Position of PolarityShiftTarget)) - 180.00)

This leaks a point too :)

Is it? That means gg for my map then... So much fixing to do now... I have like 30 movement spells... (WAY Overexagerating but still -_- a lot) so woohoo work! I guess its time to fix it...
 

Hero

─║╣ero─
Reaction score
250
Is it? That means gg for my map then... So much fixing to do now... I have like 30 movement spells... (WAY Overexagerating but still -_- a lot) so woohoo work! I guess its time to fix it...

Learn JASS ^^

it is much easier to fix
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
Is Approval good? Lol, I can only assume it is so thank you :D . Anyhow, any more comments?
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
Is this a dota spell?

Anyways yours looks better than DotAs

I like it...well from the screen shot...when I get home I well test it and stuff...


*Subscribed
No it's not a DotA spell, I try to keep my spells so that they are actually my spells :p.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
nice ^^ +rep
__________________
3 days ...no mod checked my spell -_-
 

WarLuvr3393

Hmmm...too many things to play (WoW, COD4, WC3)
Reaction score
54
Very cool spell. Just make sure those leaks are fixed or it won't be used in maps.

You have my +rep, gratz.

~WarLuvr
 

elmstfreddie

The Finglonger
Reaction score
203
Did I +rep you?
I forget.
It won't let me +rep the same post twice so if I haven't added rep yet I will now :O
I liked it, I was just tired when I first looked at it:p

Edit > Nope! Already repped :p
 

Hero

─║╣ero─
Reaction score
250
Expect a better report from me either tomorrow, Tuesday, or Wednesday

I am going home tomorrow.. :D
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
>Very cool spell. Just make sure those leaks are fixed or it won't be used in maps.

They are fixed :D . There were like 20 of em I didnt even know were leaks but I fixed them now haha. And thx for the +rep guys :D .
 
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