#Hunger help me!!!!
1 messages · Page 1 of 1 (latest)
its been one minute calm down.
and my time helping you ill never get back either. why should I bother?
Also for me it is 9:14 I’m currently 7 hours ahead of the us
I don’t have a lot of time
check the docs and try something yourself, theres expressions for LP groups and an effect for setting hunger levels
tomorrow exists

Sireously
then post it here along with the details so people can help you
this is a place to help people learn skript or with their specific problems in coding in skript, not to give you free working code upon request
if someone wants to do that they can go ahead but until they do you can try to do it yourself, or get some help with what you do have
On player respawn:
If player has perm blah blah blah:
Set the player’s food level to 10
That’s wa it showed when I looked it up
Ur okay with the blah blah blah but right
https://skripthub.net/docs/?id=2485
https://skripthub.net/docs/?id=952
https://skripthub.net/docs/?id=1032
these are the expressions/events id think you need to do this
The primary group or all groups of a player. This expression requires Vault and a compatible permissions plugin to be installed.
The food level of a player from 0 to 10. Has several aliases: food/hunger level/meter/bar.
Chase everyone knows wa it is
also on respawn i guess
Do I write that or or just plain set the player's food level to 10
Ik
That didn’t work
That’s wa I tried earlier
Fine lemme try
what was the issue..?
Gimme a minute
if there was an error send it here
It didn’t say issue
do you need help reading syntax
this is script syntax
text in [] are optional and arent required in the syntax usually
text in () are different sets of inputs you can use
like (water|dirt) means you can use water or dirt in that slot of text
and they are just nested inside of eachother so it looks more complex than it is. also %player% should be self explanatory i hope, just remove the percents
So just write the whole thing I am meant to write
thats your part
Like on respawn yadayadayada
if it didnt work and there was no issue when reloading the script
I’m still confused
then send the code here
Send it plsssssssssss
Do I do
On respawn
If the guy has permission line right here too lazy to write it:
Set the player’s food level to 3
bruh
Do I do that
maybe practice writing actual code
Ik I’m lazy
literally just copy and paste it here bro
also,
Wa part of I’m lazy do u not understand
x8ight suggests that you read this embed
Code blocks make it easier for helpers to identify potential errors -- help them help you!
```vb
on chat:
broadcast "This is how you format code!"
```
on chat:
broadcast "This is how you format code!"
On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard
its your own job to test tun your own code
0 errors when reloading?
Yup
It ain’t working
I tried again and again
Whyyyyyyyyyyyyy
Whyyyyyyyyyyy it’s not fair
on respawn:
if player has permission "permission.food":
set food level of player to 3
I activated it for my Lp thingy
Allowed it
Made sure to reload skript
It said no errors
Didn’t work
Ï
—-
Help x8
or maybe 🧇
????
oh wrong tab complete, 
I tab-completed the wrong emoji in discord. Mean to say
not 🧇
It’s just discord makes tab smaller
It was correct indent
Ö
:)(:):(:):(:):(:
Help equals good
debug it, or try waiting a tick after the event
Wa u mean
x8ight suggests that you read this embed
Debugging is the process of finding and fixing bugs/issues/errors within your code. For a more detailed explanation on proper debugging check out sovdee's page
Since you don't see the value of variables it can be easy to assume that everything is working properly even though that might not be the case. Variables and arguments in functions and commands might change throughout your code in unexpected ways. It is a good idea to broadcast your variables at different points in your code to confirm that the value is what you expect it to be.
on chat:
broadcast {chats::%player's uuid%}
add 1 to {chats::%player's uuid%}
broadcast {chats::%player's uuid%}```
In this example we broadcast the variable to check its value before and after we add to it to make sure the value goes up. If the variable was set to a string (`set {chats::%player's uuid%} to "3"`) then we would be able to see that the value did not go up, alerting us of the issue.
If your code does no seem to be doing anything it is a good idea to establish which parts of your code are being executed, especially when using conditions. To accomplish this, add a broadcast after each part of line of your code with a descriptive message.
on right click:
broadcast "player clicked"
if player's tool = iron sword:
broadcast "player's tool was iron sword"
set player's tool to diamond sword```
In this example, we would only see the `player clicked` message if the player was holding an apple, alerting us that the code stopped after the first condition.
an example:
wait 1 tick
#code```
and literally ^
use the wait effect so the server has time to respawn the player, making sure you can apply potion effects, which wont work while they are dead
^