Is getTokenName() borked or is the wiki page for it incorrect?
getTokenName() seems to return the same results as getTokenNames(), but I was expecting something more like getName() going by the wiki. Note its wiki page also refers to mapRef in the parameters, but not in the usage.
#getTokenName() behaviour
1 messages · Page 1 of 1 (latest)
The code has been changed (looks about 5 years ago) that looks to have introduced a bug with how those functions work
Since nobody noticed it in five years let us just delete the function.
Most people probably just use getName... if I use a function and get unexpected results, and there is a simple alternative, I just move to the alternative that works like I expect... assuming that the reason something isn't working is probably because I'm using it wrong, the wiki isn't updated with the correct usage, or MT is just weird sometimes.
It also doesn't help that some bugs won't be fixed because they've, "been around and might break someone's framework".
Does it take a conditions parameter, too?
Yep it does.
[getTokenName(",", json.set("{}", "npc",1))]
<br>
[getTokenNames(",", json.set("{}", "npc",1))]
So basically getTokenName() behaves the same as getTokenNames()