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 Mar 7, 2013@Ancientarts
I'll try to make one on my test server tomorrow. 800 page editorial due today and its not done yet...
-
View User Profile
-
Send Message
Posted Mar 7, 2013can anyone link an example trigger that uses timer and a command that targets a player because i still cant get it to work. need this bad. god i wish there was a time trigger not just timer.
-
View User Profile
-
Send Message
Posted Mar 7, 2013@Mintelgen
Well, for starters you can't put a multiple response in the same script that runs at once; that does not many any sense. Here's a way you can do it:
-
View User Profile
-
Send Message
Posted Mar 7, 2013Can I have someone's help for debugging this script? I'm trying to make it so that whenever anyone who activates the script then says anything except for the right answer will die (for testing purposes). Here's the script I wrote so far:
Followed the example on the "script commands" page slightly, but the effect that I'm getting is that they'll say "Sure." and then die instantly. I've also tried putting in the @PAUSE at several locations.
-
View User Profile
-
Send Message
Posted Mar 6, 2013@lexlaiden
Can't you just fix the exceptions ? I would much rather have no crashes than new features. I'm pretty sure it won't take more than a hour or two.
Edit: A random player just got OP by an exception in VT. Not kidding. Extremely dangerous. http://pastie.org/private/scnb42358tzleko2wruytw
-
View User Profile
-
Send Message
Posted Mar 5, 2013well i doesnt i tryed it and does CMDOP CMDCON not a command for console i know we are targeting a playersname but where does the command come from the console, a player?
i donno is what im saying is making sense but it definitely is not working ive tried everthing
and my @CMDOP commands work in every other trigger.
-
View User Profile
-
Send Message
Posted Mar 5, 2013@Ancientarts
Try @CMDCON say test to see if @CMDCON works at all. As for the player issue, it should work with the '@CMDCON vt run commands:hgpoison $player1.hg1' because that command assigns the playername in $player1.hg1 as the name for whatever script it runs and then it runs should do @CMDOP poison <playername> which is the exact same as @CMDOP poison $player1.hg1.
-
View User Profile
-
Send Message
Posted Mar 5, 2013Ok the IF statement works but it doesnt seem to like any commands!
- '@CMDCON vt run commands:hgpoison'
doesnt work
but if i type /hgpoison
the command does work
so its something to do with the timer trigger><
EDIT: EEERrr
think i know why but i donno how to fix it /poison [player] is only a player command and timer doesnt return any player so console cant use /poison at all it needs to come from a player.
-
View User Profile
-
Send Message
Posted Mar 5, 2013@Ancientarts
Does the broadcast at least work?
Try this:
commands.script.yml:
-
View User Profile
-
Send Message
Posted Mar 4, 2013Timer:
CoolDown: 0
Script:
- '@SETINT $warning.night <hour:>'
- '@CMDCON poison $player1.hg1'
CMDCON also doesnt work
-
View User Profile
-
Send Message
Posted Mar 4, 2013@Ancientarts
Try that. The @BROADCAST <hour:> is just a test message to tell you the time. You can change it to @TELL YourMinecraftUsername <hour:> if you don't want to annoy players. Remove the message if it works. If you needed the number stored for other scripts, sorry about that, just try to add it back in.
-
View User Profile
-
Send Message
Posted Mar 4, 2013in /vtc trigger
- '@SETSTR $player1.hg1 <playername>'
- '@BROADCAST &3HungerGames: &5 $player1.hg1 &8was choosen for &7player1!'
- '@PLAYER &3HungerGames: &8To leave Que type &7" -hg leave "!'
- '@SUBINT $players.hg1 1'
- '@IF i $players.hg1 = 0'
- '@CMDOP warp hgs1 $player1.hg1'
- '@CMDOP gamemode $player1.hg1 0'
- '@CMDOP ci $player1.hg1'
^ above works
Timer:
CoolDown: 0
Script:
- '@SETINT $warning.night <hour:>'
- '@CMD poison $player1.hg1'
- '@IF i $warning.night <= 19'
- '@BROADCAST &3HungerGames:&7Time: $warning.night &8Yours bones start to shake
seek shelter!'
-
View User Profile
-
Send Message
Posted Mar 4, 2013Hey, I just bounced on here to let you guys know that, thanks to LordMarcus for making some donations on the Vote page, when I get back to it in a month you will be getting some nice features added.
Thanks LordMarcus
-
View User Profile
-
Send Message
Posted Mar 4, 2013@Ancientarts
What is the script that you have? The timer event is supposed to run every 60 seconds and only runs for the world that the event is in, as far as I know. Edit: The reason @CMDOP will not work in the timer event is because there is no player associated with the timer event.
-
View User Profile
-
Send Message
Posted Mar 4, 2013Ok ive been playing with my script for a long time now and still no luck it would seem nothing works in the /vtevent Timer
i can't Use @CMDOP poison $player1.hg1 <- that command does work in /vtc. also cant use @IF statements in Timer events
thus i am un able to complete my goal of making this game on my server. Variable Triggers really needs to add a Time Trigger so when the time
hits a certain time we can run events and actions >< i am so saddened by this and if there is a way please let me know
-
View User Profile
-
Send Message
Posted Mar 3, 2013Whenever I use @CMDOP it tells my users that they don't have access to that command even though I'm using the bypass function.
-
View User Profile
-
Send Message
Posted Mar 3, 2013@h3xx3
Its <hour:> not $<hour:>. You only use a $ if it is a variable that you stored, such as $test.variable. Anything on the "Function PlaceHolder" page does not require a $ to work, in most cases.
-
View User Profile
-
Send Message
Posted Mar 3, 2013I'm having trouble making it so that you can't enter a certain area during the day. Here is my script currently.
Basically it doesn't work, nothing happens when you walk into the area no matter what.
-
View User Profile
-
Send Message
Posted Mar 3, 2013@Ancientarts
I'm still figuring out the time stuff myself, but when writing a command it would be /vtclick @CMDOP posion <playername> for example, not /poison.
-
View User Profile
-
Send Message
Posted Mar 1, 2013thank you. im having one last problem im making a hungergames arena and i want it so at night everyone gets @CMDOP /poison <playername> now thats a command from another plugin i have but i cant fined a Time variable in the lists here in variable triggers i see hour: and min: and timer event but i dont see how i can use those i need to to be a trigger.