Solved How to make skript "local"?

  • 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 community!

    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.

Troevan

Member
Sep 11, 2022
1
0
1
Any ways to make it so that the skript is only for the player.

(this might be a very stupid question so pls tell me if it is.)

If my {quest} variable is 3, everyone else's quest variable is 3.
same goes for everything else. it's all the same for everyone but i don't want it like that.

my skript is very long but at the start it says this

Code:
variables:
    {jeb} = 0
    {quest} = 0
    {gender} = 0 # 0 = Undefined 1 = Male 2 = Female
    {lalale} = 0
    {meditate} = 0
    {newday} = 0
    {level} = 0
    {bounty} = 0
    {progress} = 0
    {list} = 0
every 250 seconds:
    send "&a-" to all players
    send "" to all players
    send "&cJoin our discord! &rhttps://discord.gg/(nope)" to all players
    send "" to all players
    send "&a-" to all players
every 1 seconds:
    loop all players:
        apply speed 2 to loop-player for 5000 second
        apply jump boost 5 to loop-player for 5000 second
every 15 seconds:
    if {bounty} >= 0:
        set {bounty} to {bounty} - 0.1
    if {bounty} <= 0:
        set {bounty} to 0.1
on death:
    send title "&cDesychronized" to victim
#
#
#
# bounty
on first join:
    send "&cHello there! To start, &aGo to &cMarko's House&f.&aIt's right in front of you!"
    give iron sword named "&9Spear of 1000 Men &6[999]" to player
on item damage:
    cancel event
on drop:
    if event-item is iron sword with name "&9Spear of 1000 Men &6[999]":
        cancel event
        wait 3 ticks
        send "&cThis item is part of your body, you cannot drop it!"
on join:
    apply speed 2 to the player for 50000 second
    apply jump boost 5 to the player for 50000 second
 
Use something like that for assign variable with player:
Code:
on join:
  set {bounty::%uuid of player%} to 0
...

every 15 seconds:
  loop all players:
    If {bounty::%uuid of loop-player%} >= 0:
      remove 0.1 from {bounty::%uuid of loop-player%}
    else:
      set {bounty::%uuid of loop-player%} to 0
 
Status
Not open for further replies.