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 Feb 22, 2015How do I make it detect the players name?
-
View User Profile
-
Send Message
Posted Feb 22, 2015@KyadCK
- ' @IF b <haspermission:balikci.levelbes> = true'
- ' @PLAYER &3
-------'- ' @PLAYER => &9* &2Be 5. level fisherman. V'
- ' @ELSE'
- ' @PLAYER &3
-------'- ' @PLAYER => &9* &4Be 5. level fisherman. X'
- ' @ENDIF'
I removed groupmanager file ,and I didn't add any permission ,but it said ' => &9* &2Be 5. level fisherman. V' What's wrong I cant find. :(
-
View User Profile
-
Send Message
Posted Feb 22, 2015@brkdgl07
If I recall correctly, GroupManager saves player specific perms in the respective users folder/file, not in the main perms file. Check there.
-
View User Profile
-
Send Message
Posted Feb 22, 2015I understood how I can do rank plugin but it didnt work. We use groupmanager. Can it be the problem? Neither jobs plugin added a perm when I reached 10 level, Neither vt 's haspermission place holder worked correctly. Perm is not in groupmanager but vt said true. I hope you will find what the problem is.
-
View User Profile
-
Send Message
Posted Feb 21, 2015@brkdgl07
Have you considered using permissions to handle your ranking? You can use an @IF statement to check for the correct permissions with VT.
Quote from the permissions section of Jobs:
Custom Permissions
Jobs can grant permissions to players like any SuperPerms compatible plugin (PermissionsBukkit, PEX, bPermissions, etc). You can customize each job to grant specific permissions to players when they join a particular job in the "permissions:" section of a job.
-
View User Profile
-
Send Message
Posted Feb 21, 2015Thanks KyadCK. If you didnt say, I would still search a way. After your answer, I looked jobs plugin and found a feature like that you can create your perm for level whatever you want. :D
-
View User Profile
-
Send Message
Posted Feb 20, 2015@brkdgl07
Unless the plugin stores it's data in MySQL, you are unlikely to get any data out of another plugin. VT has almost no hooks aside from Vault. For now anyway.
-
View User Profile
-
Send Message
Posted Feb 20, 2015Hi, I am making a rank plugin with using vt. However, I want to add the requirement which will ask jobs plugin's levels such as if player is 10 level miner , this requirement is done. When I write \jobs ... Playername (I cant remember command) server tells to player that lvl10 miner : 120/200 xp Maybe this command can be useful.
Are there anyway that I can do it?
-
View User Profile
-
Send Message
Posted Feb 20, 2015@brkdgl07
The EXIT can be in an IF statement. It will exit when it gets to that line, and not before. It would still do everything he wanted since it was after the CMDCON and the PLAYER.
EXIT is absolutely not required at the end of a script, and is in fact useless and a waste of time to be put there. The script exits when it's over anyway.
-
View User Profile
-
Send Message
Posted Feb 20, 2015@MountaindewM
- '@IF b <takeitem:<playername>:338:2304> = true'
- '@CMDCON give <playername> 353 2304'
- '@PLAYER &5Converted 2304 SugarCane into Sugar!'
- '@ELSE'
- '@PLAYER &aYou do not have enough SugarCane to do that!'
- '@ENDIF'
- '@EXIT'
you used exit wrong place, so plugin saw exit and stopped running.
-
View User Profile
-
Send Message
Posted Feb 20, 2015@MountaindewM
You might want to try the following. I think it's safe to assume that if you take out 2304 canes then there should be room enough for 2304 sugers. The <giveitem::> in an @IF is just a precaution and this error message should never be seen.
-
View User Profile
-
Send Message
Posted Feb 20, 2015Hi, I am making a rank plugin with using vt. However, I want to add the requirement which will ask jobs plugin's levels such as if player is 10 level miner , this requirement is done.
When I write \jobs ... Playername (I cant remember command) server tells to player that lvl10 miner : 120/200 xp Maybe this command can be useful. I hope you can help me :)
-
View User Profile
-
Send Message
Posted Feb 20, 2015@MountaindewM
when you get errors in console just look and what it says I find it usually tells me whats wrong and what trigger/script and what line is the problem
-
View User Profile
-
Send Message
Posted Feb 19, 2015Yeah I tried 64 and it still did the same thing. I haven't spent a lot of time trying to come up with a solution since I am currently fixing other issues with my server from updating from a non UUID server to the newest build. I am pretty sure what I coded should work but not sure if anyone else has a different way of doing it.
-
View User Profile
-
Send Message
Posted Feb 19, 2015@MountaindewM
That is a lot of sugar cane. Have you tried smaller values?
-
View User Profile
-
Send Message
Posted Feb 18, 2015@AncientTom
This is not a professional environment. My "job" is to test the plugin and to document data. That does not make me your friend, and I am not paid. I am never required to help you, nor am I required to be nice at all times. I do this as a favor to Lyoko and because I was tired of waiting on proper docs. Which, by the way...
Do not pull that "you need docs" line. Lyoko documented -everything- from VT 1.3.3.1 and older that he worked on. It's all in the changelog;
http://dev.bukkit.org/bukkit-plugins/variabletriggers/files/39-variable-triggers-v1-3-3-1/
And it's all in the UDL, which I updated based on the changelogs; http://dev.bukkit.org/bukkit-plugins/variabletriggers/forum/useful-tools/58646-notepad-udl-for-variable-triggers/#p12
Technically, VTV2 is documented as well, it just isn't to the same quality.
You get attitude from me because I explained /vt rt AND the VT 1.3.3.1 Click trigger to you before, and yet here you are, posting incorrect /vt rt info and claiming in a ticket that the Click trigger is busted. You get attitude because you are very much not a novice user, and you should know better. And no, it isn't that you don't know that bothers me, it's the repeated posting as fact.
We've been using VT for about the same amount of time. If I can use the changelog, you can too. If I can PM Lyoko for help, you can too. I do not have any advantage that you don't. In fact, the complete list of VTV2 stuff? That's in the JAR file, as a text document. Everyone has a copy. They don't have full explanations, but thats fine since they're all obvious, so much so that I did not ask for Lyoko's help even once when writing the docs.
-
View User Profile
-
Send Message
Posted Feb 18, 2015So I have run into an issue fixing some of my commands I previously had. The one I can't solve is I have a command /sugar that will take a full inventory of Sugar Cane. The first line is the line I think is the issue here. Forgot to mention the issue I have is it always assumes I don't have sugarcane in my inventory. Also I noticed I had a temporary test version copy and pasted but this is the one that I think should work.
- '@IF b <takeitem:<playername>:338:2304> = true'
- '@CMDCON give <playername> 353 2304'
- '@PLAYER &5Converted 2304 SugarCane into Sugar!'
- '@EXIT'
- '@ELSE'
- '@PLAYER &aYou do not have enough SugarCane to do that!'
- '@ENDIF'
I did have it check with hasitem to see if it had the item before but it was having worse problems. I just want ideas as to why it doesn't work or what changed with it. I have tried renaming 338 to minecraft:reeds and sugarcane to see if that changed and it didn't work. Also I really like the update so far just going to take a bit to get used to the changes.
-
View User Profile
-
Send Message
Posted Feb 18, 2015@dragonslayermcmx
Thank you for responding to my cry for help. I have tried every conceivable way of using a variable or placeholder as coordinates in <signtext: : >. The only thing that works for me is to use the actual comma delimited numbers as coords.
I spent some time with AngryDee yesterday on his vary same thing. He also pointed out that <signtext:<triggerloc>:linenumber> should work and it works for him. I tried it again several times on my server and it won't work for me. I am beginning to think that I may be running with a bad download of VT.
-
View User Profile
-
Send Message
Posted Feb 17, 2015@AncientTom
Simply put, please stop relying on data from May 2013. It is incorrect/outdated and you are spreading now false information, which doesn't help anyone.
For VT 1.3.3.1;
Trigger files reload fine. If you delete a script in a trigger file, and reload, the game will put the trigger back as VT will load in- any new triggers, then write back all triggers to the file; including the one you deleted. VT will also look through backup files on startup, but it will only load a trigger if the trigger does not exist in the new file, it will not overwrite the new script.
You must use the in-game command to delete a trigger. This will remove it from active memory, and will delete it permanently.
If you add a trigger, it will be added and will stay upon /vt rt. The only problem you will have is on delete.
-
View User Profile
-
Send Message
Posted Feb 17, 2015@AncientTom
About the sign thing, "@SETSTR $string.name <signtext:<triggerloc>:linenumber>" in a clicktrigger should do it. I'm not entirely sure what you're trying to do, but you don't even need to use setstring unless you're trying to save the text for a later use in a different script. So for example if you just want to display the sign text in the chat you can simply do "/vtc @PLAYER <signtext:<triggerloc>:0>" and then right click the sign.