#report system gui

1 messages · Page 1 of 1 (latest)

maiden granite
#

okay you need to break down what you want the report to look like in the gui

#

also do you use skript-gui or vanilla gui?

outer topaz
outer topaz
maiden granite
#

okay good

#

so item would be a book

outer topaz
#

yeah

maiden granite
#

name would be report with the report number

outer topaz
#

yes

#

correct

maiden granite
#

the info you can get by setting some variables when the report is created

#

you would start by looping the reports list

#
  trigger:
    loop {reports::*}:```
outer topaz
#

ye

#
    usage: &c/report <player> <reason>
    trigger:
        set {_reports} to a new chest inventory with 6 row named "&cReports"
        add {report::%player's uuid%} to {reports::*}

command /reports:
    trigger:
        loop {reports::*}:```
maiden granite
#
  trigger:
    open chest inventory named "reports" to player
    loop {reports::*}:``` forgot the gui itself
#
  trigger:
    open chest inventory named "reports" to player
    loop size of {reports::*} times:
      set slot loop-value - 1 to book named "Report ##%loop-value%"```
outer topaz
#

doesnt
open {_reports} to player work

#

but it doesnt open it tho

maiden granite
#

no, {_reports} is a local variable
and it's not an inventory

outer topaz
maiden granite
#

mb

outer topaz
#

do i copy the edited one?

maiden granite
#
  trigger:
    open chest inventory named "reports" to player
    loop size of {reports::*} times:
      set slot loop-value - 1 of player's top inventory to book named "Report ##%loop-value%"```
outer topaz
#

alr

maiden granite
#

I always forget the "of player's top inventory" part after the slot for some reason

outer topaz
#

ye it opened it

