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.
  • tom_mai78101 tom_mai78101:
    Hmm, about the Headline News, I noticed threads are being moved into the subforum (Health News, Environmental News, etc.). When that happens, the TH Forum Home page loses the articles, and instead would show old articles posted 1 or 2 weeks ago.
  • tom_mai78101 tom_mai78101:
    What do we do with the Home page?
  • Ghan Ghan:
    I added those forums to the filter for that widget.
  • tom_mai78101 tom_mai78101:
    Oh nice. They're back. Thanks.
  • tom_mai78101 tom_mai78101:
    Now I think it makes more sense for me to put news in their own subforums, without worry.
  • The Helper The Helper:
    Awesome Ghan thanks! I was purposely not moving the first 15 news articles in Headline news to the different subforums but I guess I don't have to do that now?
  • tom_mai78101 tom_mai78101:
    Question: Is there a way to remove thread redirects? It creates a copy of the moved thread and takes up space, and I am leaning towards wanting to remove them in the Headline News. But if they have an expiration date, I guess I'm fine with it.
  • The Helper The Helper:
    If you move a thread please leave a permanent redirect. You can delete any redirects after 6 months. The redirects are left to help Search Engines find the moved content.
  • tom_mai78101 tom_mai78101:
    What if you move the permanent redirect, not the thread?
  • The Helper The Helper:
    I think that works but I have not messed with it. You can delete redirects though if you have to that will not delete the original thread
  • The Helper The Helper:
    if a redirect ends up in the same forum as the post it goes to though I think the redirect drops or fails or something but they are not bugged out and when you are working on an indirect the original post is safe.
  • The Helper The Helper:
    Happy Early Friday :)
    Happy Friday :)
  • tom_mai78101 tom_mai78101:
    Fun Friday for me
  • tom_mai78101 tom_mai78101:
    Happy Fun Friday to all.
  • The Helper The Helper:
    Happy Sunday everyone!!!
    Happy Sunday!!!
  • jonas jonas:
    Happy monday :p
  • jonas jonas:
    Everyone hates mondays?
  • The Helper The Helper:
    Happy Tuesday!
  • jonas jonas:
    Happy belated tuesday
  • tom_mai78101 tom_mai78101:
    I found out you can't delete nor hide redirect links to existing threads. It will just stay there. I have no choice now but to start moving thread redirects to News Archive.
  • The Helper The Helper:
    That is not the way that it works for me I can delete redirects you just have to hit refresh sometimes big deletes will take a while as long as moves\
  • The Helper The Helper:
    You don't have to do that you can just leave stuff there in headline news for up to a year it was already down to like 8 months there is no rush.

    Staff online

    • Ghan
      Administrator - Servers are fun
    • tom_mai78101
      The Helper Connoisseur / Ex-MineCraft Host

    Members online


    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.