#help im tryna make an egg launcher type
1 messages · Page 1 of 1 (latest)
options:
cooldown: 30
range: 30
on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if {zeus.cooldown.%player%} is not set or difference between now and {zeus.cooldown.%player%} >= {@cooldown} seconds:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now
else:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player
AʟᴡᴀʏᴢPʟᴀʏᴢ 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
what is not working
cooldown: 30
range: 30
on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if {zeus.cooldown.%player%} is not set or difference between now and {zeus.cooldown.%player%} >= {@cooldown} seconds:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now
else:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player```
this?
[1;31mon damage of player:[0m
[0;90m # Runs if at least one condition below is true[0m
[1;34m if any:[0m
[0;36m victim is player([0m[0;32m"AlwayzPlayz"[0m[0;36m)[0m
[0;36m victim has permission [0m[0;32m"skript.bypass"[0m
[1;34m then:[0m
[0;33m cancel event[0m
[0;90m # Runs only if every condition below is true[0m
[1;34m if all:[0m
[0;36m [0;32m{punish::%victim%} [0;36mis true[0m
[0;36m victim is player([0;32m"Crebs"[0;36m)[0m
[1;34m then:[0m
[0;33m strike lightning at victim
use the if any example and both will get fixed
if {zeus.cooldown.%player%} < {@cooldown} seconds:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player
else:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now
or you can do this
can u send me me the full working skript
idk where to add it and to remove it
that's not hard
(line 8)
pls try to understand what I did btw
I just reversed the condition and shift the code
You can also just (cooldown ? now) > now:
options:
cooldown: 30
range: 30
on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if difference between now and {zeus.cooldown.%player%} < {@cooldown} seconds:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player
else:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now
this is correct?
cooldown: 30
range: 30
on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if {zeus.cooldown.%player% < {@cooldown} seconds:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player
else:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now```
close the bracket here and ^^
i dmed loads of kids about trading in steal a brainrot
but can u help me
or @manic dagger
and what is line 11
or forgot a : somehwere
what is indentation
say in polish?
or describe
possible also indentation idk until i see but fix indentation first
.# of spaces before a line of code
no, you can fix it yourself.....
i never learn indentation
the error literally tells you what to do
"Expected 12 spaces but found 16"
=> Change (16) to (12)
options:
cooldown: 30
range: 30
on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if {zeus.cooldown.%player% < {@cooldown} seconds:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player
else:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now
work?
cooldown: 30
range: 30
on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if {zeus.cooldown.%player% < {@cooldown} seconds:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player
else:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now```
dude, IDK. https://tryitands.ee and see if you get more errors
format code, dont ping me
how to fix line 11
its probably fixed, was likely related to indentation! go reload and see if you have more errors!
stop pinging please
i am not doing the @
ok
but its so much effort
lol
its one click. Or hold shift as you press reply
is ur profile effect rust
or no
the helmet
or is it other game