Problem when trying to independently store information on an entity with a separate entity being the trigger
I wanted to make a skill that adds a counter ON the targeted mob that stores all damage taken in a 10 second window and then re-applies it to the them.
The stored damage would be displayed via a onTick skill from an aura that displays an hologram above the mob with the real time value by using variable/score placeholders.
I tried using variables, setting a variable with the TARGET scope on the mob via a @target skill, but when I use the <target.var.(variable)> placeholder to display the value of the variable on that mob, this error occurs in the console
[12:08:03 ERROR]: [MythicMobs] Failed to process placeholder <target.var.eclipsedstoreddamage> in xPlaceholderString{'<target.var.eclipsedstoreddamage>'} [12:08:03 ERROR]: [MythicMobs] Cannot invoke "io.lumine.mythic.api.adapters.AbstractEntity.getName()" because "entity" is null (java.lang.NullPointerException)
I then tried using the <caster.var.(variable)> placeholder but it tries to get the variable from ME who executed the skill
I also tried using score instead of variables but the same issue occurs. I think it's because aura skills are treated like they are casted by the inflictor of the aura and not the mob afflicted with the aura(?)
From my testing, the actual saving of information works, for example if I do a skill with this:
- settargetscore{objective=eclipsedstoreddamage;value=10} @target
and then at the end of an aura, I execute a skill like this:
- damage{a=<target.score.eclipsedstoreddamage>}
The mob will be damaged by the score (or variable) amount because I guess the inherent target of the skill is @target (it still shows that error in the console though). However, interacting in any other way with this information (like modifying the score or variable values or displaying the amounts in a hologram via the onTick skill of an aura) is literally impossible because none of these variable/score placeholders seem to interact with auras or independent storing of information on an entity triggered by a third party entity.
Am I using the wrong mechanics for the task? Or is this a problem that needs fixing?