#Rock Paper Scissors Skript
1 messages · Page 1 of 1 (latest)
anyone?
how is that skbee
so anyone wanna help me with this skript?
first things first
thats vanilla guis
not skbee
second
this is a preference but it makes it a lot easier
set {_gui} to chest inventory with 4 rows named "&c&lRock Paper Scissors Games"
instead of doing an annoying and long metadata tag
u can set it to a variable
i never said it was
i can see how it mightve been implied
but i never meant to imply such
probably but doesnt make the skript work
anyone?
?
we can't help you if you don't tell us what's wrong with it
fax
well i never said anything is wrong with it, despite probably half a dozen things
i was just asking for help on making it function and work from what i have
any1
so let me get this straight... nothing is wrong with it, but you want us to make it work
correct!
anyone?
you just said it works
Now he can shut up and i can unfollow this
RUDE
good luck!
As you said, it already works
If something isnt working properly then it does not work
id say working and working properly are two different things
so anyone
you still haven't specified what it is exactly you need help with

bro he already sent his code 💀
send an emote that says "scroll up"
alright ill specify whats wrong with an updated version on the code;
first the code:
second; firstly, the RPS metadata gui, as it displays one game within all of the slots
secondly, the function. theres thirteen errors
line 40, line 41, line 43, line 45, line 47, line 49, line 51 with "cant compare variable with a text"
line 53 and line 54 with metadata values cant be set to anything, probably because i set it to of {_p1} and {_p2}
line 55 because it cant understand the condition, probably for the same reason as the last two lines
line 58, line 73 and line 88 not understand the condition
in lines 41 to 54, you just need uuid of {_p1} or {_p1}'s uuid, no need for the extra two %
in your case, change {RPSChoice::%%{_p1}%'s uuid%} to {RPSChoice::%{_p1}'s uuid%}
And, change {RPSChoice::%%{_p2}%'s uuid%} to {RPSChoice::%{_p2}'s uuid%}
for line 40, you need a bit more info: set slot 10 of ((metadata tag "Taco" of {_p1}) and (metadata tag "Taco" of {_p2})) to stone named "Some fun stone"
line 55: (metadata tag "RPSBattle" of player)
There is no player in a function
line 58: probably because you are checking if the variable is the item paper, not the text "paper"
updated version:
only 7 errors
line 40 still says it cant understand the condition
line 53 and line 54 still cant be set to anything
line 55 doesnt understand the condition
line 58, line 73 and line 88, i am trying to check for the item, not the text
why, tho. you set it to be a string at first, but then convert it to an item. That isn't necessary until you put the items in the gui.
line 40: you have an extra space after set slot; if that still doesn't fix the issue, then you'll have to put both metadata on separate lines
line 53 & 54: same as 40 (you may have to split the line into two)
line 55: There is STILL no player in a function; the only players that can be used there are {_p1} and {_p2}
i already put them in?
40 worked, hard to make two lines for it instead of 1
ill resend it because the lines show smth different than what i originally said
line 54 and line 55 cant be set to anything
line 56 cant understand the condition
and the rest are what i said here
anyone?
anyone?
lol
wat
anyone
anyone
anyone at all??
anyone what
good question
help with the skript?
understandable
cant help you with that
then why answer
xd
so anyone able to help?
anyone?
idk settings the slot of two players and once seems kinda weird, have you tried setting them for both players individually?
56 same thing
i havent but ill try
alr well that worked
still have problems with the other ones
aka this
what this man said
if you want to keep it that way you have it rn, maybe try if type of {RPSChoice::%%{_p1}%'s uuid%} is paper: instead
ill try that but making it a type is weird
not really...
26.03 01:42:34 [Server] INFO Can't understand this condition: 'type of {RPSChoice::%%{_p1}%'s uuid%} is paper'
26.03 01:42:34 [Server] INFO Line: if type of {RPSChoice::%%{_p1}%'s uuid%} is paper:
26.03 01:42:34 [Server] INFO Line 77: (elijah.sk)
26.03 01:42:34 [Server] INFO Can't understand this condition: 'type of {RPSChoice::%%{_p1}%'s uuid%} is stone'
26.03 01:42:34 [Server] INFO Line: if type of {RPSChoice::%%{_p1}%'s uuid%} is stone:
26.03 01:42:34 [Server] INFO Line 92: (elijah.sk)
26.03 01:42:34 [Server] INFO Can't understand this condition: 'type of {RPSChoice::%%{_p1}%'s uuid%} is diamond sword'
26.03 01:42:34 [Server] INFO Line: if type of {RPSChoice::%%{_p1}%'s uuid%} is diamond sword:```
literally just do this
if {RPSChoice::%{_p1}'s uuid%} is "paper":
set {RPSChoice::%{_p1}'s uuid%} to paper named "&6Paper"
if {RPSChoice::%{_p1}'s uuid%} is "rock":
set {RPSChoice::%{_p1}'s uuid%} to stone named "&6Rock"
if {RPSChoice::%{_p1}'s uuid%} is "scissors":
set {RPSChoice::%{_p1}'s uuid%} to diamond sword named "&6Scissors"
if {RPSChoice::%{_p2}'s uuid%} is "paper":
set {RPSChoice::%{_p2}'s uuid%} to paper named "&6Paper"
if {RPSChoice::%{_p2}'s uuid%} is "rock":
set {RPSChoice::%{_p2}'s uuid%} to stone named "&6Rock"
if {RPSChoice::%{_p2}'s uuid%} is "scissors":
instead of setting RPSChoice here, make another variable like RPSItem
for the gui
wait no thats not even the problem
why is it {RPSChoice::%%{_p1}%'s uuid%} instead of {RPSChoice::%{_p1}'s uuid%}
idk ill change it
alright that worked. leads to two final errors in each section
add {_amount} to %{_p2}%'s balance```
do i need to remove the percentage signs
or
percentage signs have nothing to do with functions
ok
set slot 13 of metadata tag "RPS" of player to barrier named "&cNo games found!" with lore "", "&fThere are no active RPS games.", "&fStart one now!"
else:
set slot (integers between 0 and 26) of metadata tag "RPS" of player to {RPSActive::*}``` ```set {RPSActive::*} to paper named "&b%player%'s RPS Game" with lore "&6%{RPSAmount::%player's uuid%}%"```
how do i make this work properly?
basically like a menu option with the games
what is rps active supposed to be
well it sets the games
can you send me the full menu code?
aliases: /rps
permission: op
trigger:
if arg-1 is not set:
set metadata tag "RPS" of player to chest inventory with 4 rows named "&c&lRock Paper Scissors Games"
set slot (integers between 27 to 35) of metadata tag "RPS" of player to gray stained glass pane named "&0"
if {RPSActive::*} is empty:
set slot 13 of metadata tag "RPS" of player to barrier named "&cNo games found!" with lore "", "&fThere are no active RPS games.", "&fStart one now!"
else:
set slot (integers between 0 and 26) of metadata tag "RPS" of player to {RPSActive::*}
set slot 30 of metadata tag "RPS" of player to paper named "&c&lPrevious Page" with lore "&7Click to go to the previous page."
set slot 31 of metadata tag "RPS" of player to book named "&6&l&nSTATISTICS" with lore "", "&fHere you can view your statistics from all your RPS games.", "", "&ePlayer: &f%player%", "", "&eWins: &f%{RPSWins::%player%}%", "&eLosses: &f%{RPSLosses::%player%}%", "&eProfit: &f%{RPSProfit::%player%}%", "&eWin Percentage: &f%{RPSWP::%player%}%"
set slot 32 of metadata tag "RPS" of player to paper named "&2&lNext Page" with lore "&7Click to go to the next page."
set slot 35 of metadata tag "RPS" of player to nether star named "&a&lCreate Game" with lore "&7Click here to create a new game!"
open (metadata tag "RPS" of player) to player```
what's the purpose of arg-1
ah
set {_value} to 1
set {RPSText::%player's uuid%} to {_value}
send "&b&l[RPS] &eRock, Paper or Scissors?" to player
if arg-1 is not "Rock", "Paper" or "Scissors":
send "&b&l[RPS] &6Invalid choice!"
stop```
so what doesnt work?
they're all 1 game
so you want rps active to store all the games, and when you open the gui, slots 0-26 are filled with the games?
yes
alr, so one way to do this would be to loop {RPSActive::*} and set the slots with the loop-index
set slot (integers between 0 and 26) of metadata tag "RPS" of player to loop-index
like that?
loop {RPSActive::*}:
set slot (integers between 0 and 26) of metadata tag "RPS" of player to loop-index```
now you do
you're still setting all the slots
how do i not do that?
use some logic, set the slot of the loop-index
i have zero logic when it comes to coding
do you know what the loop-index means?
i assume number value in loop?
hold up it might be loop-number, can you tell me what broadcasting loop-index gives?
im pretty sure thatd be an endless loop if i broadcasted it
26.03 02:37:08 [Server] INFO Can't understand this condition/effect: set slot (loop-index - 1) of metadata tag "RPS" of player to loop-value
26.03 02:37:08 [Server] INFO Line: set slot (loop-index - 1) of metadata tag "RPS" of player to loop-value```
(loop-index) - 1 ?
26.03 02:38:50 [Server] INFO Line: set slot (loop-index) - 1 of metadata tag "RPS" of player to loop-value```
lmfao
lol just set a variable to the loop-index then subtract it
idk why you cant just do stuff with loop-index
no errors, but wont show anything
however that might be understandable
set {RPSActive::*} to paper named "&b%player%'s RPS Game" with lore "&6%{RPSAmount::%player's uuid%}%"
as here im setting it to *
broadcast {_index} - 1
26.03 02:45:38 [Server] INFO The 1st argument given to the function 'sum' is not of the required type number. Check the correct order of the arguments and put lists into parentheses if appropriate (e.g. 'give(player, (iron ore and gold ore))'). Please note that storing the value in a variable and then using that variable as parameter will suppress this error, but it still won't work.```
weird
set {_test} to loop-index parsed as integer and set index to test - 1
broadcast both
well i didnt broadcast both
but it worked
0 for index
still not showing the piece of paper though
which i still think is this issue; set {RPSActive::*} to paper named "&b%player%'s RPS Game" with lore "&6%{RPSAmount::%player's uuid%}%"
broadcast the loop-value
piece of paper named &bElijahJunaid's RPS Game
set {RPSActive::((loop-index) +1)} to paper named "&b%player%'s RPS Game" with lore "&6%{RPSAmount::%player's uuid%}%"```
would that work
that doesnt set the slot
whats the point if it doesnt set the slot
because if i repeatedly do this, itll only set ONE no matter what
well try it
doesnt set any block, not even line 8, which is before the loop
sorry, I'm not going to debug and write your code for you, good luck though
great:)
people arent here to write your skripts
im aware, you think im here for that? im looking for help and ive run into many errors.
if you dont want to help, i completely understand.
amazing
shut
for anyone who wants to help, my current problem is, well uh, the gui and the setting of the variable located here
anyone
yes
anyone
I have hereby taken the responsibility to inform you, that you won’t get any help. The way you act from the start, is so annoying and selfish that I don’t think that anyone would ever help you.
Regretfully, I would have to agree with this statement.
very understandable /j
dont understand at all tho
i was simply stating points
this isn't a server to ask people to straight up do something for you it's for if something isn't working and you can't fix it so they can help you. So if there's an error you don't understand then you ask for help, not if something is not finished and you want someone to help you finish it.
yes how i came off was regrettable, i shouldve tried myself at first
then i did
and i stumbled upon errors
many