Solved function with multiple values

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

DannyGamerDK

New Member
Jul 13, 2023
9
1
3
I can't get this function to work where i have 2 values

Code:
funktion vagtarmor(kit: string and lore: string):
    if {_kit} is "vagt":
        add 1 Gold helmet of protection 5 and unbreaking 3 named "&2&lVAGT &f&l» HELMET" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory

        add 1 Iron chestplate of protection 5 and unbreaking 3 named "&2&lVAGT &f&l» CHESTPLATE" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory

        add 1 Iron leggings of protection 5 and unbreaking 3 named "&2&lVAGT &f&l» LEGGINGS" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory

        add 1 Diamond boots of protection 5 and unbreaking 3 named "&2&lVAGT &f&l» BOOTS" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory

        add 1 Diamond sword of sharpness 4 and unbreaking 3 named "&2&lVAGT &f&l» SVÆRD" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory

        add 1 stick of knockback 3 named "&2&lVAGT &f&l» STICK" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory

        add 1 bow of power 5 and unbreaking 3 and infinity 1 named "&2&lVAGT &f&l» BOW" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory

        add 1 fishing rod of unbreaking 3 named "&2&lVAGT &f&l» ROD" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory

        add 1 arrow named "&7&lPil" to player's inventory

        add 64 cooked porkchop to player's inventory
 
its function vagtarmor(kit: string, lore: string) and if you are going to return a string or something put at the end of it ":: {type}

example:
function vagtarmor(kit: string, lore: string) :: string