#No status effects applying as AEs is

1 messages · Page 1 of 1 (latest)

rocky edge
#

assuming this is true (idk either way), how do I then modify which key the effect uses based on the status applied?

polar charm
rocky edge
#

I don't want to tweak which statusEffects are available, I want to apply ActiveEffects when a statusEffect is added. is that still CONFIG.statusEffects?

polar charm
#

Uh, I need to get home and look specifically before I can check, but that might be the case

polar charm
#

Yeah, looking into it, the status effects from right-click menu are just AEs that are being added to the document

rocky edge
#

I still think that's a system feature, not core. again, the system I'm working on (star wars FFG) doesn't generate any logs to indicate that and 5e does. do you have any way I can check that?

polar charm
#

I mean, I'm literally looking at TokenDocument.toggleActiveEffect in 10.291's source code. This isn't an "I'm seeing it in the one system I'm looking at" thing, I'm literally looking at core's sourcecode when I'm saying that

rocky edge
#

any idea why in the world I don't see it happening? do I have to configure statuses specially somehow?

#

(sorry, not trying to be difficult :|)

polar charm
#

No, I understand. I'm not 100% sure why it wouldn't just be working as-expected.

How is the system defining those status effects exactly?

rocky edge
#

I don't think it is, currently

polar charm
#

So, you right-click a token, go to the middle icon on the right, expand it to see the statuses and click one. What happens exactly?

rocky edge
#

but here's the status list

polar charm
#

If you inspect the actor's data, does it show the AEs or not?

#

_token.document.actor.effects in the console with the token selected should have that

rocky edge
#

O.O it does have two

polar charm
#

Yeah, I just installed the system myself to test it, I'm definitely seeing the AE like expected

rocky edge
#

okay, is there some way for me to customize which changes are on that effect?

polar charm
#

What do you mean "which changes"? Core just has an icon there

rocky edge
#

I mean the changes are blank on that effect

polar charm
#

Editing CONFIG.statusEffects should handle that, I think.

Core just searches that list to find one with the matching ID and pulls it out to apply it on the token

rocky edge
#

do you know of a system doing that? so I can go and look at code

#

5e seemed to create empty effects as well

polar charm
#

Uh, core is literally just going CONFIG.statusEffects.find(e => e.id === img.dataset.statusId) and pulling the appropriate raw object out to stick on the actor, and the toggleActiveEffect localizes the label and adds the flags.core.statusId. If you stick stuff in that CONFIG object, it should get propagated right along down to the ActiveEffect.create()

rocky edge
#

OH I see

#

thank you, and sorry for the derping