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 Jul 25, 2014@Lyoko_Firelyte
That's perfectly fine, the only thing you adding @COMMANDS would do is break compatibility with older versions or not support new ones.
The "Yelling at you" is actually helpful really... It's usually helpful enough to tell me where I'm wrong.
But even when the command works (verified by PHPMyAdmin), spigot likes to cry. Trying to decide if it's spigot being silly or if something is actually wrong.
-
View User Profile
-
Send Message
Posted Jul 25, 2014@laacis2
I have found this issue myself. What I found out is that it directly relates to deleting variables. What I have done is to never use the following commands: @DELVAR /vt delvar /vt delobj
Instead use @SETSTR $SomeObj.SomeVar 0 @SETINT $SomeObj.SomeVar 0 @SETBOOL $SomeObj.SomeVar False
Yes I understand this will completely fill your variables with a bunch of 0 variables but its better then randomly losing data.
My guess is if you use mysql this will probably fix all these problems. Which I hope to move over to sometime soon.
-
View User Profile
-
Send Message
Posted Jul 25, 2014@Lyoko_Firelyte
What if the comment is on the first line? It was the event login trigger. The Login trigger contains @CALL events:join, and in that script I have a comment in the first line. Maybe you can reproduce it.
-
View User Profile
-
Send Message
Posted Jul 25, 2014@Lyoko_Firelyte
but unfortunately it is.i've created 11 quests and when you complete quest, it removes all temp vars and records a storage variable $q1.<playeruuid> to $q11.<playeruuid> . nothing in this storage is being deleted ever. However peoples variables are just randomly disappearing. And variables yml file is rearranging itself quite often moving objects around without any obvious purpose. Temp variables never start with $q1. to $q11. they are something along the lines $q1started.<playername> or $hasarmor.<playername>
-
View User Profile
-
Send Message
Posted Jul 25, 2014@laacis2
I have no idea how that would happen, because as far as the code goes it should not happen :P
-
View User Profile
-
Send Message
Posted Jul 25, 2014@Lyoko_Firelyte
are there coming any fixes for variable self destruction any soon?
-
View User Profile
-
Send Message
Posted Jul 25, 2014@Silversbane
-
View User Profile
-
Send Message
Posted Jul 25, 2014@KyadCK
Yeah I don't have the patience to make individual little @ commands for each part of mysql, so I figured it would be easier to just make it direct input and label it as an "advanced" feature. I use command line to manage my mysql as well XD
Also, there is no debugging. If it fails to do something, it'll yell at you.I swear I'm a good coder
-
View User Profile
-
Send Message
Posted Jul 25, 2014@Lyoko_Firelyte
*Very big grin*
Eventually I'm going to want to ask about some stuff... mostly the console debug output for the SQL command. But that can wait until I understand it better. For now I have created a table and added to it. I am happy.
Also you adding SQL to VT along with the possible implementations that it allows for have given me a very good reason to learn MySQL, which is a skill that I am sure will help me in the future. So thank you for that as well, as it is very hard to learn something unless you have a reason to do so.
-
View User Profile
-
Send Message
Posted Jul 25, 2014I want to throw out a quick invitation to all the Variable Trigger coders out there so for anyone interested in seeing over 50,000 lines of variable triggers code in action please feel free to join me in my Alpha testing of Minecraft Impossible. Watch some videos on it and see if your interested:
or catch us streaming live on twitch
I would love to get to know more people who use variable triggers so we could talk code and share knowledge!
My Event Information:
Please contact me through skype (user:nathan_steen) or natersteen@gmail.com if you are interested in playing. Thank you.
-
View User Profile
-
Send Message
Posted Jul 24, 2014@H8llfire
I didn't change anything related to comments, let's see if others have the same issue I suppose.
@Gaurav1234
You can script a cooldown yourself using system time and booleans!
-
View User Profile
-
Send Message
Posted Jul 24, 2014Hey, Is there any possible way I can put a cooldown on commands using this plugin? If not, could you make it so that @COOLDOWN doesn't not work in command triggers?
Thanks!
-
View User Profile
-
Send Message
Posted Jul 24, 2014Something seems to be really wrong with v1.3.3. When I installed it the CPU usage on idle was at 25% steady (normally at about 1%), when I connected it didn't know what comments in scripts are (it printed an error about a comment, unknown script line or something) and the CPU usage went nuts to about 100%.
I downgraded to 1.3.2 and all works properly again.
-
View User Profile
-
Send Message
Posted Jul 24, 2014@Lyoko_Firelyte
No problem. I just need it to be able to share db tables with my mySQL driven websites.
-
View User Profile
-
Send Message
Posted Jul 24, 2014Notice
I only changed the version in the pom.xml, and not the plugin.ymlmy bad, so when using 1.3.3 it will say "Loading 1.3.2" in the console, but it's the correct version. Thanks :)
-
View User Profile
-
Send Message
Posted Jul 24, 2014@AncientTom
I provided basic command-line access for it, so you'll have to do everything with real mysql syntax so that you have unlimited optionsTM.
The result (if there is one) will be put into the @VTSystem.MYSQL arraylist for your viewing pleasure.
However, it's not optimized for performance, so don't go overboard :P
-
View User Profile
-
Send Message
Posted Jul 24, 2014@KyadCK
WoW! Do you know what this means to me? I can now directly interface to my web sites with control structures that I create. For instance, donations that players make on the website for game upgrades. Even pass things to my website through the database so that the player can conduct website business directly from within the game. I have been waiting for this a long time.
-
View User Profile
-
Send Message
Posted Jul 24, 2014@KyadCK Thank you, thank you, thank you.
-
View User Profile
-
Send Message
Posted Jul 24, 2014Just started using VT v1.3.2. The first thing I checked was '/vt delobj' and it was silant. Thank you so much for cleaning this up. Now, If we only had this in the '@DELOBJ' form.
-
View User Profile
-
Send Message
Posted Jul 24, 2014@AncientTom
Click on the link Lyoko provided.