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 Dec 26, 2012@TP seems to break on dev build 2465 of bukkit (not sure if it breaks before that). Not sure why though, since the changes only seem to address jukeboxes and fireworks on the commits. Maybe you can see why and fix it when you get time?
@ImaGe_
For the @WAIT trigger, you can actually do that right now. Make a "yes" command trigger and just add in the appropriate way to check what they are saying yes to. Use @PAUSE to give them time to enter the /yes command and then run the script either after they say /yes or after the @PAUSE is done. I actually made something similar to that on my server. They type /ci (clearinventory) and it sets a boolean to true, then @PAUSE 10. It tells them to type /yes ci and then it will clear their inventory. It lessens the amount of "accidental" inventory wipes people do...
For the simple math, try this maybe? http://puu.sh/1FPM3
For the inventory screen, you most likely need another plugin since VT cannot (as far as I know) make virtual inventories/chests. You can try the "Trademod" (<- its a plugin on bukkit) if you want, however.
-
View User Profile
-
Send Message
Posted Dec 26, 2012Very impressed. I've had this plugin in my mind for a while and did finally come to review the documentation to use it for basic triggers (@CMD), and I can definitely say this plugin stands out from the rest. Few developers would have put that much obvious dedication into their plugin.
Very excited to try this plugin out.
-
View User Profile
-
Send Message
Posted Dec 26, 20122 Requests: A @WAIT trigger. Player clicks a sign, it tells them "Are you sure you want to be teleported to (x)?" Wait for a set amount of time, if the requested command doesn't come in within that time, stop the trigger BUT Player types /yes and it takes them to (x). I don't want the player to be able to type /yes at any given time without having gone through the process of the sign clicking, etc.
Simple math. I want to show my player what their KillDeathRatio is for player kills and player deaths. (Going to use some made up numbers here) The player has 5 kills and 4 deaths. I'd like to be able to do /kdr and get it to return something similar to: @PLAYER &aYour KDR is <playername>.kills (divide) <playername>.deaths (<playername>.kills Kills and <playername>.deaths Deaths.)
1 Question: Is there a way to open an items menu for two players? I'd like to be able to create a player to player trading system. Basically, a player is crouched and right clicks a player. That player has to crouch and right click the requesting player within a set amount of time. Once they've both done that, two chests open up (much like when you /invsee [playername] as an OP without being able to take their items).
-
View User Profile
-
Send Message
Posted Dec 25, 2012@lexlaiden
It's fine no hurry.
Just wanted to make sure you read it.
Thanks for looking into it. :)
-
View User Profile
-
Send Message
Posted Dec 24, 2012@Dinastya
Sorry haven't had time to look yet. And now I can't even get loged in. Whats up with minecraft.net
-
View User Profile
-
Send Message
Posted Dec 24, 2012Any idea about the quit event bug lex?
-
View User Profile
-
Send Message
Posted Dec 24, 2012If you are not running Tekkit be sure you DO NOT download the version for Tekkit. This version is for the Tekkit that runs the older version.
-
View User Profile
-
Send Message
Posted Dec 22, 2012@SheerAwesomeness
I'm on 1.4.6 Beta and it works perfectly. Coordinates with commas seperated?
-
View User Profile
-
Send Message
Posted Dec 21, 2012For some reason the @TP won't work. I have the newest version of Variable Triggers and CB 1.4.5-R0.2. Anyone know the problem? :s
-
View User Profile
-
Send Message
Posted Dec 21, 2012New update for the Tekkit users.
http://dev.bukkit.org/server-mods/variabletriggers/files/23-variable-triggers-v1-2-2-tekkit/
-
View User Profile
-
Send Message
Posted Dec 20, 2012There is a bug with Quit event.
It only works when you force quit minecraft and not when you hit the disconnect button in minecraft.
Was like debugging my scripts for a hour and then made a test script with just
And it only sent the debug message on force quiting mc.
-
View User Profile
-
Send Message
Posted Dec 17, 2012Please add Entity has been attacked and entity idle.
-
View User Profile
-
Send Message
Posted Dec 16, 2012@Dinastya
Change the variable that varies to <this> or something else. <playername> by itself won't vary enough to always be different for every block.
-
View User Profile
-
Send Message
Posted Dec 16, 2012@midnightfang22
Thanks works great! :)
-
View User Profile
-
Send Message
Posted Dec 16, 2012@Dinastya
Since I can't see the @CALL scripts, try making a pseudo check for if it placed successfully.
-
View User Profile
-
Send Message
Posted Dec 16, 2012I'm having a issue with BlockPlaced event in protected places.
I use PreciousStones and when i use the BlockPlaced event it still get called if build is denied.
I read the info at the triggers page but when i add that code it doesn't work at all anymore.
Any idea what i should do?
This is the code i currently use: http://pastebin.com/FxAHPe9T
-
View User Profile
-
Send Message
Posted Dec 16, 2012I was trying to make a simple event script to play a sound at the location of the admin whenever someone logged in on any world, but it doesn't look like the soundex function can specify world as part of its location. I tried using <currentloc:adminname> but it didn't seem to work. Should it?
-
View User Profile
-
Send Message
Posted Dec 13, 2012This plugin is the best, words simply can not describe how I feel about this plugin, all the hard work you've put into it and the awesome support you provide the users.
Thanks Lex!
After the holidays have passed, I will be donating!
-
View User Profile
-
Send Message
Posted Dec 13, 2012@xBladeM6x
Basically, $obj.var is the same as the placeholders, but you set the value. Its basically like putting <worldname> or <playername> and it being replaced with whatever you saved for it. The format it is saved within the vardata.yml file is
So, when it goes to look up what that variable is, it checks for that object and then checks for what you are checking (s=string, i=integer, b=boolean) and then checks if that variable exists under that section. If it does, then it will replace $obj.var with that information that is there.
So, if you want to save coordinates for use whenever you want, use /vt setloc PutWhateverYouWantHereForEaseOfUse PutWhateverYouWantHereForEaseOfUse and then it stores the data within vardata.yml. That particular command will record the x,y,z you are at when the command is used. Once that exact (it is case sensitive) object and variable are called in a script with $obj.var it will grab the bit of information to use for the check.
-
View User Profile
-
Send Message
Posted Dec 13, 2012@lexlaiden
Hey, I was wondering if you could elaborate a little more in depth on how I go about getting this all done. I'm typically very good with plugins, but this one has me stumped. Lol
This is what you had said before:
"You need to use /vt setloc obj var to set a location. This also stores the orientation
and in your script @TP $obj.var"