Need Help


New Member
Can you find out what's wrong with my trigger ? I'm using Vexorian's CS. All this trigger does when I cast the spell is show a message "cast". The other codes won't work. Please help. Thanks.

function Trig_SpellSurge_Conditions takes nothing returns boolean
    return  GetSpellAbilityId() == 'A00C' 

function Trig_SpellSurge_Actions takes nothing returns nothing

 local location loc = GetSpellTargetLoc()
 local unit     u   = GetTriggerUnit()
 local integer dopt
    set dopt = DamageTypes(ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC) + DontDamageSelf() 
 call AddAreaDamagerForUnitLoc(u, "Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl", "Abilities\\Spells\\NightElf\\FaerieDragonInvis\\FaerieDragon_Invis.mdl", "overhead", loc, 200. , 0.02, 0.02, 325., false, dopt)
 call PolledWait(0.5)
 call RemoveLocation(loc)
 call BJDebugMsg("cast")
 set loc=null
 set u=null

function InitTrig_SpellSurge takes nothing returns nothing
    local trigger gg_trg_SpellSurge = CreateTrigger(  )
    local integer int = 0
        exitwhen int == bj_MAX_PLAYERS
        call TriggerRegisterPlayerUnitEvent(gg_trg_SpellSurge,Player(int),EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
        set int = int + 1
    call TriggerAddCondition( gg_trg_SpellSurge, Condition( function Trig_SpellSurge_Conditions ) )
    call TriggerAddAction( gg_trg_SpellSurge, function Trig_SpellSurge_Actions )
    set gg_trg_SpellSurge = null


You can change this now in User CP.
to define a problem you must first say what's the problem, we are not guru's here.
that dopt sounds somehow troublesome
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Jesus4Lyf Jesus4Lyf:
    Not quite FAANG, less pay for a less hours/stress. Yeah, game dev as a hobby.
  • jonas jonas:
    makes sense. Do we have a hobby game dev subforum to showcase some work?
  • Blackveiled Blackveiled:
    Happy Thursday
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
  • The Helper The Helper:
    hey tom_mai please do not archive anymore news
  • Ghan Ghan:
    AMD Ryzen 7000 next week :D
  • The Helper The Helper:
  • tom_mai78101 tom_mai78101:
    "hey tom_mai please do not archive anymore news" ----> Got it. What should we do with the "News Archive" subforum?
  • The Helper The Helper:
    I think leave it for real old news that cannot be sorted the reason we had it in the first place was a server issue that we do not have anymore. I don't want to get rid of the archive just not put anything in it for now until we figure it out more
  • The Helper The Helper:
    The side chat has nothing on the discord. it is not possible but the biggest thing on my wish list right now is a sidechat channel on the disord that hooks up to this...
  • Ghan Ghan:
    I've been selected for the Diablo IV beta.
  • Ghan Ghan:
  • The Helper The Helper:
    that is so cool
    Eh just noticed the new discord section on the side. Looks great!
  • Blackveiled Blackveiled:
    :( feels bad I can't ever get selected for any beta I sign up for. It's annoying as heck.
  • The Helper The Helper:
    Hello mgarcia! Happy Monday everyone!
  • The Helper The Helper:
    Happy Tuesday! :)

    The Helper Discord

    Members online

    No members online now.


    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.