#Stop Casting WA with Nameplate Spell Casting

17 messages · Page 1 of 1 (latest)

patent hatch
#

I wrote a Quaking WA with some help of you guys. https://wago.io/bkzdHpcF4 It works with some custom Trigger. I want to do a similar WA for Enemy Cast that would interrupt my cast. But when I just simply change the trigger from Aura (Buff/Debuff) -> Player -> Debuff -> Quaking ID to Player / Unit Info -> Spellcasting -> Nameplate -> Spell ID I want to track. It does not work anymore.

Custom Trigger Code:

  
  local v1 = WeakAuras.GetTriggerStateForTrigger(aura_env.id, 1)[""]
  local v2 = WeakAuras.GetTriggerStateForTrigger(aura_env.id, 2)[""]
  
  
  if v1 and v2 then
    local cast = v1.expirationTime - GetTime()
    local quake = v2.expirationTime - GetTime()
    if cast > quake then  
      return true
    else
      return false  
    end
  end
end```

Simple Quaking WA - displaying a Text "Stop Casting" and plays a sound when you Cast will be interrtupted and

next jewel
#

Nameplate unittype means the trigger clones so "" is no longer something you can assume

patent hatch
#

So I just have to delete "" ? Or what does that mean ? 🙂

next jewel
#

"" is the clone ID that WA uses for non-cloning trigger states

patent hatch
#

So I have to put in 1 ? So i get the first Index ?

next jewel
#

Nope. You need to never assume.

#

!VDT

arctic mauveBOT
next jewel
#

View the tables directly and see with your own eyes what you have.

#

The "" thing is a bit of a gotcha because it looks blank in VDT so isn't intuitive to know what's going on

patent hatch
#

huh okay

next jewel
#

!starterkit

arctic mauveBOT
next jewel
#

if this wasn't linked before.

#

Getting things like VDT and Bugsack in place before starting code stuff is importnat

patent hatch
#

^^ thought it was ez, cause it didnt seemed complicated ^^

next jewel
#

Sure but if you're gonna do this stuff then you need to know how to gather the info you need