Template Circle Spell Template

duyen

New Member
Reaction score
214
Basically, this creates a number of effects around you that deal damage to enemy units.

It's very fun to play around with =P

NOTE: This only allows up to 360 vertex's but you can adjust that.

NOTE: Don't use 360 vertex's because it lags REALLY bad.

Everything else is basically explained in the code

Outside Knowledge needed: Only 6th grade math.

Code:
Spell Template
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Circle Spell 
    Actions
        Set Wait = 0.00
        -------- The time between which effect and damage occurs. --------
        Set Offset = 550.00
        -------- The radius of the circle. --------
        Set VertexCount = 15
        -------- The number of vertices your "circle" has. --------
        Set Damage = 100.00
        -------- The damage each vertex does at level 1 --------
        Set DamageLevelFactor = 1.50
        -------- The increase in damage per level. --------
        Set Range = 100.00
        -------- The area that damage occurs around each vertex. --------
        Set RangeLevelFactor = 1.00
        -------- The change per level in range. --------
        Set Points[361] = (Position of (Triggering unit))
        For each (Integer A) from 1 to VertexCount, do (Actions)
            Loop - Actions
                Set VertexConvert = ((Integer A) x (360 / VertexCount))
                Set Points[(Integer A)] = (Points[361] offset by Offset towards (Real(VertexConvert)) degrees)
                Special Effect - Create a special effect at Points[(Integer A)] using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
                -------- This is the SFX that shows up at each vertex. --------
                Special Effect - Destroy (Last created special effect)
                Set Group = (Units within (Range x RangeLevelFactor) of Points[(Integer A)] matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
                Unit Group - Pick every unit in Group and do (Actions)
                    Loop - Actions
                        Unit - Cause (Triggering unit) to damage (Picked unit), dealing (Damage x (((Real((Level of Circle Spell  for (Triggering unit)))) - 0.00) x DamageLevelFactor)) damage of attack type Spells and damage type Normal
                        -------- This is type of damage --------
                Custom script:   call RemoveLocation(udg_Points[bj_forLoopAIndex])
                Custom script:   call DestroyGroup(udg_Group)
                Wait Wait seconds
                -------- Disable this if you have "Wait" set to 0.00 --------
        Custom script:   call RemoveLocation(udg_Points[361])

Here's an example screenie:
circletemplatescreeniefs6.png

Some ideas to make with this could be:

Ring of Fire
(Looking for more!)
 

Attachments

  • Circle Spell Template.w3x
    16.4 KB · Views: 718

duyen

New Member
Reaction score
214
I made a JASS Version of this..I should post it

Cool, the reason I made this in GUI is because almost everybody knows how to use GUI but only about 15% of people on this forum really know how to use JASS.

Also thanks for the +rep
 

Hero

─║╣ero─
Reaction score
250
Cool, the reason I made this in GUI is because almost everybody knows how to use GUI but only about 15% of people on this forum really know how to use JASS.

Also thanks for the +rep

Oh right I forgot +rep :p

Time to check your code

You missed a lot of conditions that might be of value
Example:

If the unit is a building?
If the unit is dead?
 

Flare

Stops copies me!
Reaction score
662
seems like a reasonable template, but where is this actually used?
Code:
        Set Wait = 0.00
        -------- The time between which effect and damage occurs. --------
Waiting after the damage etc has taken place isnt exactly much use...
Also, you dont really need to set an array for the variables (i think) if there is only one trigger being used.
Just make a new variable for casters location and use Set Points (with no array) = CasterLoc offset by whatever. unless 2 units cast at exact same time, it wont overlap since all the trigger actions are taking place without any time in between.
Also, couldn't you have just used dummy units if you wanted to show how to scale the size of the special effects? Some people might like bigger/smaller effects than the wc3 effects default size.

in the end, its a reasonable template for showing how to make a perfectly simple circle and i guess thats the point... was there not a circle spell template already submitted?

edit: next time you're taking a screeny of something like that, use /fps just to show how badly it can lag when you use huge amount of points
 

duyen

New Member
Reaction score
214
seems like a reasonable template, but where is this actually used?
Code:
        Set Wait = 0.00
        -------- The time between which effect and damage occurs. --------
Waiting after the damage etc has taken place isnt exactly much use...
Also, you dont really need to set an array for the variables (i think) if there is only one trigger being used.
Just make a new variable for casters location and use Set Points (with no array) = CasterLoc offset by whatever. unless 2 units cast at exact same time, it wont overlap since all the trigger actions are taking place without any time in between.
Also, couldn't you have just used dummy units if you wanted to show how to scale the size of the special effects? Some people might like bigger/smaller effects than the wc3 effects default size.

in the end, its a reasonable template for showing how to make a perfectly simple circle and i guess thats the point... was there not a circle spell template already submitted?

It's a loop, makes time before sfx and damage appears etc... try changeing it, see what happens.

I don't believe there was a circle template already submitted and circle spells are used in many maps.

I tried to use least variables possible but still make it user-friendly so I didn't use a "CasterPoint" because it was totally unnecessary
 

Hero

─║╣ero─
Reaction score
250
seems like a reasonable template, but where is this actually used?
Code:
        Set Wait = 0.00
        -------- The time between which effect and damage occurs. --------
Waiting after the damage etc has taken place isnt exactly much use...
Also, you dont really need to set an array for the variables (i think) if there is only one trigger being used.
Just make a new variable for casters location and use Set Points (with no array) = CasterLoc offset by whatever. unless 2 units cast at exact same time, it wont overlap since all the trigger actions are taking place without any time in between.
Also, couldn't you have just used dummy units if you wanted to show how to scale the size of the special effects? Some people might like bigger/smaller effects than the wc3 effects default size.

in the end, its a reasonable template for showing how to make a perfectly simple circle and i guess thats the point... was there not a circle spell template already submitted?

edit: next time you're taking a screeny of something like that, use /fps just to show how badly it can lag when you use huge amount of points

That is because you want a small wait inside of that loop or you will get major lag all at once.
 

LurkerAspect

Now officially a Super Lurker
Reaction score
118
I don't suppose you could tell me how you would do the same with a circle-type lightning effect ring?
 

Hero

─║╣ero─
Reaction score
250
I don't suppose you could tell me how you would do the same with a circle-type lightning effect ring?

You would need more than one points and make the lightning go from one point to another forming the circle
 

duyen

New Member
Reaction score
214
It dosen't make it user-unfriendly it means users have to use 1 more variable, and since you don't have to adjust it I see that it hardly would matter to you, it's only more trouble for me.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
Is it.. Multi --- Unit --- Instanceable?
 

duyen

New Member
Reaction score
214
Without waits

EDIT: It's been 48 hours... Why hasn't a mod commented\approved it.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>Without waits
What if I want to create some special effect to at least need to last 1 sec to see the visual effect? No more MUI?

*Note - There is some effect can be shown when you destroy them at the moment you create them.

>>It's been 48 hours... Why hasn't a mod commented\approved it.
MoD's are sleeping. :p
 

duyen

New Member
Reaction score
214
>>*Note - There is some effect can be shown when you destroy them at the moment you create them.

This is a tad bit random?

>>>It's been 48 hours... Why hasn't a mod commented\approved it.
MoD's are sleeping. :p[/QUOTE]

Lol

>What if I want to create some special effect to at least need to last 1 sec to see the visual effect? No more MUI?

Yup.

-------------------------------------

Oh right I forgot +rep :p

Time to check your code

You missed a lot of conditions that might be of value
Example:

If the unit is a building?
If the unit is dead?

If the unit is dead it takes the damage and it won't do anything so this dosen't matter and if it's a building you can add your own condition, in my example I want it to effect buildings.
 

Sim

Forum Administrator
Staff member
Reaction score
534
> EDIT: It's been 48 hours... Why hasn't a mod commented\approved it.

Do not PM us with that kind of request please.

Thank you.

----------------------------------------------------------

Nice customability, the user can do anything he wants with that template, as long as it's still a circle.

> Unit - A unit Begins casting an ability

Starts the effect of an ability.

I would have liked better a nova template or something that is more... spell-like.

This is just an explosion all around the caster.

Anyhow, approved. Just change the event.
 

duyen

New Member
Reaction score
214
Ok, I'll fix that soon and about PMing you I thought mods\admins were suppose to check new resources at most 48 hours after submitted? Please correct me if i'm wrong.

Also I'm quite sorry if I sounded impatient.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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!
  • 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

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top