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 2, 2014Thanks! Also any clue why @CMDCON and @CMDOP no longer work? Were there any previous errors like that?
-
View User Profile
-
Send Message
Posted Jun 2, 2014@TehSaltyOyster
Hmm... I'll run these scripts locally and let you know if there's an issue.
-
View User Profile
-
Send Message
Posted Jun 2, 2014In fact, I cant get @CMDCON or @CMDOP to do anything anymore.
Also, certain scripts not only fail to respond, they cause every other script in the file to stop responding.
This script works perfectly fine:
Until I add this script to the end, like this:
Adding that last script causes the plugin to fail to recognize the entire file, giving an "unknown script error", meaning the other two scripts are no longe recognized either.
-
View User Profile
-
Send Message
Posted Jun 2, 2014I tried to do
@IF b <hasmoney:<playername>:100>
@CMDCON eco take <playername> 100
But the script is completely unresponsive. Nothing printed in the console or the chat. No change in balance.
If I change the second line to
@PLAYER test
It does work.
Any ideas?
-
View User Profile
-
Send Message
Posted Jun 2, 2014how to i make it do it for everyone on the server? @CMDCON pex user @a group set red ?
-
View User Profile
-
Send Message
Posted Jun 2, 2014Solved. (Sort of)
I fixed it by backing up my scripts, deleting my VariableTriggers directory and reloading the server. This created the directory again and I simply added my scripts and they worked. Not sure what the issue was but must have been something I missed.
-
View User Profile
-
Send Message
Posted Jun 2, 2014@TehSaltyOyster
Make sure you only have 1 VT jar in your plugins folder. You can also pm me the script that isn't working
-
View User Profile
-
Send Message
Posted Jun 2, 2014When I use /vt rs it says "Loaded 10 scripts from 2 files" So they are in the right directory and in the correct file format.
-
View User Profile
-
Send Message
Posted Jun 2, 2014@TehSaltyOyster
Check to see if your scripts are in the folder and try /vt rs
-
View User Profile
-
Send Message
Posted Jun 2, 201402.06 17:59:29 [Server] Startup [17:59:29 ERROR]: [VT] Script Error: Trigger: world_Run Script: Trigger Line 1 - @CALL unkown script towns:town1enter Ignoring line and continuing
It won't recognize any scripts now. It was working perfectly a minute ago. I don't remember making any major changes since it last worked. It recognizes example:TestExample1 but not any of the scripts I have made. If I add the scripts to the example.script.yml, it still does not recognize them, only the two scripts that came preloaded. This suggests I formatted wrong, but here is the script:
[spoiler="show message, hide message"] Scripts: pint: Script: - '@IF <hasmoney:<playername>:2>' - '@CMDCON eco take <playername> 2' - '@PLAYER You purchased a pint for $2!' - '@CMDCON effect <playername> 9 6 1' - '@ELSE' - '@PLAYER You don't have enough money for a pint.' [/spoiler]
-
View User Profile
-
Send Message
Posted Jun 2, 2014@Lyoko_Firelyte
Wow, thought I at least did that part right, not sure how that happened!
Thanks a lot though, this solves a plethora of my problems
-
View User Profile
-
Send Message
Posted Jun 2, 2014@TehSaltyOyster
You are most likely using an outdated version of the plugin, try updating :)
-
View User Profile
-
Send Message
Posted Jun 2, 2014Every time I try to use the @MODIFYPLAYER command, it says "Unknown command @MODIFYPLAYER" in the console.
For example, I made a test command (/test) by using:
/vtcmd test @MODIFYPLAYER <playername> FLYING true
and used /vtcommandoverride test true
Then when I type /test it does nothing and returns:
02.06 17:23:30 [Server] Startup [17:23:30 WARN]: Script Error: Trigger: Cmd_test Script: Trigger Line 1 - - Unknown command @MODIFYPLAYER
to the console.
I also tried to make a test script (test.script.yml) which reads as follows: Scripts: fly: Script: - '@MODIFYPLAYER <playername> FLYING true'
And when I run /vt run test:fly TehSaltyOyster
I get the same error in the console: "Unknown command @MODIFYPLAYER"
Any ideas?
-
View User Profile
-
Send Message
Posted Jun 2, 2014@Heterosapien
Thank you :)
-
View User Profile
-
Send Message
Posted Jun 2, 2014@price164
Actually, that's one of the easiest things to do with this plugin. First you need to determine if you want it to trigger when the player walks over a tile (making contact with a tile below them), in which case you will want to use a walk trigger, or move inside a cubic area that you have defined, using an area trigger.
If you decide to do walk triggers, all of the floor blocks must be covered. If you want to use an area trigger, look at this page: http://dev.bukkit.org/bukkit-plugins/variabletriggers/pages/docs/triggers/
The script you use can be either @TP [coordinates] or @CMDOP tp <playername>
Also make sure you don't confuse the syntax with command block notation. @ is always used to designate the beginning of a script and should never be used inside the script.
-
View User Profile
-
Send Message
Posted Jun 2, 2014I request help another time :
I'm trying to do this: When a player goes into an area, he's teleported to a location (command execution /tp @p or /warp ...), is it possible to do that with this plugin ?
Thanks
-
View User Profile
-
Send Message
Posted Jun 2, 2014@TehSaltyOyster
@MODIFYPLAYER [player] FLYING true
-
View User Profile
-
Send Message
Posted Jun 2, 2014@Lyoko_Firelyte
It seems like every player is notified when their flying status is changed.
I'm deopped but it still tells me when my flight has been disabled.
Other than that though, the other commands seem to work silently.
-
View User Profile
-
Send Message
Posted Jun 2, 2014@TehSaltyOyster
Only OP players see the [Console] stuff.
-
View User Profile
-
Send Message
Posted Jun 2, 2014Apparently @CMDCON does hide the "Giving 1 of STONE" messages, but it doesn't appear to hide "Fly mode Disabled for PLAYER", and pretty much any other command except for /give.
I really need to apply effects to players but it always says [CONSOLE: Given CONFUSION (ID 9) x 2 to PLAYER for x seconds]
Its pretty distracting and ugly to the player and I'd really like to hide it. I know its possible because CommandSigns allows you to run any command without printing any text to the chat, but maybe its not possible with this plugin.