#
    usage: &c/report <player> <reason>
    trigger:
        add {report::%player's uuid%} to {reports::*}

command /reports:
    trigger:
        open chest inventory named "reports" to player
        loop size of {reports::*} times:
            set slot loop-value - 1 of player's top inventory to book named "Report ##%loop-value%"```
maiden granite
#

now this should open an inventory with books with numbers and the amount of books should be equal to the amount of reports

outer topaz
#

it doesn't

#

nothing is in reports

maiden granite
#

wdym?

outer topaz
#

i reported myself

#

and nothing goes in /report

#

/reports

#

in the gui

maiden granite
#

well you didn't add anything to it

outer topaz
#

oh yeah i just realized

#

wait

#

u did add a book tho

maiden granite
#

{report::%player's uuid%} isn't set

outer topaz
#

it added that report to the gui tho

maiden granite
#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}

command /reports:
    trigger:
        open chest inventory named "reports" to player
        loop size of {reports::*} times:
            set slot loop-value - 1 of player's top inventory to book named "Report ##%loop-value%"```
outer topaz
#

works

#

thank you bro

#

how can i make it that it will delete it after i right click it?

#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}

command /reports:
    trigger:
        open chest inventory named "reports" to player
        loop size of {reports::*} times:
            set slot loop-value - 1 of player's top inventory to book named "Report ##%loop-value%"

on inventory click:
    if name of event-inventory = "reports":
        event-slot = loop-value:
            set slot loop-value to air```
#

hm

maiden granite
#

that would theoretically work but it would show it again after you open it again because it's not deleted from the list

outer topaz
#

well it gotten errors anywayt

maiden granite
#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}

command /reports:
    trigger:
        open chest inventory named "reports" to player
        loop size of {reports::*} times:
            set slot loop-value - 1 of player's top inventory to book named "Report ##%loop-value%"

on inventory click:
  if clicked inventory's name = "reports":
    set clicked slot to air```
outer topaz
#

oh yeah thats smart

#

works

#

not really

#

it came back

maiden granite
#

I know

outer topaz
#

how can i fix that

maiden granite
#

for right now you could do

#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}

command /reports:
    trigger:
        open chest inventory named "reports" to player
        loop size of {reports::*} times:
          if {reports::%loop-value%} is set:
            set slot loop-value - 1 of player's top inventory to book named "Report ##%loop-value%"

on inventory click:
  if clicked inventory's name = "reports":
    set clicked slot to air
    clear {reports::%clicked slot's index + 1%}```
#

it's not very pretty and will probably leave holes in the GUI after removing reports but I don't have much time, I'll try helping you later

outer topaz
#

it worked anyway too

#

but after ur done do u know how to sort them out?

#

like after u remove report 1, then report 2 will go to the first slot

maiden granite
#

I gotta figure something out for that

#

which also benefits me because when I'm done I can use this for my server for people to put job applications on a gui

outer topaz
#

nice haha

#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}

command /reports:
    trigger:
        open chest inventory named "&cReports" to player
        loop size of {reports::*} times:
            if {reports::%loop-value%} is set:
            set slot loop-value - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-value%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: %arg-1%"

on inventory click:
    if clicked inventory's name = "&cReports":
        set clicked slot to air
        clear {reports::%clicked slot's index + 1%}```
#

they cant see who they got reported by

#

cuz of this

#

how do i fix it

maiden granite
#

like I said I'll help with all that later, you'd have to add some values to the list or another way

outer topaz
#

ill wait

outer topaz
#

@maiden granite u got time, if u don't ignore this

#

so is that a yes

maiden granite
#

I just realized how confusing that was

outer topaz
#

im having a issue i just realized

#

i remove these

#

but when i reopen the inventory

#

it comes back

#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}

command /reports:
    trigger:
        open chest inventory named "&cReports" to player
        loop size of {reports::*} times:
            if {reports::%loop-value%} is set:
            set slot loop-value - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-value%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: "

on inventory click:
    if clicked inventory's name = "&cReports":
        set clicked slot to air
        clear {reports::%clicked slot's index + 1%}```
maiden granite
#

add 2 spaces before the set slot....

#

I don't have time rn tho, I'm at a barber

#

and I gotta do something else this evening so I'm not sure if I can do much else today but we'll see

outer topaz
#

kk

outer topaz
topaz warren
#

btw about the removing part, couldnt u set the slot to air and remove the report from the list

maiden granite
#

that's what we did

topaz warren
#

oh

#

missed that part ig

outer topaz
#

i wanna content arg-1 of /report to the GUI of reports

topaz warren
#

can u send me ur current latest code

#

the entire file

outer topaz
#

alr

#

@topaz warren

    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}

command /reports:
    trigger:
        open chest inventory named "&cReports" to player
        loop size of {reports::*} times:
            if {reports::%loop-value%} is set:
                set slot loop-value - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-value%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: "

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        clear {reports::%clicked slot's index + 1%}```
#

i want "ʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: %arg-1%

#

but it doesnt work

#

cuz /reports doesnt have arg-1

#

so i smh need to connect arg-1 of /report to the gui

topaz warren
outer topaz
#

yes

topaz warren
#

reported by would be the player who reports arg1 innit?

outer topaz
#

oh yeah its %player%

topaz warren
#

ye

outer topaz
#

i still need %arg-1% too

#

for player reported

topaz warren
#

%arg-1% doesnt work?

outer topaz
#

why would it

#

/reports doesnt have any arguments

#

look

#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}

command /reports:
    trigger:
        open chest inventory with 6 rows named "&cReports" to player
        loop size of {reports::*} times:
            if {reports::%loop-value%} is set:
                set slot loop-value - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-value%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: %player%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: %arg-1%"

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        clear {reports::%clicked slot's index + 1%}```
topaz warren
outer topaz
#

??

topaz warren
#

the command has 2 args

outer topaz
#

what u mean

topaz warren
#

offlineplayer and text

outer topaz
#

/reports has no arguments

topaz warren
#

oh that one

outer topaz
#

/report is not what were talking about 🙏

#

that is already good

topaz warren
#

wait so ur tryna get the arg1 from /report to put it in /reports

outer topaz
#

ye

topaz warren
#

thats easy just set arg1 of that to a var

outer topaz
#

idk how tho man

topaz warren
#

set {arg1} to %arg-1%

topaz warren
outer topaz
#

where do i type thiks

#

alr

topaz warren
#

actually

#

nvm

outer topaz
#

?

topaz warren
#

nothing

outer topaz
#

works

#

just had to add "%arg-1%"

topaz warren
#

awesome

outer topaz
#

ur so smart frf

#

thank u bro

#

🙏

topaz warren
#

np

outer topaz
topaz warren
outer topaz
#

yessir

#

but i still

#

gotta do something else

topaz warren
#

what u got

outer topaz
#

lemme show u

#

so

#

u see

#

report 4

#

is gone

topaz warren
#

why

outer topaz
#

cuz i deleted it

#

but i want report 5 to go to report 4 slot

#

so it looks more organized

topaz warren
#

try reopening the gui rq

outer topaz
#

ye it stays

topaz warren
#

huh

outer topaz
#

same place

topaz warren
#

did u delete report 4 from the list aswell?

outer topaz
#

do u understand what i mean

topaz warren
#

i do

outer topaz
#

i want it to go here

outer topaz
#

once i remove a report

topaz warren
outer topaz
topaz warren
outer topaz
#

bett

#
    usage: &c/report <player> <reason>
    trigger:
        set {arg-1} to "%arg-1%"
        set {arg-2} to "%arg-2%"
        add arg-2 to {reports::*}
        send "<##F51414>&lREPORT &f→ <##F51414>Your complaint has been sent."
        play sound "entity.experience_orb.pickup" with volume 100 and pitch 1 to player
        

command /reports:
    trigger:
        open chest inventory with 6 rows named "&cReports" to player
        loop size of {reports::*} times:
            if {reports::%loop-value%} is set:
                set slot loop-value - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-value%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: <##F51414>%player%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: <##F51414>%{arg-1}%" and " <##F51414>&l▎ &fʀᴇᴀꜱᴏɴ: <##F51414>%{arg-2}%" and "" and "&8(( &7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇʟᴇᴛᴇ ))"

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        clear {reports::%clicked slot's index + 1%}```
#

gui gotta refresh yk

#

everytime i delete

#

a report

topaz warren
maiden granite
#

probably, the contents of 3 reports, then <none> and then the content of the 5th report

topaz warren
#

i might know why

topaz warren
outer topaz
#

nvm

#

that doesnt work

topaz warren
outer topaz
#

i do know how to broadcast

#

but idk what u mean by brodcasting the report lists

topaz warren
#

broadcast the list then

outer topaz
#

broadcast %{report::*}%?

topaz warren
#

yes..

outer topaz
#

alr

topaz warren
#

Dont forget the quotes

outer topaz
topaz warren
#

yeah.. i saw that coming from a mile away

outer topaz
#

is that bad

topaz warren
#

its {reports::*} not {report::*} mate

outer topaz
#

oh shi

#

these are only hacking

maiden granite
#

I think remove and clear do the same thing

outer topaz
#

delete and clear are the same

#

i think so

#

remove is not a thing

topaz warren
#

i dont get it, why are you adding arg-2 to list

outer topaz
#

according to my skript

maiden granite
#

yeah meant delete

outer topaz
#

text

maiden granite
#

also the problem here is that skript doesn't automatically organizes lists, I know a way to fix this I think

topaz warren
#

oh ur not actually using the list contents for anything, just for counting

outer topaz
topaz warren
topaz warren
outer topaz
#

ooh

#

yeah that list

maiden granite
#

if you read the code you get why this happens

#

I already told Mike that this would happen but that I had to go earlier

#

can you send the newest version?

outer topaz
#

alr

#
    usage: &c/report <player> <reason>
    trigger:
        set {arg-1} to "%arg-1%"
        set {arg-2} to "%arg-2%"
        add arg-2 to {reports::*}
        send "<##F51414>&lREPORT &f→ <##F51414>Your complaint has been sent."
        play sound "entity.experience_orb.pickup" with volume 100 and pitch 1 to player
        

command /reports:
    trigger:
        open chest inventory with 6 rows named "&cReports" to player
        loop size of {reports::*} times:
            if {reports::%loop-value%} is set:
                set slot loop-value - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-value%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: <##F51414>%player%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: <##F51414>%{arg-1}%" and " <##F51414>&l▎ &fʀᴇᴀꜱᴏɴ: <##F51414>%{arg-2}%" and "" and "&8(( &7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇʟᴇᴛᴇ ))"

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        clear {reports::%clicked slot's index + 1%}

command /reportbroadcast:
    trigger:
        broadcast "%{reports::*}%"```
topaz warren
maiden granite
#

and it does

#

but updated means set to nothing in this case

outer topaz
#

the gui reloads everytime u open it

#

but the slots dont change

#

they dont move

topaz warren
#

if it does, they it should sort it since the number changed from 5 to 4

maiden granite
#

no, the number never changed

#

that's what I'm trying to say

topaz warren
topaz warren
maiden granite
#

not really

#

it stays at 5

outer topaz
topaz warren
#

none of the contents say none

maiden granite
#

if you have a list {numbers::*} with the contents 1, 2, 3, 4 and 5 in order and you would delete {numbers::4} the contents of the list are 1, 2, 3, <none> and 5

#

so {numbers::4} would be <none>

topaz warren
#

but the list doesn't show none

maiden granite
#
    usage: &c/report <player> <reason>
    trigger:
        set {arg-1} to "%arg-1%"
        set {arg-2} to "%arg-2%"
        add arg-2 to {reports::*}
        send "<##F51414>&lREPORT &f→ <##F51414>Your complaint has been sent."
        play sound "entity.experience_orb.pickup" with volume 100 and pitch 1 to player
        

command /reports:
    trigger:
        open chest inventory with 6 rows named "&cReports" to player
        loop {reports::*}:
                set slot loop-counter - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-counter%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: <##F51414>%player%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: <##F51414>%{arg-1}%" and " <##F51414>&l▎ &fʀᴇᴀꜱᴏɴ: <##F51414>%loop-value%" and "" and "&8(( &7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇʟᴇᴛᴇ ))"

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        clear {reports::%clicked slot's index + 1%}

command /reportbroadcast:
    trigger:
        broadcast "%{reports::*}%"```
#

this won't let you delete anything but just try it for the gui

outer topaz
#

alr ima try this

maiden granite
#

also what is setting {arg-1} and {arg-2} supposed to do?

outer topaz
#

arg-1 is the player arg-2 is the text

maiden granite
#

that means it will just be the same for every report

outer topaz
#

no its not

#

arg-2 works

#

idk abt arg-1 tho

maiden granite
#

yes it is

outer topaz
#

lemme try

maiden granite
#

no it doesn't

outer topaz
#

oh yeah

#

ur right

#

everything changed

#

from hacking to cheating

maiden granite
#

but you shouldn't worry about that

outer topaz
#

alr gimme a min

maiden granite
#

k

#

send a ss when you're done

outer topaz
maiden granite
#

what skript version do you have?

outer topaz
#

2.7.3

maiden granite
#

try loop-iteration

#

nvm

#

update your skript version

#

2.8.0+

outer topaz
#

still

#

so

#

will my skripts work

#

if i do it

#

like nothing changes?

maiden granite
#

idk

#

try it

#

you need 2.8.0+ for this to work, at least a way I could think of

outer topaz
#

alr

#

restarting now

maiden granite
#

k

outer topaz
maiden granite
#

(loop-counter) - 1

#

try that

outer topaz
#

on both?

maiden granite
#

both what?

outer topaz
#

nvm

#

works

#

it reloaded

#

lemme see

#

it reloaded

#

but idk if it works cuz i cant delete

outer topaz
#

ik

#
    usage: &c/report <player> <reason>
    trigger:
        set {arg-1} to "%arg-1%"
        set {arg-2} to "%arg-2%"
        add arg-2 to {reports::*}
        send "<##F51414>&lREPORT &f→ <##F51414>Your complaint has been sent."
        play sound "entity.experience_orb.pickup" with volume 100 and pitch 1 to player
        

command /reports:
    trigger:
        open chest inventory with 6 rows named "&cReports" to player
        loop {reports::*}:
            set slot (loop-counter) - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-counter%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: <##F51414>%player%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: <##F51414>%{arg-1}%" and " <##F51414>&l▎ &fʀᴇᴀꜱᴏɴ: <##F51414>%loop-value%" and "" and "&8(( &7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇʟᴇᴛᴇ ))"

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        clear {reports::%clicked slot's index + 1%}

command /reportbroadcast:
    trigger:
        broadcast "%{reports::*}%"```
maiden granite
#

can you send a ss?

outer topaz
#

well everything was sorted out when i opened it

maiden granite
#

works right?

outer topaz
#

ig?

#

ye

maiden granite
#
    usage: &c/report <player> <reason>
    trigger:
        set {arg-1} to "%arg-1%"
        set {arg-2} to "%arg-2%"
        add arg-2 to {reports::*}
        send "<##F51414>&lREPORT &f→ <##F51414>Your complaint has been sent."
        play sound "entity.experience_orb.pickup" with volume 100 and pitch 1 to player
        

command /reports:
    trigger:
        open chest inventory with 6 rows named "&cReports" to player
        loop {reports::*}:
            set slot (loop-counter) - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-counter%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: <##F51414>%player%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: <##F51414>%{arg-1}%" and " <##F51414>&l▎ &fʀᴇᴀꜱᴏɴ: <##F51414>%loop-value%" and "" and "&8(( &7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇʟᴇᴛᴇ ))"

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        loop {reports::*}:
          if loop-counter = clicked slot's index + 1:
            clear {reports::%loop-index%}
            broadcast loop-index

command /reportbroadcast:
    trigger:
        broadcast "%{reports::*}%"```
outer topaz
outer topaz
outer topaz
#

it deleted everything

#

once i deleted 1 report

maiden granite
#

oh

#

I don't get why tho

#

can you try it once more?

outer topaz
#

still

#

when i reopen the gui

#

its all gone

#

oh i see

maiden granite
#

edit

outer topaz
#

ong im stupid

maiden granite
#

yeah that's the problem

outer topaz
#

i edited it wrong bc of the spaces

#

mb

maiden granite
#

wait why don't you just copy it?

outer topaz
#

the spaces were wrong

#

so i edited it

#

sorry man

maiden granite
#

no they were right

outer topaz
#

it works bro

#

it got sorte

maiden granite
#

good

outer topaz
#

sorted

#

thank u bro

#

now about the arg-1 and arg-2

#

oh

#

u fixed it?

maiden granite
#

no

#

only the text

outer topaz
#

ye i see that

#

what we do abt arg-1

maiden granite
#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}
        set {reports::%size of {reports::*}%::1} to arg-1
        set {reports::%size of {reports::*}%::1} to player
        send "<##F51414>&lREPORT &f→ <##F51414>Your complaint has been sent."
        play sound "entity.experience_orb.pickup" with volume 100 and pitch 1 to player
        

command /reports:
    trigger:
        open chest inventory with 6 rows named "&cReports" to player
        loop {reports::*}:
            set slot (loop-counter) - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-counter%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: <##F51414>%{reports::%loop-index%::2}%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: <##F51414>%{reports::%loop-index%::1}%" and " <##F51414>&l▎ &fʀᴇᴀꜱᴏɴ: <##F51414>%loop-value%" and "" and "&8(( &7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇʟᴇᴛᴇ ))"

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        loop {reports::*}:
          if loop-counter = clicked slot's index + 1:
            clear {reports::%loop-index%}

command /reportbroadcast:
    trigger:
        broadcast "%{reports::*}%"```
outer topaz
#

alr

maiden granite
#

1 sec

outer topaz
#

player reported <none>

outer topaz
#

ye

#

it works

#

does the %player% one work?

maiden granite
#

oh

#

it doesn't

outer topaz
#

oh

#

how can we fix it

maiden granite
#

now it works

#

I think

outer topaz
#

im having a issue

maiden granite
#

you should try it with some more people later to guarantee that it works

outer topaz
#

im sending the clip

maiden granite
#

so the last one doesn't delete?

outer topaz
#

uh

maiden granite
#

tf

outer topaz
maiden granite
#

I gtg so I can't help rn

outer topaz
#

alr

#

tommorow?

#

can we continue with this

#

thank you man btw

maiden granite
#

I fixed the "reported by" thing

maiden granite
topaz warren
# outer topaz

my theory is that ur deleting contents from the list so its showing none

maiden granite
#

but because you deleted it it shouldn't show

outer topaz
outer topaz
#

doesnt work tho

#

i tried it

#

reported by none

maiden granite
#

k

outer topaz
#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}
        set {reports::%size of {reports::*}%::1} to arg-1
        set {reports::%size of {reports::*}%::1} to player
        send "<##F51414>&lREPORT &f→ <##F51414>Your complaint has been sent."
        play sound "entity.experience_orb.pickup" with volume 100 and pitch 1 to player
        

command /reports:
    permission: report.reports
    trigger:
        open chest inventory with 6 rows named "&cReports" to player
        loop {reports::*}:
            set slot (loop-counter) - 1 of player's top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-counter%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: <##F51414>%{reports::%loop-index%::2}%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: <##F51414>%{reports::%loop-index%::1}%" and " <##F51414>&l▎ &fʀᴇᴀꜱᴏɴ: <##F51414>%loop-value%" and "" and "&8(( &7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇʟᴇᴛᴇ ))"

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        loop {reports::*}:
            if loop-counter = clicked slot's index + 1:
                clear {reports::%loop-index%}

command /reportbroadcast:
    trigger:
        broadcast "%{reports::*}%"```
indigo wing
#

It removes properly, just close and reopen the GUI window

#
    usage: &c/report <player> <reason>
    trigger:
        add arg-2 to {reports::*}
        set {reports::%size of {reports::*}%::1} to arg-1
        set {reports::%size of {reports::*}%::2} to player
        send "<##F51414>&lREPORT &f→ <##F51414>Your complaint has been sent."
        play sound "entity.experience_orb.pickup" with volume 100 and pitch 1 to player
        

command /reports:
    permission: report.reports
    trigger:
        openReports(player)

on inventory click:
    if clicked inventory's name = "&cReports":
        cancel event
        set clicked slot to air
        loop {reports::*}:
            if loop-counter = clicked slot's index + 1:
                clear {reports::%loop-index%}
                close player's inventory
                openReports(player)
                
function openReports(p: player):
    open chest inventory with 6 rows named "&cReports" to {_p}
    loop {reports::*}:
        set slot (loop-counter) - 1 of {_p}'s top inventory to book named "<##F51414>&lREPORT <##F51414>&l##%loop-counter%" with lore "&8ᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛ" and "" and " <##F51414>&l▎ <##F51414>ɪɴꜰᴏʀᴍᴀᴛɪᴏɴ" and " <##F51414>&l▎ &fʀᴇᴘᴏʀᴛᴇᴅ ʙʏ: <##F51414>%{reports::%loop-counter%::2}%" and " <##F51414>&l▎ &fᴘʟᴀʏᴇʀ ʀᴇᴘᴏʀᴛᴇᴅ: <##F51414>%{reports::%loop-counter%::1}%" and " <##F51414>&l▎ &fʀᴇᴀꜱᴏɴ: <##F51414>%loop-value%" and "" and "&8(( &7ᴄʟɪᴄᴋ ᴛᴏ ᴅᴇʟᴇᴛᴇ ))"


command /reportbroadcast:
    trigger:
        broadcast "%{reports::*}%"```
Simple fix
maiden granite
#

oh I also see that I didn't change the {reports::...::1} to {reports::....::2}

indigo wing
#

I added a function to the current code, which makes it easier to use as well

#

ah, forgot something, gotta pass the player reported arg, one second

#

Fixed the code above.

#

Should work properly

outer topaz
#

thanks

#

did u fix this issue

outer topaz
#

@indigo wing

indigo wing
#

Yes, the code provided here #1222601074351804516 message should work as you want

cloud hearth
#

Why can't I use a plugin? understand, you are not optimizing the script as a plugin

indigo wing
#

Whatcha mean?

cloud hearth
#

why make a script if there is a plugin

indigo wing
#

Because people want customizeable stuff that sometimes isn't available to do in a plugin

#

And then you got people like me that just want to make plugins in skript

#

because we can

cloud hearth
#

but there is a difference between plugins and scripts, you can make the same world edit in a script, but you don’t optimize it in any way as in a plugin

indigo wing
#

You're right, but sometimes plugins have a bunch of convoluted features that are unneeded. You can make something quick and simple in skript without all the unnecessary shit