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 1, 2013@Nikecow
Yes I know you did and thank you but I need more than one or two people to give me some answers as to what did get fixed with this last update.
I am at this moment testing on a Spigot server trying to find out where the problems are so those of you that use Spigot will be HAPPY.
I have made a forums thread so you Spigot users can inform me of the remaining issues. Please use this link http://dev.bukkit.org/bukkit-mods/variabletriggers/forum/general/53546-spigot-server-issues/ to let me know what the issues are. Thanks
-
View User Profile
-
Send Message
Posted Jun 1, 2013Lex I did reply immediately after you updated it. The only thing that didn't work yet were the smoke effects and sometimes @CMDOP still makes players name red but doesn't give them op anymore.
Here was my reply: link
-
View User Profile
-
Send Message
Posted May 31, 2013When I released the latest update I said -
This update addresses async errors with @CMD, @CMPCON, @ENTITY and other concurrent issues with Obj.Vars along with some other issues. I am hopeful that this will also solve the async with Spigot for the above listed commands.
I will be waiting for some feed back on this update from Spigot users//
I am still waiting for feedback on these to see if what was done fixed the problems with those commands. Please let me know if any are still getting async errors with any of the above commands. Thanks.
-
View User Profile
-
Send Message
Posted May 31, 2013@monstercat101
There is no cooldown with Command Triggers. I did this for a reson, I just can't remembr why.
If you want a cooldown you can add a few lines of script at the beginning of you command script to test an Obj.Var against <secondticks:arg1>
If you need help there are a few examples in the forum or you could post a request there and some one will show you what I am talking about.
-
View User Profile
-
Send Message
Posted May 31, 2013@joshuawilde
I just tested this on my server and it appears that you have to set your inner-most area first, and work outward.
Also see for fancy diagrams: http://dev.bukkit.org/bukkit-mods/variabletriggers/pages/docs/triggers/
-
View User Profile
-
Send Message
Posted May 31, 2013How do you put a vtarea inside another vtarea?
-
View User Profile
-
Send Message
Posted May 30, 2013@o0Julia0o
Yes.
First, set a boolean to store data for the player you want to check for online status. I have this setup for all players so I can mess with them later.
Make a login event trigger on the world you want.
And a logoff trigger turning it to false, of course.
Next, you need to pick what kind of trigger will... trigger the action. You could put an area trigger that activates when you walk into spawn or something. So decide where it will be. The code is simple for it.
Replace the 0 in hour:0 with what time of day you want (0-23)
-
View User Profile
-
Send Message
Posted May 30, 2013very interesting. Is it possible to execute a command(like "/day") on a special time of day - but only if a special player is online at this time?
thx
Julia :)
-
View User Profile
-
Send Message
Posted May 29, 2013@monstercat101
You'll want to get into the habit of editing commands in your yml files. Sometimes @COOLDOWN is grouchy. You could also try adding the @COOLDOWN on the second or third line of the script if it's being picky on the first. Remember to /vt reloadtriggers after you edit your files.
-
View User Profile
-
Send Message
Posted May 29, 2013@Lyoko_Firelyte
@Nikecow
Thanks so much! When I try adding a cooldown to a command it seems to have no effect, as in /vtcommand kit @COOLDOWN 100, no cooldown is applied? What am I doing wrong?
-
View User Profile
-
Send Message
Posted May 28, 2013@monstercat101
Exactly what Nike said, use cmdarg checking.
For permission checking use @IF b <haspermission:perm.node> = true before the @CALL or simply stick the commands you want to use in place of @CALL if you don't have separate script files.
-
View User Profile
-
Send Message
Posted May 28, 2013@monstercat101
Have you tried:
@IF s <cmdarg:1> = water
@CMDOP etc
-
View User Profile
-
Send Message
Posted May 28, 2013Is it possible to add a vtcommand script for a command that has a space in it? I want to make it run an op command when a player types '/kit water' but when I try to do this it only registers for /kit, I want to replace 'water' with different words and run different scripts each time.
-
View User Profile
-
Send Message
Posted May 27, 2013@Nikecow
Reloading the triggers won't stop an active thread as far as I know, and theoretically you could pause it for as long as the server is online. It might not be 'advisable' though because your server could crash or lag out due to external factors. Restarting your server will shut down all threads though, so all paused scripts would go back to 0.
-
View User Profile
-
Send Message
Posted May 27, 2013Does anyone here have experiencing with "pausing" the script for multiple days? Does it work and will it continue counting after a restart or will it start from 0 again? Does /vt reloadtriggers reset the time? I would really like to know this. Thanks
-
View User Profile
-
Send Message
Posted May 27, 2013@DagumBoss
Try using /vt savetriggers and you do a reload if they aren't sticking. If they are not changing after a /vt reloadtriggers then you saved it wrong.
As for your cooldown..
I don't think it would cause too much lag, it just really depends on how many open threads your system can handle.
-
View User Profile
-
Send Message
Posted May 27, 2013@benwetherbee
That's not possible, there's no checker for eating things with this plugin, the closest thing I can think of is a boolean check for potion effects, but it would need to be triggered by something.
-
View User Profile
-
Send Message
Posted May 26, 2013@Hangar
You must have a plugin that is not reading the explosion event properly and throwing errors.
-
View User Profile
-
Send Message
Posted May 26, 2013I'm not sure if I'm using the commands wrong, but I try to use reloadtriggers and reloadscripts after editing scripts in notepad. VariableTriggers never seems to recognize the changes, though.
Also, how would I go about creating a cooldown for each individual person that uses a command? Would using @PAUSE 86400 end up causing a lot of lag if there are several of the same script just pausing like that?
-
View User Profile
-
Send Message
Posted May 25, 2013Would there be a way to attach a potion effect when a player eats something? They eat a golden apple and it gives them fly, but as a potion effect (so there is a time limit).