Rune Skript

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

Normallion5

Member
Nov 19, 2024
11
1
3
15
I have this idea for a rune skript but idk how to do like the abilities

if you type /rune
then it opens a gui with an empty slot which if you put a rune there it will give stats based on what the rune says

some simple stats I want
speed
attack
health
 
Something like this?
Code:
command /Runes:
    trigger:
        set {_runes} to a new chest inventory with 1 row named "Runes"
        set slot 2 of {_runes} to blue dye named "Speed"
        set slot 4 of {_runes} to red dye named "Attack"
        set slot 6 of {_runes} to green dye named "Health"
        open {_runes} to player

on inventory click:
    if name of event-inventory is "Runes":
        cancel event
        if index of event-slot is 2:
            apply potion of speed of tier 2 to player for 10 seconds
        else if index of event-slot is 4:
            apply potion of strength of tier 2 to player for 10 seconds
        else if index of event-slot is 6:
            apply potion of regeneration of tier 1 to player for 10 seconds
        close player's inventory
 
was hoping to do it without effects but I think this might actually be rly good thank you very much!