gui logs

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

Jun 3, 2023
25
1
3
On the command "logs player" it opens a GUI looping all of the entries in {logs::%{uuid::%arg-1%}%} adding one item to the gui with two arrows at the bottom corners being: next page or previous page

How would I do this
 
Creating a GUI like that can be difficult. However, something I have done that'll likely be helpful is figuring out how a leaderboard with a custom currency/stat works. The reason I mention this is because leaderboards use functionality that can be very helpful when storing data in a GUI. It involves looping numerical values and retrieving the data for them from high to low to display for the player when they view either a hologram leaderboard, GUI leaderboard, or within a command. The only issue you'd maybe have and have to figure out how to resolve is checking if a log exists and putting said item you want in a GUI if it does. It could be slightly better to put logs into a custom command rather than a GUI. However, that's just my opinion.
 
Creating a GUI like that can be difficult. However, something I have done that'll likely be helpful is figuring out how a leaderboard with a custom currency/stat works. The reason I mention this is because leaderboards use functionality that can be very helpful when storing data in a GUI. It involves looping numerical values and retrieving the data for them from high to low to display for the player when they view either a hologram leaderboard, GUI leaderboard, or within a command. The only issue you'd maybe have and have to figure out how to resolve is checking if a log exists and putting said item you want in a GUI if it does. It could be slightly better to put logs into a custom command rather than a GUI. However, that's just my opinion.
I don't want a paragraph of a completely different topic. M8 I appreciate the opinion but that 1: explains it, but doesn't do it and 2 is changing the topic to "You COULD" instead of "The solution is"
 
I don't want a paragraph of a completely different topic. M8 I appreciate the opinion but that 1: explains it, but doesn't do it and 2 is changing the topic to "You COULD" instead of "The solution is"
I was simply providing solutions and things to look into when making this kind of thing. It can be pretty complicated code in general which is why I mentioned alternative ways you could store logs in game.