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 Apr 5, 2015This plugin doesn't work with Spigot 1.8.3 server program well... I am waiting for this plugin!
-
View User Profile
-
Send Message
Posted Apr 3, 2015@disciple218
Does your world call supply? Because on default your world would be world.
-
View User Profile
-
Send Message
Posted Apr 3, 2015I cannot get PlayerJoin to trigger. Can you check the syntax of my script? This is the content of my PlayerJoin.yml file in events/player: http://pastie.org/10043145
I have been contacting Lyoko_Firelyte through PM, but thought posting it here would be better.
My world is correctly named 'supply' and not 'world'. Also, @PLAYER <worldname> returns 'supply'.
-
View User Profile
-
Send Message
Posted Mar 30, 2015Having an issue of VT not recognizing the potions in my inventory. the $potion.invis is being set to 373:8270. giving myself one with that id and using it does not work. However changing the $potion.invis to 373:14 and giving myself one with that id and using it does work.
-
View User Profile
-
Send Message
Posted Mar 29, 2015@RoyPiter
On player death, if <killerentitytype> is PLAYER and <isprojectile> is true, then you know the player was killed with a bow. <deathcause> may be of help as well.
There is no point to seeing if they have a bow or not, people have time to switch items before the arrow hits. The question is if they died to a arrow or not. The only time this is not the case is hackers... which you should be using a proper Anti-cheat plugin for, not VT.
You can use <currentloc:PLAYER> and <triggerloc> to compare distance. Both <holdingitem:[player]:[material]> and <hasitem:PLAYER:ITEMID> can replace player with <killername>.
I'm honestly not seeing the problem here? If you need help, feel free to PM me the script in question and I'll try to show you how to do scripts that involve multiple players with it.
-
View User Profile
-
Send Message
Posted Mar 29, 2015I have a question in regard to @SETBLOCK. It seems like when it comes to block ID, I have to supply a data no matter what. But for something like air, there is no data, it's just block ID 0.
What should I put in there? Cuz if i just leave it as @SETBLOCK 0 x,y,z, it will just give me an error. It works fine with any block ID that has data in it (98:2)
Thanks!
I'm using Spigot 1.8 and your latest files.
Update: I tried @SETBLOCKSAFE 0:0 x,y,z. Still doesn't work. Also, any block with no specific data value will not work either. Apparently I can't supply data value of zero on anything that has no data value.
-
View User Profile
-
Send Message
Posted Mar 28, 2015@laacis2
In VT 1.3 we could just use the command "/run script:script (player)", from the console, a player or a command block, and the script would work perfectly on that player.
My English isn't perfect so I find it a bit difficult to explain :v
As you said we can use a command trigger like "/call script player" but when we use @CALL the script is still running on the player u used the command, for example, place holders will return info from the player and not from the cmdarg:2 player.
Another example of how it should work, I made a PlayerDeath event trigger that if the player was killed by an arrow, distance between the killer and the triggerloc would be displayed. The problem was when I wanted to verify if the killer was holding a bow, and it's imposible to use @IF i <killername> has <itemid> = 61, or if I used @IF i <itemid> = 61 it would test if the player who died was holding a bow. So I wrote @CMDOP run script:script <killername>, and then @IF i <itemid> = 61 would check from the player who killed. (you can take a look here http://pastebin.com/hsd4S5Mz )
That's what I still can't find how to do in VT2.0
-
View User Profile
-
Send Message
Posted Mar 28, 2015@laacis2
for some reason the console command thing isnt even working at all!!! when i type the command in the console, nothing happens...
-
View User Profile
-
Send Message
Posted Mar 28, 2015@nxtboyIII
why would you? you can use a command trigger such as /call [script name] [player name]. setup the /call command as @SETSTR $caller.script <cmdarg:2> and @CALL <cmdarg:1>:script within scripts use $caller.script where u want your <playername> to appear.
-
View User Profile
-
Send Message
Posted Mar 28, 2015@laacis2
You can't even use the @CALL to call a script on another player... like doing '@CALL scripts:script1 nxtboyIII' doesn't work
-
View User Profile
-
Send Message
Posted Mar 26, 2015@Casterx3
V2: ./plugins/VariableTriggers/events/player/PlayerCommand.yml
V1.3.3.1 and lower: ./plugins/VariableTriggers/CommandTriggers.yml
-
View User Profile
-
Send Message
Posted Mar 26, 2015Where are the custom commands stored in file? I cannot seem to find them for the life of me.
-
View User Profile
-
Send Message
Posted Mar 24, 2015@nxtboyIII
i don't think you are actually trying to learn to use tools that are already provided. You can call scripts on other players if you make them right. like you are doing but use <cmdarg:> placeholder to put player name in.
-
View User Profile
-
Send Message
Posted Mar 21, 2015@Lyoko_Firelyte
Can you please make it so we can call scripts on certain players? Thanks
-
View User Profile
-
Send Message
Posted Mar 21, 2015Click triggers and World Edit are not playing nice together.
http://pastebin.com/XcYtfGEQ
-
View User Profile
-
Send Message
Posted Mar 20, 2015@Lyoko_Firelyte
But this list of online players can be very inaccurate. Server crashes, lags and so on, can make it go wrong. Maybe you can add a new function to run a script to all players in the future, just like the "@a" of command blocks. That would be very useful, I think.
-
View User Profile
-
Send Message
Posted Mar 20, 2015@RaycusMX
Yes @WHILE can be used in place of loop (see docs) and you can make your own array and add people to it when they log in and remove when they log out for online players.
-
View User Profile
-
Send Message
Posted Mar 20, 2015To run a script 4 all players create a variable to define who is online. then start you script to look 4 that and boom
-
View User Profile
-
Send Message
Posted Mar 20, 2015@VTSystem.OnlinePlayers dosen't work currently? Is there any way to run a script to all online players? And is there a sc which can temporarily take the place of @LOOP?
-
View User Profile
-
Send Message
Posted Mar 19, 2015@Lyoko_Firelyte
Oh, I didn't installed worldedit indeed. VT2 is working now. It's available for 1.7.10 actually. Sorry, that's my fault.