Spellpack Dragon spells

MagnaGuard

Active Member
Reaction score
49
Here are some dragon spells that I made!

Dragon Rage
JASS:
function Trig_Dragon_Rage_ulti_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A000' ) ) then
        return false
    endif
    return true
endfunction

function Trig_Dragon_Rage_ulti_Actions takes nothing returns nothing
    call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl" )
    call PauseUnitBJ( true, gg_unit_H000_0001 )
    call CreateNUnitsAtLocFacingLocBJ( 1, 'h002', Player(0), OffsetLocation(GetUnitLoc(GetTriggerUnit()), -0.01, 0), GetUnitLoc(GetTriggerUnit()) )
    call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
    call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attackground", OffsetLocation(GetUnitLoc(GetTriggerUnit()), 500.00, 0) )
    call CreateNUnitsAtLocFacingLocBJ( 1, 'h002', Player(0), OffsetLocation(GetUnitLoc(GetTriggerUnit()), 0.01, 0), GetUnitLoc(GetTriggerUnit()) )
    call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
    call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl" )
    call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attackground", OffsetLocation(GetUnitLoc(GetTriggerUnit()), 0, 500.00) )
    call CreateNUnitsAtLocFacingLocBJ( 1, 'h002', Player(0), OffsetLocation(GetUnitLoc(GetTriggerUnit()), 0, -0.01), GetUnitLoc(GetTriggerUnit()) )
    call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
    call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attackground", OffsetLocation(GetUnitLoc(GetTriggerUnit()), -500.00, 0.00) )
    call CreateNUnitsAtLocFacingLocBJ( 1, 'h002', Player(0), OffsetLocation(GetUnitLoc(GetTriggerUnit()), 0, 0.01), GetUnitLoc(GetTriggerUnit()) )
    call UnitApplyTimedLifeBJ( 1.50, 'BTLF', GetLastCreatedUnit() )
    call IssuePointOrderLocBJ( GetLastCreatedUnit(), "attackground", OffsetLocation(GetUnitLoc(GetTriggerUnit()), 0.00, -500.00) )
    call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl" )
    call TriggerSleepAction( 1.25 )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 500.00, 0), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 0, 500.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 0, -500.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), -500.00, 0), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 400.00, 200.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 300.00, 300.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 150.00, 450.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), -400.00, 200.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), -300.00, 300.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), -150.00, 450.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), -400.00, -200.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), -300.00, -300.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), -150.00, -450.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 400.00, -200.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 300.00, -300.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 150.00, -450.00), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl" )
    call AddSpecialEffectLocBJ( GetUnitLoc(GetTriggerUnit()), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 200.00, 0.00), "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), -200.00, 0.00), "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 0.00, -200.00), "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetUnitLoc(gg_unit_H000_0001), 0.00, 200.00), "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl" )
    call TriggerSleepAction( 3.00 )
    call PauseUnitBJ( false, gg_unit_H000_0001 )
endfunction

//===========================================================================
function InitTrig_Dragon_Rage_ulti takes nothing returns nothing
    set gg_trg_Dragon_Rage_ulti = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Dragon_Rage_ulti, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Dragon_Rage_ulti, Condition( function Trig_Dragon_Rage_ulti_Conditions ) )
    call TriggerAddAction( gg_trg_Dragon_Rage_ulti, function Trig_Dragon_Rage_ulti_Actions )
endfunction


Dragon Claws
JASS:
function Trig_Dragons_Claw_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A004' ) ) then
        return false
    endif
    return true
endfunction

function Trig_Dragons_Claw_Actions takes nothing returns nothing
    call AddSpecialEffectLocBJ( GetSpellTargetLoc(), "Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 50.00, 0), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), -50.00, 0), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 0, 50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 0, -50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), -50.00, 50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 50.00, -50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), -50.00, -50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 50.00, 50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
endfunction

//===========================================================================
function InitTrig_Dragons_Claw takes nothing returns nothing
    set gg_trg_Dragons_Claw = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Dragons_Claw, EVENT_PLAYER_UNIT_SPELL_CAST )
    call TriggerAddCondition( gg_trg_Dragons_Claw, Condition( function Trig_Dragons_Claw_Conditions ) )
    call TriggerAddAction( gg_trg_Dragons_Claw, function Trig_Dragons_Claw_Actions )
endfunction


Dragon Roar
JASS:
function Trig_Dragon_Roar_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A006' ) ) then
        return false
    endif
    return true
endfunction

function Trig_Dragon_Roar_Func003001 takes nothing returns boolean
    return ( GetUnitAbilityLevelSwapped('A006', gg_unit_H000_0001) == 1 )
endfunction

function Trig_Dragon_Roar_Func004001 takes nothing returns boolean
    return ( GetUnitAbilityLevelSwapped('A006', gg_unit_H000_0001) == 2 )
endfunction

function Trig_Dragon_Roar_Func005001 takes nothing returns boolean
    return ( GetUnitAbilityLevelSwapped('A006', gg_unit_H000_0001) == 3 )
