Bug Closed · Resolved

Threat Table Placeholders are broken

#5004 opened by Unknown 2 years ago

Unknownreported this bug

Threat table placeholders are broken.

in the mob file tested with

- message{m="<trigger.name> <trigger.threat>"} @trigger ~onDamaged, returns both the player name and the threat value properly.

- message{m="<trigger.name> <trigger.threat>"} @trigger ~onInteract, returns name properly and 0 instead of the real threat value.

and separately tested with

- message{m="<target.name> <target.threat>"} @target ~onDamaged returns player name properly and returns the string "<target.threat>" instead of a number.

- message{m="<target.name> <target.threat>"} @target ~onInteract returns player name properly and returns the string "<target.threat>" instead of a number.

in skill files tested with

adversary_threattest_boss:
    Skills:
        - SudoSkill{s=adversary_threattest_player;setcasterastrigger=true} @target

adversary_threattest_player:
    Skills:
        - SudoSkill{s=adversary_threattest_boss2;setcasterastrigger=true} @trigger

adversary_threattest_boss2:
    Skills:
        - message{m="<trigger.name> <trigger.threat>"} @trigger

to set the player as the trigger this way. Player name returns properly and 0 instead of the real threat value.

Same result with the signal & ~onSignal implementation.

trigger.name and target.name return proper names, but trigger.threat just returns 0 unless used with ~onDamaged. It does not work with ~onInteract, ~onSignal, sudoskill setcasterastrigger option, and possibly others. target.threat returns the string "<target.threat>" instead of a number.

The mythic jar I am using is quite recent, and the server owner has premium.

I want to save the target's threat value to a variable every time the mob casts a skill, but I can't use ~onDamaged for this purpose. Working around this issue has proven itself to be extremely troublesome.

Unknowncommented

I can confirm that both <target.threat> and <trigger.threat> works in the things I have tested. Thank you for the relatively quick fix.

However, while testing, I found out - threat{amount=;mode=multiply} @target does not work as intended. For example, with the amount set to 2, it turns an X amount of threat to X+2X instead of to 2X (180 to 540 instead of 360). The same issue might exist in divide mode as well.

Sign in to join the discussion.