Bug Closed · Resolved

Color code not working as expected and global variable not working

#3186 opened by Unknown 4 years ago

Unknownreported this bug

Summary

  1. Global variable not working always return UNDEFINED.
  2. Bold color code not reset.

Steps to reproduce

  1. Global variable an example skill like this to see the result
  • setVariable{var=global.Location;value=%worldguard_region_name%;type=STRING}
  • delay 5
  • message{m="<global.var.Location>"} @Self
  1. Bold color code example skill like this to see the result
  • message{m="&a&lSystem &8| &7Look up !"} @Trigger

Current behavior

  1. Always return UNDEFINED
  2. Return "&a&lSystem &8&l| &7&lLook up !"

Intended correct behavior

  1. Return with a message with value have been defined %worldguard_region_name%
  2. Return "&a&lSystem &8| &7Look up !"
Unknowncommented

@macpoopyhead Could u take a look :smile_cat:

Unknowncommented

Don't know why I got pinged but ok...

  1. PAPI placeholders requires a player targeter for it to work.
SomeSkill:
  Skills:
  - setvariable{var=global.test;type=string;value=%some_papi_placeholder%} @NearestPlayer{r=5}
  - message{m="test = <global.var.test>"} @Server
  1. Mythic only supports MiniMessage format. Mythic will still try to convert legacy colour codes to MiniMessage tags but it will not be pretty. I suggest you check out their documentation and their web ui to see what your message/text will look like in game.
Unknowncommented

Oh, I got it thanks to you very much @macpoopyhead

Do you have any idea about OwnerIsOnline condition it keeps spamming this on my console? Maybe could you guys can add a safety check for this one? [Legacy attachment omitted]

Sign in to join the discussion.