Spellpack DotA spell pack

Moe94

New Member
Reaction score
9
I made this spell pack for starters to learn how simple some of dota spells and how are they made...
Jass or GUI: Jass,
Import difficulty:medium,
Leakless: I think so,
Description:Invoke Icy Path, Invoke Choas Meteor, Quillspray,
Reason: Someday i wish i have 1000 reputation j/k :)
Code:
function Trig_Invoke_Icy_Path_Conditions takes nothing returns boolean
    return GetUnitTypeId(GetSummonedUnit()) == 'u006' 
endfunction        

function Trig_Invoke_Icy_Path_Actions takes nothing returns nothing
    local integer i=1    
    local location l=GetUnitLoc(GetSummonedUnit())
    local location m=GetUnitLoc(GetSummoningUnit())
    local location n
    local unit u
    loop
        exitwhen i>5
        set n=PolarProjectionBJ(l,(I2R(i)*75.00),(AngleBetweenPoints(m,l)+90.00))
        set u = CreateUnitAtLoc(GetOwningPlayer(GetSummoningUnit()),'u006',n,GetRandomReal(0,360))
        call RemoveLocation(n)
        call SetUnitAnimation(u,"birth")
        call QueueUnitAnimation(u,"stand")
        call UnitApplyTimedLife(u,'BTLF',(0.00+(I2R(GetUnitAbilityLevelSwapped('A00G',GetSummoningUnit()))*1.25)))
        set n=PolarProjectionBJ(l,(I2R(i)*75.00),(AngleBetweenPoints(m,l)-90.00))
        set u = CreateUnitAtLoc(GetOwningPlayer(GetSummoningUnit()),'u006',n,GetRandomReal(0,360))
        call RemoveLocation(n)
        call SetUnitAnimation(u,"birth")
        call QueueUnitAnimation(u,"stand")
        call UnitApplyTimedLife(u,'BTLF',(0.00+(I2R(GetUnitAbilityLevelSwapped('A00G',GetSummoningUnit()))*1.25)))
        set i=i+1
    endloop
    call RemoveLocation(l)
    call RemoveLocation(m)
    set l=null
    set m=null
    set n=null
    set u=null
endfunction

//===========================================================================
function InitTrig_Invoke_Icy_Path takes nothing returns nothing
    set gg_trg_Invoke_Icy_Path = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Invoke_Icy_Path, EVENT_PLAYER_UNIT_SUMMON )
    call TriggerAddCondition( gg_trg_Invoke_Icy_Path, Condition( function Trig_Invoke_Icy_Path_Conditions ) )
    call TriggerAddAction( gg_trg_Invoke_Icy_Path, function Trig_Invoke_Icy_Path_Actions )
endfunction
Code:
function Trig_Chaos_Meteor_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A000'        
endfunction

function Chaos_Meteor_Destroy_Trees takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction

function Trig_Chaos_Meteor_Actions takes nothing returns nothing
    local unit v       
    local unit u=GetTriggerUnit()    
    local location l=GetUnitLoc(u)   
    local location m=GetSpellTargetLoc()   
    local location n     
    local location o     
    set o=PolarProjectionBJ(l,250.00,AngleBetweenPoints(l,m))
    call CreateNUnitsAtLocFacingLocBJ(1,'e001',GetOwningPlayer(u),o,m)    
    set v = GetLastCreatedUnit()
    call RemoveLocation(o)
    call UnitApplyTimedLife(v,'BTLF',1.75)
    call SetUnitTimeScalePercent(v,50.00)
    call TriggerSleepAction(1.50)
    set o=PolarProjectionBJ(l,250.00,AngleBetweenPoints(l,m))
    call CreateNUnitsAtLocFacingLocBJ(1,'e000',GetOwningPlayer(u),o,m)    
    set v = GetLastCreatedUnit()
    call RemoveLocation(o)    
    call SetUnitTimeScalePercent(v,50.00)
    call UnitAddAbility(v,'A002') 
    call SetUnitAbilityLevelSwapped('A002',v,GetUnitAbilityLevelSwapped('A000',u))
    call IssueImmediateOrderById(v,852177)
    call UnitApplyTimedLife(v,'BTLF',5.50)
    set o=PolarProjectionBJ(l,1500.00,AngleBetweenPoints(l,m))
    call IssuePointOrderByIdLoc(v,852040,o)
    call RemoveLocation(o)
    loop
        set n=GetUnitLoc(v)
        call EnumDestructablesInCircleBJ(300.00,n,function Chaos_Meteor_Destroy_Trees)
        call DestroyEffect(AddSpellEffectByIdLoc('X001',EFFECT_TYPE_TARGET,n))
        call CreateNUnitsAtLocFacingLocBJ(1,'e002',GetOwningPlayer(u),n,m)        
        call UnitAddAbility(bj_lastCreatedUnit,'A003') 
        call SetUnitAbilityLevelSwapped('A003',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A000',u))
        call IssueImmediateOrderById(bj_lastCreatedUnit,852177)
        call UnitApplyTimedLife(bj_lastCreatedUnit,'BTLF',4.50)
        call TriggerSleepAction(0.40)
        call RemoveLocation(n)
        exitwhen (IsUnitDeadBJ(v))
    endloop
    call RemoveLocation(l)
    call RemoveLocation(m)
    set o=null
    set n=null
    set m=null
    set l=null
    set v=null
    set u=null
endfunction

//===========================================================================
function InitTrig_Chaos_Meteor takes nothing returns nothing
    set gg_trg_Chaos_Meteor = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Chaos_Meteor, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Chaos_Meteor, Condition( function Trig_Chaos_Meteor_Conditions ) )
    call TriggerAddAction( gg_trg_Chaos_Meteor, function Trig_Chaos_Meteor_Actions )
