Jump to content

Skript variables


Basic

Recommended Posts

16 hours ago, Basic said:

How do I bind a variable to a specific command? (for example)

variables:
    {test} = 0
 
on command:
    add 1 to {test}

command /test:

If i understand you correctly wouldn't you just do

command /test:

    add 1 to {test}

    send "%{test}%"

 

 

1222707687_standard(5).gif.8525e6a698a546a3349e214e774f14db.gif

Yes i own Vile and VileGN 🙂

___________________________________________________________________________________________________________

mc-market profile -> https://www.mc-market.org/resources/authors/79745/

Spigot Profile -> https://www.spigotmc.org/resources/authors/frostedwefall.428495/

Discord Tag | FrostedWeFall#7536 | Anyone else is not me!

___________________________________________________________________________________________________________

316679105_download(4).png.cd8313e1787736b103feab4d7093f730.png

 

 

 

Link to comment
Share on other sites

  • 1 month later...
On 3/27/2020 at 6:37 PM, FrostedWeFall said:

If i understand you correctly wouldn't you just do

command /test:

    add 1 to {test}

    send "%{test}%"

 

 

probably a good idea to add a trigger 🤷‍♂️

command /test:
	trigger:
		add 1 to {test}
		send "%{test}%"

 

 

* Sorry I just realised I necroposted...

Edited by Migqy

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

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...