endfunction

function Trig_Dragon_Roar_Actions takes nothing returns nothing
    call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_H000_0001), "Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl" )
    if ( Trig_Dragon_Roar_Func003001() ) then
        call UnitDamageTargetBJ( gg_unit_H000_0001, gg_unit_H000_0001, 40.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
    else
        call DoNothing(  )
    endif
    if ( Trig_Dragon_Roar_Func004001() ) then
        call UnitDamageTargetBJ( gg_unit_H000_0001, gg_unit_H000_0001, 50.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
    else
        call DoNothing(  )
    endif
    if ( Trig_Dragon_Roar_Func005001() ) then
        call UnitDamageTargetBJ( gg_unit_H000_0001, gg_unit_H000_0001, 70.00, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL )
    else
        call DoNothing(  )
    endif
    call AddSpecialEffectLocBJ( GetUnitLoc(gg_unit_H000_0001), "Abilities\\Spells\\Items\\VampiricPotion\\VampPotionCaster.mdl" )
    call DestroyEffectBJ( GetLastCreatedEffectBJ() )
    call AddSpecialEffectLocBJ( GetSpellTargetLoc(), "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl" )
    call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction

//===========================================================================
function InitTrig_Dragon_Roar takes nothing returns nothing
    set gg_trg_Dragon_Roar = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Dragon_Roar, EVENT_PLAYER_UNIT_SPELL_CAST )
    call TriggerAddCondition( gg_trg_Dragon_Roar, Condition( function Trig_Dragon_Roar_Conditions ) )
    call TriggerAddAction( gg_trg_Dragon_Roar, function Trig_Dragon_Roar_Actions )
endfunction

 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Post code and give a little more description. For the screenshots in game hit "Print Screen" key on your keyboard and in your Warcraft folder you will see a Screenshots folder. The images are saved as .tga format and you can upload them in www.imageshack.us or another hosting site. Then edit your post and put the link you recieve in
img*] tags (without * ) or just give the link. If you can't upload the image then it's too big and make it .jpeg format and try again. ;)
 

Trollvottel

never aging title
Reaction score
262
there are thousand of leaks in your triggers o0!! check out some leak-tutorials before posting a spell here. i think a rule for posting something here is to remove all leaks. anyway the AoE spell looks nice
 

NapaHero

Back from the dead...
Reaction score
43
Your trigger should be in GUI. Your trigger there is only converted GUI. And, what the heck, how many BJ's are there?
 

Trollvottel

never aging title
Reaction score
262
it is because he did it in gui and in gui you use bjs :) i think he didnt get how to copy a trigger as text
 

NetherHawk

New Member
Reaction score
26
aww man give the guy a break... haha... but seriously you have to clear leaks and learn how to remove those swaps and bjs. check you the tutorials =D
 

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
use loops, clear leaks and optimize the jass if your going convert it, All you did was make in gui, convert and pasted jass code. keep it in gui if you dont know jass please.
 

NetherHawk

New Member
Reaction score
26
let me give you an example

GetUnitAbilityLevelSwapped('A006', gg_unit_H000_0001) == 3
should be GetUnitAbilityLevel(gg_unit_H000_0001,'A006') == 3

pls dun use pre-placed units on the map. Store them in variables .. At least i think thats what gg_unit_H000_0001 is.

secondly GetUnitLoc leaks alot. Store each location as a variable for example GetUnitLoc(theunit) = l as a variable, if you like an array and then RemoveLocation(l)
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
Tons of leaks and that's not JASS /neither MUI/... Did you just convert it? Why not keep it GUI?
 

Darkchaoself

What is this i dont even
Reaction score
106
I dont know JASS, but i know that
JASS:
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 50.00, 0), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), -50.00, 0), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 0, 50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 0, -50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), -50.00, 50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 50.00, -50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), -50.00, -50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
    call AddSpecialEffectLocBJ( OffsetLocation(GetSpellTargetLoc(), 50.00, 50.00), "Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl" )
endfunction

Can easily be a loop, and you never remove the special effects either.
 

0zaru

Learning vJASS ;)
Reaction score
60
Leaks, really bad jass, preplaced unit use, if i where you i would really fix those spells...

First of all, Don't convert the GUI to ¿JASS? (It isn't jass ... it's just converted GUI).Then Use Triggering unit,or other event responce units. Loop between effects and all. Then Clean leaks.


After that don't convert gui, copy it as text and paste directly.
 

Sim

Forum Administrator
Staff member
Reaction score
534
Please submit these spells in GUI. ;)

Thanks.
 

MagnaGuard

Active Member
Reaction score
49
OoOh. I have just read Daelin's spell help thingy but it's not really what I am looking for. Does anyone know where a "Different" tutorial is? Because everyones been saying remove leaks etc. I found out how to remove leaks but I need to know how to do other stuff, like using 3x less actions.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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