Jump to content

Is there a way to make the command stop?


Patsteaks123

Recommended Posts

Help
 

command howtoannoypeople [<player>]:
 permission: sk.htap
 aliases: htap
 trigger:
  send "&4You've Exploded" to arg
  execute console command "execute at %arg% run summon end_crystal ~ ~2 ~"
  execute console command "execute at %arg% run summon arrow ~ ~5 ~"
  wait 3 seconds
  execute console command "/htap %arg%"

 

Link to comment
Share on other sites

For starters you got many of the things wrong heres what ill do. It will already stop itself because it says wait 3 seconds 1 time but if you want it to be recurring then you have to loop it

command /howtoannoypeople [<player>]:
 permission: sk.htap
 aliases: /htap
 trigger:
  send "&4You've Exploded" to arg-1
  execute console command "execute at %arg-1% run summon end_crystal ~ ~2 ~"
  execute console command "execute at %arg-1% run summon arrow ~ ~5 ~"
  wait 3 seconds
  execute console command "/htap %arg%"
Link to comment
Share on other sites

3 hours ago, Shadow_UTubes said:

For starters you got many of the things wrong heres what ill do. It will already stop itself because it says wait 3 seconds 1 time but if you want it to be recurring then you have to loop it

command /howtoannoypeople [<player>]:
 permission: sk.htap
 aliases: /htap
 trigger:
  send "&4You've Exploded" to arg-1
  execute console command "execute at %arg-1% run summon end_crystal ~ ~2 ~"
  execute console command "execute at %arg-1% run summon arrow ~ ~5 ~"
  wait 3 seconds
  execute console command "/htap %arg%"

Doing %arg% with 1 argument will work the same, the slash character in aliases is not needed,  and doing the slash character in the first line is also not needed. The skript wont stop itself either since the skript itself IS a loop, executing the same command every 3 seconds.

15 hours ago, Patsteaks123 said:

Help
 

command howtoannoypeople [<player>]:
 permission: sk.htap
 aliases: htap
 trigger:
  send "&4You've Exploded" to arg
  execute console command "execute at %arg% run summon end_crystal ~ ~2 ~"
  execute console command "execute at %arg% run summon arrow ~ ~5 ~"
  wait 3 seconds
  execute console command "/htap %arg%"

 

To stop this, you could use a variable and make another command to set that variable true/false. Then after it waits 3 seconds, check if said variable is true.

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...