#Combat Log Spell Cast Trigger - Triggers only once on multiple Casts

41 messages · Page 1 of 1 (latest)

dusk ibex
#

Hi Everyone,
I am trying to play around with spell cast trigger.

Q1: (optional) What does the ID means in combat log 1664893004.864 ? What does the .864 mean ?

It seems that when multiple casts have the same ID, they only trigger once :
Exemple below with 5 casts (simultaneous) and only 3 triggers where received (which I believe is due to one per ID)

Q2: How could I change the trigger to trigger 5 times here ?

1664893004.864 SPELL_AURA_APPLIED false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 
1664893004.864 SPELL_CAST_SUCCESS false Player-1335-067B2CB0 Felxdh 1297 0  nil -2147483648 -2147483648 204255 Soul Fragment 1 
1664893004.864 SPELL_AURA_APPLIED_DOSE false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 2 
1664893004.864 SPELL_CAST_SUCCESS false Player-1335-067B2CB0 Felxdh 1297 0  nil -2147483648 -2147483648 204255 Soul Fragment 1 
1664893004.967 SPELL_AURA_APPLIED_DOSE false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 3 
1664893004.967 SPELL_CAST_SUCCESS false Player-1335-067B2CB0 Felxdh 1297 0  nil -2147483648 -2147483648 204255 Soul Fragment 1 
1664893004.967 SPELL_AURA_APPLIED_DOSE false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 4 
1664893004.967 SPELL_CAST_SUCCESS false Player-1335-067B2CB0 Felxdh 1297 0  nil -2147483648 -2147483648 204255 Soul Fragment 1 
1664893005.067 SPELL_AURA_APPLIED_DOSE false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 5 
1664893005.067 SPELL_CAST_SUCCESS false Player-1335-067B2CB0 Felxdh 1297 0  nil -2147483648 -2147483648 204255 Soul Fragment 1 
covert wyvern
dusk ibex
#

Thank you, so multiple events on same timestamp will only trigger once ?

covert wyvern
#

the trigger should trigger for every event but given that they are within ms of eachother i doubt u will notice, what is the end goal?

dusk ibex
#

Simply counting the events. (I am trying to do advanced soul shard prediction before they hit the ground.)

#

Trigger in purple counts any from 1-3 due to the same-testamp issue it seems

#

It definitely triggers only once per timestamp - its this expected behavior for WA ?

covert wyvern
#

how did you determine that to be the case?

#

i would say all of this should be a custom trigger

dusk ibex
#

Yeah

#

That's what i am thinking

#

need to learn some LUA

dusk ibex
covert wyvern
#

but if 2 events have the same timestamp, where are you counting them?

#

!starterkit plenty of information there to get started

ancient vortexBOT
dusk ibex
# covert wyvern but if 2 events have the same timestamp, where are you counting them?

from the log - here is a similar example with spirit bomb consuming shards at the same time

1664894489.949 SPELL_AURA_REMOVED_DOSE false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 4 
1664894489.949 SPELL_AURA_REMOVED_DOSE false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 3 
1664894489.949 SPELL_AURA_REMOVED_DOSE false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 2 
1664894489.949 SPELL_AURA_REMOVED_DOSE false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 1 
1664894489.949 SPELL_AURA_REMOVED false Player-1335-067B2CB0 Felxdh 1297 0 Player-1335-067B2CB0 Felxdh 1297 0 203981 Soul Fragments 1 BUFF 
#

The SPELL_AURA_REMOVED_DOSE triggered only once

#

however all specific number = X also trigerred

covert wyvern
#

yeah so if you have a trigger watching that event, it will trigger and stay triggered for the specified duration
meaning the trigger will trigger for all events but since the timestamp is the same there is no relevant change that you would see

dusk ibex
#

Understood.

#

I will need custom code to look for multiple spell cast inside one event then ?

covert wyvern
#

every event is its own but there is no information changing so you dont see any difference

#
function(event, _,subevent,_,sourceGUID,_,_,_,_,_,_,_,spellID)
  if subevent == "SPELL_AURA_REMOVED_DOSE" and sourceGUID == UnitGUID("player")
  and spellID == 203981 then
    aura_env.count = aura_env.count + 1
    return true
  end
end```
here's a example of what it could look like just counting every event
under ``Actions - On init - Custom`` you would put in ``aura_env.count = 0``
#

!aura_env

ancient vortexBOT
covert wyvern
#

!cleu

ancient vortexBOT
covert wyvern
#

_ is just a throwaway name for stuff you dont need

dusk ibex
#
function(event, ...)
    local subevent = select(2,...)
    local spellid = select(12,...)
    local spellname = select(13,...)
    if subevent == "SPELL_CAST_SUCCESS"  then
    print("Trigger: " .. subevent .. " " .. spellname)
    return true
end    
#

Success

#

Thanks to you

#

Btw how do you format your Lua paste ?

covert wyvern
#

!`

ancient vortexBOT
#

You can format your code to be much more easy to read using Discord "markdown" formatting:
```Lua
--CODE HERE
```
• ` these are "backticks", usually to the left of the 1 key, not apostrophes.
• If in doubt copy paste the above and add your code
• Bonus point available for using syntax highlighting:
◘ Using the name of the language you're using after the backticks provides syntax highlighting.
◘ "Lua" is the language used in WA custom code blocks.