PlayerPoints Skript Addon

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

Jun 7, 2017
15
0
0
43
Category: Addon

Suggested name: PlayerPointsSK

What I want:
I want a player points addon that you can use skript to take away points/add points etc.

Ideas for commands:
if player has more than or equal to 100 player points
if player has less than 100 player points
subtract 100 player points
add 100 player points
%player/arg-playerpoints%

When I'd like it by: A reasonable time
 
@Killaura_Hacks

https://forums.skunity.com/resources/skuniversal.289/update?update=970
theres only 1 expression but you can do everything you need with it
code_language.skript:
[the] [Player][ ]Point[s] [bal[ance]] of %offlineplayer%
%offlineplayer%'s [Player][ ]Point[s] [bal[ance]]

examples:
code_language.skript:
command /test <offlineplayer>:
    trigger:
        broadcast "%player points balance of arg-1%"

        add 5 to player points of arg-1
        broadcast "%player points balance of arg-1%"

        remove 1 from player points of arg-1
        broadcast "%player points balance of arg-1%"

        set arg-1's player points to 10
        broadcast "%player points balance of arg-1%"
    
        if arg-1's player points is greater than 100:
            broadcast "Wow, that's a lot of points!"

        if arg-1's player points is greater than 5:
            broadcast "You don't have many points!"
 
@Killaura_Hacks

https://forums.skunity.com/resources/skuniversal.289/update?update=970
theres only 1 expression but you can do everything you need with it
code_language.skript:
[the] [Player][ ]Point[s] [bal[ance]] of %offlineplayer%
%offlineplayer%'s [Player][ ]Point[s] [bal[ance]]

examples:
code_language.skript:
command /test <offlineplayer>:
    trigger:
        broadcast "%player points balance of arg-1%"

        add 5 to player points of arg-1
        broadcast "%player points balance of arg-1%"

        remove 1 from player points of arg-1
        broadcast "%player points balance of arg-1%"

        set arg-1's player points to 10
        broadcast "%player points balance of arg-1%"
   
        if arg-1's player points is greater than 100:
            broadcast "Wow, that's a lot of points!"

        if arg-1's player points is greater than 5:
            broadcast "You don't have many points!"
what about the events tho?
 
Is there a event like ''if player has *points*''?
I think this might work.
Code:
# Example
# Untested

command /test [<player>]:
  trigger:
    if {points} is not set:
      set {points} to 0
    else:
      if {points} is <insert specified number here>:
        <your skript>
I have no clue if this will work, I haven't tested it or anything. I just made it off the top of my head, so chances are it won't work lol.