endfunction
Code:
function Trig_Kill_Meteor_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A001'     
endfunction

function Trig_Kill_Meteor_Actions takes nothing returns nothing
    call KillUnit(GetTriggerUnit())
endfunction

//===========================================================================
function InitTrig_Kill_Meteor takes nothing returns nothing
    set gg_trg_Kill_Meteor = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Kill_Meteor, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Kill_Meteor, Condition( function Trig_Kill_Meteor_Conditions ) )
    call TriggerAddAction( gg_trg_Kill_Meteor, function Trig_Kill_Meteor_Actions )
endfunction
Code:
function Trig_Quill_Spray_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A00C' 
endfunction

function Trig_Quill_Spray_Actions takes nothing returns nothing
    call UnitAddAbility(GetTriggerUnit(),'A00E')
    call SetUnitAbilityLevelSwapped('A00E',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A00C',GetTriggerUnit()))
    call UnitAddAbility(GetTriggerUnit(),'A00D')
    call SetUnitAbilityLevelSwapped('A00D',GetTriggerUnit(),GetUnitAbilityLevelSwapped('A00C',GetTriggerUnit()))
    call TriggerSleepAction(6.00)
    call UnitRemoveAbility(GetTriggerUnit(),'A00E')
    call UnitRemoveAbility(GetTriggerUnit(),'A00D')
endfunction

//===========================================================================
function InitTrig_Quill_Spray takes nothing returns nothing
    set gg_trg_Quill_Spray = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Quill_Spray, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Quill_Spray, Condition( function Trig_Quill_Spray_Conditions ) )
    call TriggerAddAction( gg_trg_Quill_Spray, function Trig_Quill_Spray_Actions )
endfunction
 

Attachments

  • Spell Test Map Template - GRASSY.w3x
    60.8 KB · Views: 587

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
1) Please use JASS tags with JASS code.

2) First thing I notices was all the unnecessary BJs, remove these.

Other than that I guess this is fairly decent work, assuming they work (hasn't tried the map out).
 

Romek

Super Moderator
Reaction score
964
I made this spell pack for starters to learn how simple some of dota spells and how are they made... Jass or GUI: GUI, Import difficulty:medium, Leakless: I think so,Description:Invoke Icy Path, Invoke Choas Meteor, Quillspray, Reason: Someday i wish i have 1000 reputation

Put each of those on a new line

Jass or GUI: GUI // Wtf? It's Jass.
Import difficulty:medium
Leakless: I think so
Description:Invoke Icy Path, Invoke Choas Meteor, Quillspray // And what do those do?
Reason: Someday i wish i have 1000 reputation // LOL!
 

Moe94

New Member
Reaction score
9
Fixed

thx 4 pointin these stuff out, fixed em.. and the 1000 rep is a j/k ofc...
 

Preshlen

New Member
Reaction score
0
so, i have a question which i think many people have ,too.
How exacly to include the spell effects(animatios) from the test maps into DotA itself..
I have war3 editor so please just explain in few steps..
ty ;]
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
You have to learn JASS. The obfuscated script in it is very terrible to read. You will have a hard time to inject your spell in it.
You have to edit the widgetized files as well. Pretty much work.
 

Preshlen

New Member
Reaction score
0
i'm not qute sure for "You have to learn JASS.". Manny people have their spell animations different without any sign of knloadges in JASS... But no matter. Thanks anyway. I'll keep trying :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • 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 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