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 20, 2013VariableTriggers v1.2.2.Tekkit : Minecraft Version 1.4.5
Is this version intended to work with Tekkit Classic, or is it only for Tekkit Lite? Thanks for the support, -Daniel
-
View User Profile
-
Send Message
Posted Apr 19, 2013@mrbuddy13
Do this in the following order.
1. /vt autosave
2. Edit and save your scripts/triggers
3. /vt reloadtriggers
4. /vt reloadscripts
5. /vt autosave
-
View User Profile
-
Send Message
Posted Apr 18, 2013Am I the only one who's scripts don't save when your editing within the variable triggers file. I am really tired of writing 3 or 4 scripts and doing /vt reloadtriggers and nothing saves.... Editing within the config file is by far a better experience, until you try saving your script. Is there any fix for this?
-
View User Profile
-
Send Message
Posted Apr 15, 2013Two questions today. One: How would one be able to run a command right when the server starts? I basically want to reset some variables when it comes online after a restart or the very first time starting. Two: I have a PVP System enabled, is there a way to do a certain time of day EVERY DAY it sets a variable to shut off the PVP System? I want that to happen to keep people from exploiting the kill point system I've created.
-
View User Profile
-
Send Message
Posted Apr 14, 2013dafuq...........
Console dosent have permissions to do vt commands lol
i tried vtcommandremove and it told console i didnt have permisson XD
-
View User Profile
-
Send Message
Posted Apr 14, 2013Hey guys, thanks for the help last time i just have one more question, or well if someone could write me up the script for what i am trying to do that would be soo cool. So what i am trying to make is a rank up system for a paintball server, based on their cash system that they have. But im not sure how to do the if/then statements and set variables. I want it that you can buy a rank and it takes away their money, if they have enough.(i will include the amounts) The paintball plugin is here.
http://dev.bukkit.org/server-mods/paintball_pure_war/
I wouldn't be asking, but u can go into negatives the way i did it and there is no setting to change that, here are my ranks scripts, and how much they cost:
ranks:
Override: true
Permission: command.ranks
Script:
// cost of ranks
- '@PLAYER &aBoxer &7costs 500$, Use &e/boxer &7to advance.'
- '@PLAYER &eKiller &7costs 1000$, Use &e/killer &7to advance.'
- '@PLAYER &cRanger &7costs 1500$, Use &e/ranger &7to advance.'
- '@PLAYER &9Soldier &7costs 2000$, Use &e/soldier &7to advance.'
- '@PLAYER &dMarine &7costs 2500$, Use &e/marine &7to advance.'
- '@PLAYER &bGeneral &7costs 3000$, Use &e/general &7to advance.'
- '@PLAYER &4Note: You May only rank up one rank at a time, not skip.'
ACTUAL RANKS THEMSELVES:
boxer:
Override: true
Permission: ranks.boxer
Script:
- '@CMDCON perms setrank <playername> boxer'
- '@CMDCON groups add <playername> boxer'
- '@PLAYER &7You are now rank &aBoxer!'
killer:
Override: true
Permission: ranks.killer
Script:
- '@CMDCON perms setrank <playername> killer'
- '@CMDCON group remove boxer <playername>'
- '@CMDCON group add killer <playername>'
- '@PLAYER &7You are now rank &eKiller!'
ranger:
Override: true
Permission: ranks.ranger
Script:
- '@CMDCON perms setrank <playername> ranger'
- '@CMDCON group remove killer <playername>'
- '@CMDCON group add ranger <playername>'
- '@PLAYER &7You are now rank &aRanger!'
soldier:
Override: true
Permission: ranks.soldier
Script:
- '@CMDCON perms setrank <playername> soldier'
- '@CMDCON group remove ranger <playername>'
- '@CMDCON group add soldier <playername>'
- '@PLAYER &7You are now rank &9Soldier!'
marine:
Override: true
Permission: ranks.marine
Script:
- '@CMDCON perms setrank <playername> marine'
- '@CMDCON group remove soldier <playername>'
- '@CMDCON group add marine <playername>'
- '@PLAYER &7You are now rank &dMarine!'
general:
Override: true
Permission: ranks.general
Script:
- '@CMDCON perms setrank <playername> general'
- '@CMDCON group remove marine <playername>'
- '@CMDCON group add general <playername>'
- '@PLAYER &7You are now rank &bGeneral!'
-
View User Profile
-
Send Message
Posted Apr 13, 2013@Dinastya
Thanks, this helped me a ton, i wasnt sure how to do this as I am just starting to learn actually code, so i dont quite understand this type of stuff just yet. But i will remember this in the future and thanks alot.
-
View User Profile
-
Send Message
Posted Apr 13, 2013@beastzone You had it almost right :)
You need to set the boolean right after the rank is set.
So if you run the command it's first time false by default.
And then you run it and it's setting your rank and setting the boolean to true.
And then next time it will be true so it's telling they can't use it.
-
View User Profile
-
Send Message
Posted Apr 13, 2013hey, i have a quick question, that probably anyone who is good with this plugin could do. I am trying to make it so that when u are a default group, and type /boxer u get into my other group, 'boxer'. But i am also attempting to do that once u type it once, u cant do it a second time. here is what i have for script:
boxer:
Override: false
Script:
- '@IF b $<this>.<playername>hasrun = false'
- '@CMDCON perms setrank <playername> boxer'
- '@PLAYER &7You are now rank &aBoxer!'
- '@ELSE'
- '@PLAYER &cYou are already this rank!'
- '@SETBOOL $<this>.<playername>hasrun true'
- '@ENDIF'
i know it isnt right, so if someone could help me out by responding to this, or pm'ing me that would be very nice.
-Dan
-
View User Profile
-
Send Message
Posted Apr 13, 2013@PaTr0N
He did leave a comment a couple months ago.
He said he would be back beginning of april but he isn't back yet :(
And there aren't really any alternatives.
I use VT for a lot :p
-
View User Profile
-
Send Message
Posted Apr 13, 2013@Dinastya
My guess is never, i mean how hard can it be to leave a comment here to let us know what's going on. You'd be better off looking for alternatives.
-
View User Profile
-
Send Message
Posted Apr 13, 2013Anyone knows when lex is comming back?
He said beginning of April and it's 13 April already.
He really needs to fix a lot Async stuff.
I'm getting a bunch of crashes daily because of vt because of all async stuff.
Getting a bunch of errors like these and others: https://pastebin.com/5ik8SZwb
-
View User Profile
-
Send Message
Posted Apr 12, 2013@EncryptedCurse
Just use
if 0 doesn't work
-
View User Profile
-
Send Message
Posted Apr 12, 2013Why can't VT check if a player has $0?
Whenever the player dies, the console prints out "Script Warning: <hasmoney:arg1:arg2> arg2 cannot be Zero or Neg."
-
View User Profile
-
Send Message
Posted Apr 12, 2013@JackFastGame
While I hate the fact that you are trying to force your players to donate (wtf, that is so stupid), there is a simple way to keep track of the players total play time. Just make VT create a variable for each player on join, which is the current <secondticks:0>, and on logout event make the server sub that int from the current <secondticks:0>. This will give you the time in seconds the player has been online. You need to do some additional bug prevention, as VT might somehow "forget" to actually set the secondticks, so do some if checks if that number is really right, and divide with 60 or 3600 if you want minutes or hours.
-
View User Profile
-
Send Message
Posted Apr 11, 2013Can someone please help me
-
View User Profile
-
Send Message
Posted Apr 11, 2013@ImaGe_
I don't think there is one, but there is a partial way to do that (in theory, never tried it). A crude way to do it would be to setup a command trigger where it can set a powertool to a specific item (check for <itemid> on the setup) and then have it set to run "/vt run file:script <playername>" where the file:script would be the script you want them to run for that item. However, that wouldn't work for tools since the powertool blocks damage/use of tools while it is running a command. Partial way to do it, but its not perfect since I don't think the plugin has an event for it.
-
View User Profile
-
Send Message
Posted Apr 11, 2013@deleted_7919568
What problem are you having with CommandHelper? I seem to remember it took me a while to find the right syntax. I currently have something like this...
- '@CMD runalias /myalias'
-
View User Profile
-
Send Message
Posted Apr 10, 2013@midnightfang22
Okay, and any ideas on my "EDIT" post?
-
View User Profile
-
Send Message
Posted Apr 10, 2013@ImaGe_
1. Stuck with the @DIVINT, sorry. 2. What you do is setup a make-shift array list and then select a starting point, then loop through until it finds a number higher. Once you find it, then continue looping with that new name until you find the highest. Repeat for the next X times...Its a pain to do...