So I made this script:
At first when the lines between the #----- weren't there and loop-player-1 was loop-player everything worked fine.
now with the lines between the #---- nothing works anymore and I have no clue what it is..
don't mind the text btw, it's for rp purposes
code_language.skript:
every second:
loop all players:
if distance between loop-player-1 and {Fura.Spider.Cave.Boss.Encounter} <= 4:
if {Fura.Spider.Cave.Boss.Conversation.timer.%loop-player-1%} is false:
set {Fura.Spider.Cave.Boss.Conversation.timer.%loop-player-1%} to true
#------------------------------------------------------------------------------------------------------
if {Fura.Spider.Cave.Boss.Spawn} is false:
set {Fura.Spider.Cave.Boss.Spawn} to true
spawn a spider at {Fura.Spider.Cave.Boss.Spawn.Location}
wait 1 second
loop all entities in radius 20 of loop-player-1:
set {Boss.Name::%loop-entity-2%} to "Baeiira"
set name of loop-entity-2 to "&7[&5Baeiira&7]"
set loop-entity-2's max health to 100
set loop-entity-2's health to 100
apply slowness 2 to loop-entity-2 for 99 minutes
exit loop
if {Fura.Spider.Cave.Boss.Spawn} is true:
stop
#------------------------------------------------------------------------------------------------------
apply slowness 20 to loop-player-1 for 10 seconds
apply jump boost -20 to loop-player-1 for 10 seconds
wait 1 second
message "&7[&5Baeiira&7] &eI wonder..." to loop-player-1
wait 3 seconds
message "&7[&5Baeiira&7] &eWhy would anyone just walk into our den?" to loop-player-1
wait 3 seconds
message "&7[&5Baeiira&7] &e1 thing is for sure, we won't let this opportunity go away" to loop-player-1
wait 3 seconds
message "&7[&5Baeiira&7] &eWe got fresh meat my children!" to loop-player-1
if {Fura.Spider.Cave.Boss.Conversation.timer.%loop-player-1%} is true:
stop
on death:
{Boss.Name::%entity%} is "Baeiira":
set {Fura.Spider.Cave.Boss.Spawn} to false
command /timer <text>:
trigger:
if arg-1 is "reset":
set {Fura.Spider.Cave.Boss.Conversation.timer.%player%} to false
message "&eThe timer has been reset!" to player
if arg-1 is "test":
set {Fura.Spider.Cave.Boss.Spawn} to false
message "&eDone!" to player
At first when the lines between the #----- weren't there and loop-player-1 was loop-player everything worked fine.
now with the lines between the #---- nothing works anymore and I have no clue what it is..
don't mind the text btw, it's for rp purposes