Player's Cursor Help

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

chief pickle

Member
Sep 3, 2025
18
0
1
I'm making a Cards system for my tycoon server and i'm making it so that when the player places flint (retextured to be a gold card) onto a narcher pottery sherd it removes the sherd and allows the placement of the card, however i'm having trouble with this section and in need of help:

# --- Handle placing flint from cursor ---
loop {_slots::*}:
if clicked slot is loop-value:
if player's cursor slot is flint:
set slot loop-value of event-inventory to player's cursor
set player's cursor to air
 
why not check if they click the card and check all available slots for cards loop then replace your card with the empy one? so if looped slot = card slot, card = empty set slot to blah