VariableTriggers

Make your own plugin like features and more using VariableTriggers
This is a very powerful plugin that has unlimited potential. Create triggers that run lines of script when a player Clicks or Walks on a block (dirt, door, switch, trigger, torch, any block) or Create Event Triggers such as PlayerDeath , EntityDeath, BlockBreak, BlockPlaced, Join, Quit, Respawn, Interact and EntitySpawn that also run scripts. You can define Area Triggers and Command Triggers as well. You can use Dynamic Object variables and conditional IF and ELSE statements in the scripts. You can run any command that a player or OP can run and many speacial built-in commands to Teleport, Spawn Entities, Play Effects Visual or Sound, Set Blocks, Toggle Blocks, Check Players Heath and much more!. The scripts are executed on their own threads to take the strain off of the main server thread.
















-
View User Profile
-
Send Message
Posted Jun 13, 2013@Lyoko_Firelyte
Thanks for pointing that out. I'm actually not in desperate need for it but I will use it.
So you are saying I should use it this way?:
@IF s $something.something != null
@OR s $something.something != 0
-
View User Profile
-
Send Message
Posted Jun 13, 2013@EdictServer
Install essentials and have your trigger use @CMDOP enderchest
:)
-
View User Profile
-
Send Message
Posted Jun 13, 2013You know what, this small plugin works like a charm with my server...
Lightweight, compact, and decent, makes a perfect environment for my admins.
=]]
-
View User Profile
-
Send Message
Posted Jun 13, 2013Is it possible to open UI elements with a trigger? I aim to open the enderchest with a trigger without actually having an enderchest present.
-
View User Profile
-
Send Message
Posted Jun 12, 2013@H8llfire
GOT IT!!@#@$^$@$!!
Ok so. It sometimes checks for 0 instead of null. So manually set all your crap to "null" at the start OR check for != null AND != 0. I fixed all my scripts using that.
-
View User Profile
-
Send Message
Posted Jun 11, 2013@Jones988
Yes?..You can make your own XP points with VT or put in whatever command it is from whatever plugin you're using.
-
View User Profile
-
Send Message
Posted Jun 10, 2013Thanks guys! is it possible to charge people XP points using @IF?
-
View User Profile
-
Send Message
Posted Jun 9, 2013@Jones988
Depending on where you want this, you could use @ELSE, but I prefer to avoid @ELSE at all cost so everything can be exact. @ELSE is really redundant when if it's not true it'll skip it and hit the last argument anyway.
-
View User Profile
-
Send Message
Posted Jun 9, 2013@Jones988 Script:
- '@IF s $<playername>.rank = member21'
- '@CMD warp thebigchoice'
- '@ELSE'
- '@PLAYER You are not a wizard yet!'
- '@ENDIF'
-
View User Profile
-
Send Message
Posted Jun 9, 2013How would I go about making a script that @IF if the <playername> has the rank "member21", then @CMD warp thebigchoice?
Script:
- '@IF s <playername>.rank = member21'
- '@CMD warp thebigchoice'
- '@ELSE'
- '@PLAYER You are not a wizard yet!'
-
View User Profile
-
Send Message
Posted Jun 8, 2013@lexlaiden
So in other words, some things need a little extra time to register and most scripts can be fixed by pausing 0.3+ every now and then :D I've been doing that from the start, maybe that's why I never had any of the errors these people complain about.
-
View User Profile
-
Send Message
Posted Jun 8, 2013Hey guys i just had a message with someone and I think the info would be good to get out there. This is not the whole conversation, just the answer but it has enough so you will get the idea. I hope.
{=========================================}
the @CMDCON is now running on main server thread and I removed the delay in the script (300)ms on the latest version so the scrip is continuing to run but the @CMDCON is qued
This means that in your script you @CMDCON vt delobj the thre times and then @CALL your setup. The vt delobj is put in a que back to bukkits main thread and can take up to I think 250 ms before bukkit accually exicutes those commands while in the meantime you script keeps running and goes to the @CALL's you setup to create the new variables. this is happening first and then bukkit catches up and delets them. Understand.
My script interpreter runs on its own thread and thats why we can write so many scripts and do what we want without lagging the server thread, BUT with this new Spigot and some os these plugins on bukkit forcing async errors I am forced to start putting some of the code back on the main server thread and we get delays there but you script keeps running at full speed.
Any time you use @CMD??? and timming is important to match the rest of your script just put a @PAUSE 0.3 before you continue. (Thats 300ms). That way we can be sure that is enough time for bukkit to get to the que and exicute them befor your script coninues.
Its hard trying to keep everyone happy. I hope this clarifies it for you. Here is a list of commands that so far are being cued back to bukkit main thread. If any are critical with timming of other things in your script then use @PAUSE 0.3
@CMD
@CMDOP
@CMDCON
@ENTITY
@TP
@GETENTITYCOUNT
@SIGNTEXT
@EXPLOSION
@DROPITEM
-
View User Profile
-
Send Message
Posted Jun 7, 2013@joshuawilde
I don't know what you mean. You can manually set booleans with the command /vt setbool obj var <value>. Or just include @SETBOOL $obj.var <value> in a script..
-
View User Profile
-
Send Message
Posted Jun 7, 2013@midnightfang22
thank you!
I will try it :)
-
View User Profile
-
Send Message
Posted Jun 7, 2013@lesokn
Try to do it on a fresh test server with only VT installed. If it works, then it is a plugin blocking it. Then, start adding the same plugin you have on your real server and add it to your test server, reload it, then try to see if the script still works. If it doesn't, then one of the plugins you just added is causing it. If you added multiple plugins right before it broke, remove one of the ones that were just added and try again. Basically, do trial and error :/
-
View User Profile
-
Send Message
Posted Jun 7, 2013@Lyoko_Firelyte
i already tried it, but it didn't work
I still think there is a plugin which blocks it...
-
View User Profile
-
Send Message
Posted Jun 6, 2013Is there a simple way the console can set an object variable boolean to true?
-
View User Profile
-
Send Message
Posted Jun 6, 2013@lesokn
Try updating to the latest version of VT and restarting your server?
-
View User Profile
-
Send Message
Posted Jun 6, 2013Hello I'm using VariableTriggers for a longer while.
But one Day I realized, that some functions didn't worked anymore. If i try to do @CMDCON for example it happends simply absoloutly nothing!
I think this coouuuld be, because i have not soooo less plugins. And i installed some new last week. I think one of these new plugins could block it, but i didn't really want to reinstall them all...
But I can tell you some Plugins i have installd recently:
PowerNBT; Sentry (for citizens); Builder (for citizens); YMLBook; WallClock; BookShelf;
and "some" more, but i don't really think that they couldn't block it...
Thanks!
PS: VariableTriggers is AWESOME!!!
-
View User Profile
-
Send Message
Posted Jun 6, 2013@joshuawilde
If you still want the console to log the commands just register your commands in whatever plugin's plugin.yml. That way you can leave the override to false, have the console log the commands and not see that message in chat.