Solved RPG Player stats

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

Idiosyncratic

Member
Feb 21, 2017
62
0
0
USA
I know it's possible to make RPG stats and stat leveling on a vanilla level up with Skript, I just have no idea where to begin. Could someone help?
 
I know it's possible to make RPG stats and stat leveling on a vanilla level up with Skript, I just have no idea where to begin. Could someone help?

Can you explain it better ?
Just need more details to help you.
 
Sorry, what I want to make is a system in which there are the following player stats:
Vigor: Multiplies damage by 2, I want the player to start with 5 of this on join
Stamina: Divides damage by an amount I have not figured out yet, I'm still balancing this one
I do have more in mind but I still need to figure out how to make the prerequisites for them. For example; I want a stat called "Spirit" which divides "magic damage" and multiplies your "magic damage."
 
Sorry, what I want to make is a system in which there are the following player stats:
Vigor: Multiplies damage by 2, I want the player to start with 5 of this on join
Stamina: Divides damage by an amount I have not figured out yet, I'm still balancing this one
I do have more in mind but I still need to figure out how to make the prerequisites for them. For example; I want a stat called "Spirit" which divides "magic damage" and multiplies your "magic damage."

That is more like a request , you need to post this in the right place.
 
I apologize, I was unaware there was a request board.
 
I apologize, I was unaware there was a request board.

That's an easy and small example:
code_language.skript:
on join:
    if {rpgstats::vigor::%player's uuid%} isn't set:
        set {rpgstats::vigor::%player's uuid%} to 5

on damage:
    attacker is a player
    if {rpgstats::vigor::%attacker's uuid%} is greater than 0:
        remove 1 from {rpgstats::vigor::%attacker's uuid%}
        set damage to damage*2
 
I sort of figured it out on my own and didn't see this before posting my next thread, so I will try this and see if it works better than what I already have, (Which it probably will, considering my knowledge and experience with skript,) thank you for your help!

Edit:
It worked, but because of a miscommunication on my part, it didn't do what I hoped. Thanks anyway for your help and patience. I am glad to have learned a few things from your help!
 
Last edited by a moderator:
Status
Not open for further replies.