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 Apr 3, 2013Hi,
is there a way to send in arguments for a vtcommand?
Example:
VTCOMMAND /cool:
/vtcommand /cool @CMDOP me <args>
So player xyz who typed the command "/cool hey" would be this:
-
View User Profile
-
Send Message
Posted Apr 3, 2013Is it possible to trigger to add potion effects upon players?
-
View User Profile
-
Send Message
Posted Apr 2, 2013@meiamone
What are you using for your server to run? Spigot, Craftbukkit, Ligibot, Tekkit, etc? I don't get the error when my server starts, so some info might help.
-
View User Profile
-
Send Message
Posted Apr 2, 2013@meiamone
Is your version of variable triggers up to date? and if your server is constantly crashing maybe you might want to rethink how it's setup, that might influence the affect of variable triggers in any way?
-
View User Profile
-
Send Message
Posted Apr 2, 2013Anyone else getting "SEVERE Error occurred while disabling VariableTriggers v1.2.2 (Is it up to date?)"? It seems to still run ok, besides my server now having constant running out of memory crashes (1G, 20 slots).
-
View User Profile
-
Send Message
Posted Apr 2, 2013@ImaGe_
Not sure if this would work but it's worth a go. I may have made errors in the scripts but I think you'll get the basic idea.
Script:
- '@BROADCAST Test is now open! Type "/test j" to join in!'
- '@SETINT $Test.RandomNumber <random1to:10>'
Script:
- '@IF i $player.amt < 9'
- '@PLAYER Test is full.'
- '@ELSE'
- '@IF $<playername>.playing < 0'
- '@PLAYER You're already in Test!'
- '@ELSE'
- '@ADDINT $player.amt 1'
- '@SETINT $<playername>.playing 1'
- '@IF i $player.amt = <var:$Test.RandomNumber>'
- '@SETSTR $ChoosenPlayer.Name <playername>'
- '@PLAYER You have been choosen!'
- '@ENDIF'
- '@ENDIF'
- '@ENDIF'
Script:
- '@IF i $player.amt = 10'
- '@CMDCON pex user <var:$ChoosenPlayer.Name> add some.permission world'
-
View User Profile
-
Send Message
Posted Apr 1, 2013Is this at all possible? If so, how?
Concept:
/test j (joins them into test)
@IF i $player.amt < 9
@PLAYER Test is full.
@ELSE
@IF $<playername>.playing < 0
@PLAYER You're already in Test!
@ELSE
@SETINT $<playername>.playing 1
@ADDINT $player.amt 1 (to see how many players there are, obviously)
@ENDIF
@ENDIF
Later on, in another script:
@IF i $player.amt = 10
This is the part I'm stuck on.. I want to pick a player in test and give them a specific permission, but randomly. I don't know how I'd go about doing this.
Any help would be greatly appreciated.
-
View User Profile
-
Send Message
Posted Apr 1, 2013@EncryptedCurse
Would this look similar to what you want?
-
View User Profile
-
Send Message
Posted Apr 1, 2013@midnightfang22
Okay, thanks again, I just have ooone more question - is it possible to force a new line with @TELL? I tried '\n', but that didn't work.
-
View User Profile
-
Send Message
Posted Apr 1, 2013@midnightfang22
ok thanks
-
View User Profile
-
Send Message
Posted Apr 1, 2013@EncryptedCurse
Just make the '@CMDCON eco take <playername> 10' before the @IF or after the @ENDIF statement then. Pretty much what
@deleted_10868209
said. Also, just change the default value to something else for your question. For example, any of these 3 @IF statements will work. Those test for the default value of the variable, then change it to something other than the default to mark that they clicked the sign already:
-
View User Profile
-
Send Message
Posted Apr 1, 2013@EncryptedCurse
Just do this for Event PlayerDeath
- '@CMDCON eco take <whodied> 10'
surely that would work?
-
View User Profile
-
Send Message
Posted Apr 1, 2013@midnightfang22
That works, but only for player kills. I'd like them to lose money on death by any cause.
-
View User Profile
-
Send Message
Posted Apr 1, 2013is there a way to check if there is an object variable, like $player.<playername> so that i can register if someone has clicked a sign? im trying to make a like sign, like facebook likes, but don't know how to go about checking if they have already clicked it
-
View User Profile
-
Send Message
Posted Apr 1, 2013@EncryptedCurse
Just make the entire thing like this:
-
View User Profile
-
Send Message
Posted Mar 31, 2013@midnightfang22
Thank you so much! I just have a question - how can I add that to my existing PlayerDeath event trigger? This is what I have: http://pastebin.com/0WJw8H42
-
View User Profile
-
Send Message
Posted Mar 31, 2013@EncryptedCurse
-
View User Profile
-
Send Message
Posted Mar 31, 2013Is it possible to set up an event trigger for when the player kills another player?
I'd like to reward players for killing others and display a message for the killer saying "You were given $25 for killing <victim name>."
-
View User Profile
-
Send Message
Posted Mar 30, 2013aw poop, might just look at editing worldedit then :/
-
View User Profile
-
Send Message
Posted Mar 30, 2013@deleted_10868209
Nope. It runs the plugin command and the plugin outputs what it is supposed to. Can't prevent it without modifying the plugin with the command to not send the messages, sorry.