Spell Summon Darkness

Drunken_God

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

Through some unknown property of matter Enemy units within 500 will take the distance in damage. The nearer the Units are the more they will get slowed.
Level 1 - 2 Seconds Slow
Level 2 - 4 Seconds Slow
Level 3 - 6 Seconds Slow

GUI\JASS: JASS (MY FIRST JASS SPELL :D)
Difficulty to import:Easy
MUI\MPI:Both and more (instant cast)


I know its not the best spell ever submitted here but its my first jass spell so pls dont flame me like "i can do this in 1 second"

wc3scrnshot080508131410nu2.jpg


JASS:

function Trig_Cast_Actions takes nothing returns nothing
local group ug
local unit u
local unit caster
local unit dum
local location p
local location up
local real r
local player play

set caster = GetTriggerUnit()
set p = GetUnitLoc(caster)
set ug = GetUnitsInRangeOfLocAll(500.00, p)
set play = GetOwningPlayer(caster)
call CreateUnitAtLoc(play , 'e001', p, 0.00)
loop
   set u = FirstOfGroup(ug)
   exitwhen u==null
   call GroupRemoveUnit(ug,u)
   if  IsUnitEnemy(u, play)==true then
   set up = GetUnitLoc(u)
   set dum = CreateUnitAtLoc(play, 'e000' , p, 0.00)
   set r = DistanceBetweenPoints(p , up)
   call SetUnitAbilityLevel( dum, 'A001', ( ( R2I(r) / 50 ) + ( ( GetUnitAbilityLevel(caster, 'A000') - 1 ) * 10 ) ) )
   call IssueTargetOrder(dum, "slow" , u)
   call UnitApplyTimedLife (dum, 'BTLF', 0.30)
   call UnitDamageTargetBJ( caster, u, r, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
   set dum = null
   call RemoveLocation(up)
   endif
endloop
call DestroyGroup(ug)
set u = null
set caster = null
set play = null
call RemoveLocation(p)

endfunction

function Trig_Cast_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A000'
endfunction


//===========================================================================
function InitTrig_Cast takes nothing returns nothing
    set gg_trg_Cast = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Cast, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Cast, Condition( function Trig_Cast_Conditions ) )
    call TriggerAddAction( gg_trg_Cast, function Trig_Cast_Actions )
endfunction
 

Attachments

  • Summon Darkness.w3x
    20.5 KB · Views: 197

Trollvottel

never aging title
Reaction score
262
coding is okay. but you forgot to null p. spell idea is nice too and there is not too much eyecandy. so overall, nice spell
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
You must null the location variables, even though you removed the locations.
And if possible initialize the variables at the beginning if you can.

JASS:
local group ug
local unit u
local unit caster
local unit dum
local location p
local location up
local real r
local player play

set caster = GetTriggerUnit()
set p = GetUnitLoc(caster)
set ug = GetUnitsInRangeOfLocAll(500.00, p)
set play = GetOwningPlayer(caster)
call CreateUnitAtLoc(play , 'e001', p, 0.00)


JASS:
local unit u
local unit caster = GetTriggerUnit()
local unit dum 
local location p = GetUnitLoc(caster)
local location up
local real r
local player play = GetOwningPlayer(caster)
local group ug = GetUnitsInRangeOfLocAll(500.00, p)

call CreateUnitAtLoc(play , 'e001', p, 0.00) // what are you doing with this unit? You don't add it to a variable and have no control about it... so how do you want to remove it etc.


Edit: I do not understand how units that are nearer get a stronger slow.
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
My god MRC-ELSKER. How about keep manner? It is his first JASS spell and you respond in a somewhat aggressive way?
I remember your first stuff that looked by far more horrible than this... so give constructive feedback.
 

Flare

Stops copies me!
Reaction score
662
Nice looking spell (what model was used? enlarged Holy Light?) even though darkness and bright yellow light don't seem like things that go together IMO :p, and good idea for a spell :thup:

Learn to indent (intend, dunno how it's spelled) ffs.
GoGo-Boy has already said this, but hell, there's no need for that - if you really want to point out that the indentation isn't great (atm it's not horrible, but could be slightly better) you don't need to make it sound terrible. And you aren't really in any position to complain about indentation because the first spells you made had some pretty horrible indentation as well
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
To the effect I got to add that it is too big. I wonder why people always add too big effects. Make em look good but not too huge.

I like the Idea behind this spell although I doubt that it is working exactly the way you want it to be atm.
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
yes it will work like i wanted :)
check the ability slow (it goes down from 70%)
do i have to nullify and remove the locations?

EDIT:
call CreateUnitAtLoc(play , 'e001', p, 0.00)
this unit has an negative hp regen --> will die in 1.5 second
 

GoGo-Boy

You can change this now in User CP
Reaction score
40
Lols, well that might be another way^^.

But seriously, you shouldn't forget that that increases implantation difficulty since everyone had to make an extra dummy for that.

just do something like this so a normal dummy is enough (if you use the model that was made for caster system you can add the models with AddSpecialEffect... the effects increase as well if model size increases)

JASS:
local unit effect_unit = CreateUnit(blbllblabla)
call SetUnitScale(effect_unit,3,3,3) // since I guess it is your big effect ; )
call ApplyTimesLife(asfasfa) // or how the function is called


And yes you must remove and null locations (and groups)
 
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!
    +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

      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