#No status effects applying as AEs is
1 messages · Page 1 of 1 (latest)
assuming this is true (idk either way), how do I then modify which key the effect uses based on the status applied?
So, for that stuff, CONFIG.statusEffects might be what you're looking for
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?
Uh, I need to get home and look specifically before I can check, but that might be the case
Yeah, looking into it, the status effects from right-click menu are just AEs that are being added to the document
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?
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
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 :|)
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?
I don't think it is, currently
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?
https://github.com/StarWarsFoundryVTT/StarWarsFFG is the system. I have a bunch of junk logging but this is all that gets logged
but here's the status list
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
O.O it does have two
Yeah, I just installed the system myself to test it, I'm definitely seeing the AE like expected
okay, is there some way for me to customize which changes are on that effect?
What do you mean "which changes"? Core just has an icon there
I mean the changes are blank on that effect
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
do you know of a system doing that? so I can go and look at code
5e seemed to create empty effects as well
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()