Jump to content
  • 0

Skript: Variables for each player


Parsafari

Question

Hey. I want to make a custom currency for my server using skript and I watched all the minehut tutorials about skript and they said that you can use {example} to make variables but they never mentioned how to make the variable global (like the total balance of the server) or make it private so it's different for every player.

is there a way to make a variable that stores different values for each player?

Indie Game Developer

C# Programmer & Skripter

DiscordEmoji9.gif.405514140552c97439f718020548c0e6.gif

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 2

If you want a per player variable, do it like this. {var::%player's uuid%}. The :: part makes it a list variable. {var.%player's uuid%} also works but it is better to use a list variable. And the %player's uuid% part makes it a per person variable. Even if the user changes their name, the variable won't change because it is by their uuid. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

  • 0
20 hours ago, Coderunner1 said:

how do you like get the variable from the list

 

Please don't reply to posts that haven't been responded to in over a month. I would be locking this thread now, you can start a new thread in case you need some help. Thanks!

 

 200.gif.19df7170946e7fd798cba372080b8d15.gif

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...