I'm getting into skript and I am just trying to make a simple Cookie Clicker server.
on rightclick holding a cookie:
add {CPC.%player%}+{Event.%player%} to {Cookies.%player%}
Very simple stuff. Btw that code gets made...
on join:
#Stats
if {Cookies.%player%} is not set:
set {Cookies.%player%} to 0
if {CPC.%player%} is not set:
set {CPC.%player%} to 1
if {PRESTIEGE.%player%} is not set:
set {PRESTIEGE.%player%} to 0
if {Event.%player%} is not set:
set {Event.%player%} to 0
Ive also made simple GUI's that can do the following
https://pastebin.com/59V6K3sS
Super long so im not going to put it here.
The GUI's on click then force the player to do the commands which are this. Now this is repeated for each cookie not just the +1 CPC (Cookies Per Click) Ive also tried this with and without the permission.
https://pastebin.com/FF0XB9ju
(I know there is most likely a simpler way to do this but im just learning.)
What my problem is when a player joins and tries to do anything, (Right click the cookie, Click on the Cookies in the GUI to do the command, Right clicking the NPC with the command to open the GUI does work though.) nothing happens. Not even the message that says "You do not have enough cookies works" Ive been asking for help for awhile and have gotten none. If you know how you can help PLEASE lmk. The addons and skript version i have are the following
Addons: Skript, SkBee, skDragon, skUtilities, SKQuery, SkRayFall, Vixio, Skellett, TuSKe
Other plugins: LP, WorldEdit, PlaceHolderAPI, Animatronics, Holograpic Displays, Vault, WorldGuard, Citizens, CustomHeads, Essentials, EssentialsChat, EssentialsSpawn
Skript Version: 2.2-dev36
If you need anymore info lmk also I am new to the forum so I might have formated stuff wrong.
on rightclick holding a cookie:
add {CPC.%player%}+{Event.%player%} to {Cookies.%player%}
Very simple stuff. Btw that code gets made...
on join:
#Stats
if {Cookies.%player%} is not set:
set {Cookies.%player%} to 0
if {CPC.%player%} is not set:
set {CPC.%player%} to 1
if {PRESTIEGE.%player%} is not set:
set {PRESTIEGE.%player%} to 0
if {Event.%player%} is not set:
set {Event.%player%} to 0
Ive also made simple GUI's that can do the following
https://pastebin.com/59V6K3sS
Super long so im not going to put it here.
The GUI's on click then force the player to do the commands which are this. Now this is repeated for each cookie not just the +1 CPC (Cookies Per Click) Ive also tried this with and without the permission.
https://pastebin.com/FF0XB9ju
(I know there is most likely a simpler way to do this but im just learning.)
What my problem is when a player joins and tries to do anything, (Right click the cookie, Click on the Cookies in the GUI to do the command, Right clicking the NPC with the command to open the GUI does work though.) nothing happens. Not even the message that says "You do not have enough cookies works" Ive been asking for help for awhile and have gotten none. If you know how you can help PLEASE lmk. The addons and skript version i have are the following
Addons: Skript, SkBee, skDragon, skUtilities, SKQuery, SkRayFall, Vixio, Skellett, TuSKe
Other plugins: LP, WorldEdit, PlaceHolderAPI, Animatronics, Holograpic Displays, Vault, WorldGuard, Citizens, CustomHeads, Essentials, EssentialsChat, EssentialsSpawn
Skript Version: 2.2-dev36
If you need anymore info lmk also I am new to the forum so I might have formated stuff wrong.