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 Aug 18, 2014@momzlilmonsters
Shutdown server, edit config file, save config file, turn server on.
-
View User Profile
-
Send Message
Posted Aug 18, 2014Im trying to turn on looping but each time i do it, upon reload to let config changes take effect it rewrites the config and removes the option. how do i get around this
-
View User Profile
-
Send Message
Posted Aug 18, 2014@AncientTom
It may not work for variables since it's a direct command, but you should know the world name you're standing in, so just type it manually?
-
View User Profile
-
Send Message
Posted Aug 18, 2014@Gaurav1234
You'll want to not use the default system time for that, try <systemtime:E>
-
View User Profile
-
Send Message
Posted Aug 18, 2014I've tried using <worldname> like '/vt setloc <worldname> Entry' and it created an object named "<worldname>" instead of the world's name. I then tried '/vt run @PLAYER <worldname>' and got the error "unable to find <worldname>".
How do you use <worldname>?
-
View User Profile
-
Send Message
Posted Aug 18, 2014Hey,
Is there a way to use VT to check if it's a certain day in a script?
I tried doing
'@IF si <systemtime:default> ?= Monday'
blablabla but it returned the error in console "@IF: Wrong number of arguments"
So, I tried setting <systemtime:default> to a variable and then testing it. Still didn't work.
How would I do this?
Thanks!
-
View User Profile
-
Send Message
Posted Aug 17, 2014@adambor
It was just added in 1.3.3; you can check the changelog for more info and its placeholders etc.
-
View User Profile
-
Send Message
Posted Aug 17, 2014Ok thanks but I didn't find it in event triggers
-
View User Profile
-
Send Message
Posted Aug 17, 2014@adambor
There is a LeftClickEvent and a RightClickEvent
-
View User Profile
-
Send Message
Posted Aug 17, 2014And please add boat and minecart to entities it can very help me :).
-
View User Profile
-
Send Message
Posted Aug 17, 2014Hi can you please add Item click event when player click with item to air for example. And also please add commands from command trigger can run from console Thanks
-
View User Profile
-
Send Message
Posted Aug 17, 2014@Lyoko_Firelyte
I use the TP command first that is using the variable that has all the orientation info in it. then WORLDTP exicutes that is where it's getting muffed up. I also tried your latter suggestion and it undoes the World Teleport.
-
View User Profile
-
Send Message
Posted Aug 17, 2014@AncientTom
Oh I meant in the actual TP command. If that's not working, teleport them to the same spot but with a good yaw and pitch to correct it after they world TP. They most likely won't notice it.
-
View User Profile
-
Send Message
Posted Aug 17, 2014@Lyoko_Firelyte
How do I do that. It isn't shown in the docs for the @WORLDTP command, just player name and world to TP to. Can I specify the location object variable that contains all the coords and oriention?
-
View User Profile
-
Send Message
Posted Aug 17, 2014Natfan, you can cycle through the array list @VTSystem.OnlinePlayers.
Tom, you can specify yaw and pitch in your teleport coords so the player faces correctly
-
View User Profile
-
Send Message
Posted Aug 17, 2014@AncientTom I ended up adding Multiverse to my plugins and now my new world is available to @WORLDTP. I now have an issue using @TP & @WORLDTP together. Since @WORLDTP only TPs to your current coords only in the new world, I am using @TP first to position the player before @WORLDTP. This almost works but the player orientation is facing the opposite direction than it should be and from one walk trigger, the player ends up looking straight up. From another walk trigger, the player ends up looking straight down. Also, If I try @TP after @WORLDTP, it undoes the the TP to the other world. I'm using VT v1.3.3.1 build 39.
-
View User Profile
-
Send Message
Posted Aug 17, 2014Quick question: How to I select all players on the server? I know that <playername> does for one player, but how do I do all players, if at all?
-
View User Profile
-
Send Message
Posted Aug 16, 2014I added another world to my server base directory. I can run it as the primary world but my goal is to be able to @TPWORLD to it from my existing game world. When I use this command, VT only knows about the nether and the_end worlds. Is there something that needs to be done to register my new world level with the game?
-
View User Profile
-
Send Message
Posted Aug 16, 2014Good afternoon. The plugin is great, but to create a RPG server is missing a single detail, namely the NPC. Is it possible to trigger a bind as to Citizens or given to any other plug-in to an NPC?
-
View User Profile
-
Send Message
Posted Aug 15, 2014@Lyoko_Firelyte
I printed out the variables at the end and $<playername>.enoughmoney was false, but an if statement that's
'@IF b $<playername>.enoughmoney = true'
Still executed the code in it.
So right above that line I made a line that says
'@SETBOOL $<playername>.enoughmoney false'
I reloaded scripts and the code still executed.
(This is now my script: http://pastebin.com/2yFJ2nPx and it still does the stuff in the "@IF b $<playername>.hasenough" if statement.)
I'm using VT 1.3.3.1
Thanks