#Help me with cancel event!
1 messages · Page 1 of 1 (latest)
lol
Now better?
Now better?
?
helpp
help mee
Jesus be patient
So you don't know?
.
oh
no
elaborate
give more info
but nvm now
that is not even
you haven't indented correctly anyway..
yea-
- Even if that is a condition, it'd need to be indented.
- Use this condition: https://skripthub.net/docs/?id=1152 - AnonymouslyFast#9105
Or, maybe if you send the code, I could give it to you.
send code
Indentation in Skript
In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.
A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:
With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:
what is indent? sorry idk english very well... 😦
it shows you a example
I did what the example said
!indent
Indentation in Skript
In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.
A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:
With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:
every 10 seconds:
if enderdragon is not alive:
spawn enderdragon at location(0, 75, 0, world "world_the_end")
set display name of last spawned ender dragon to "&c&lBOSS"
indent is a lil off
there
every 10 seconds:
set {enderdragon} to a enderdragon
if {enderdragon} is not alive:
spawn {enderdragon} at location(0, 75, 0, world "world_the_end")
set display name of {enderdragon} to "&c&lBOSS"
try that
oh wait
uh
on load:
set {enderdragon} to a enderdragon
every 10 seconds:
if {enderdragon} is not alive:
spawn {enderdragon} at location(0, 75, 0, world "world_the_end")
set display name of {enderdragon} to "&c&lBOSS"
try that
same
send your code
on load:
set {enderdragon} to a enderdragon
if {enderdragonSpawned} is not set:
set {enderdragonSpawned} to false
every 10 seconds:
if {enderdragonSpawned} = false:
set {enderdragonSpawned} to true
spawn {enderdragon} at location(0, 75, 0, world "world_the_end")
set display name of {enderdragon} to "&c&lBOSS"
on death:
if victim is {enderdragon}:
give attacker 1 dragon egg named "&d&lBoss's Egg"
set {enderdragonSpawned} to false
try that
the enderdragon doesnt spawn
try now
uh I dont love you but you're welcome!
!spoonfeed
Spoonfeeding
When helping other players, please refrain from spoon-feeding the information. This is where you give someone the solution without letting them figure it out and learn from their mistakes. It might solve their issue but it won’t allow them to learn how to fix it in the future.
Instead, you should work with them and help them learn to figure out the solution on their own.