tModLoader Need help with locking items to character names

memeladmega

Official Terrarian
How can I get a character's name in code and use that to change the stats of an item? I know how to make it unusable without the right character name, but how can I make the code GET the name?

EDIT: I'm pretty sure I know how to use it to change stats of an item. I can just use an if statement, and if the character's name isn't right I just nullify the effects of an accessory or make the weapon have extremely slow use time and 1 damage.
 
Last edited:
Back
Top Bottom