Solved Save certain & multiple variables in MySQL

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ConLudi

Member
Jan 23, 2020
43
0
0
45
So I'm going to start my server in Skript MySQL, and in the config I see "pattern: .*", now I need to know how to set multiple variables in the pattern, this is how I would think of it, "pattern: level_., experience_.*" (a comma),

So does anyone have any idea on how to do this?
[doublepost=1592788170,1592717444][/doublepost]Bump
[doublepost=1592851864][/doublepost]Can anyone help?
 
So I'm going to start my server in Skript MySQL, and in the config I see "pattern: .*", now I need to know how to set multiple variables in the pattern, this is how I would think of it, "pattern: level_., experience_.*" (a comma),

So does anyone have any idea on how to do this?
[doublepost=1592788170,1592717444][/doublepost]Bump
[doublepost=1592851864][/doublepost]Can anyone help?
the pattern means which variables will be saved in the datase, so basically ''.*'' means everything, all variables will be saved.
You need to change it to ur own liking, so if you wanna save some variables, then use the prefix ''db_'' in your variables and set the pattern in the skript config to db_.*, so all variables that starts with ''db_'' will be affected.

sorry for my english btw

Code:
# config
type: MySQL
pattern: db_.*

Code:
# skript example
on join:
    set {playername} to player
    set {db_playername} to player # <- this will be saved in database
    stop
 
Status
Not open for further replies.