#Creating variables with players

1 messages · Page 1 of 1 (latest)

worthy falcon
#

How do I set victim's name and/or uuid to a variable? I tried set %victim's name% to {_a} and that didn't seem to work... can anybody help me?

warped harbor
#

You're trying to set the victim's name as the variable, not the variable as the victim. You'll want to do set {variable} to victim

#

Also, outside of quotes you don't need percent signs. So victim's name will work the same as %victim's name% and usually the same as "%victim's name%" (assuming %victim's name% is the ONLY thing in the quotes.)

worthy falcon
#

ah ok, thank you so much!