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.
@Trouvo
Yes Only need an onspawn trigerer and it's perfect :D
@Xiamix
this plugin already does all that, read through the above @PAUSE @COOLDOWN @CMD @CMDOP @CMDCON
anything you can do by typing it in as a command you can do with this plugin, anything, the only real limits are when the triggers occur and why they occur
oh and an easy plugin for scheduled server events like that would be mcmyadmin, tho i do not know why you would want to reset your game after 20min unless you have some serious memory leakage which is a problem that should be fixed and addressed on a different forum
Nice plugin, I think you should take a look to a plugin I just reported 'cos it's inacive. Take a look to rtoggers, they can give you a lots of ideas. for example, it would be great if you could add a timer, a delay for the timer, a force all players command, a console command, say command,... thanks, I'll be watching this plugin.
PS: I need a plugin who supports timers, dalays and console commands to reset my game after 20 min. :D
Any way you could make this into a compiler?
Thank you, i figured out what i was doing wrong, might i suggest an event for PlayerRespawn, setting it now to tp after a pause, but never know how long a person may leave it on the respawn menu and opens it up for exploit, in our case anyways
This is still by far the most useful and powerful plugins i have ever seen/used, i love how limitless the possibilities are
@Trouvo
An unset variable will return as default a 0 if used anywhere except in the case of
@IF @OR @AND
in these cases you tell it what type you are testing [s|i|b]
So if the variable is unset when you test a default value will be used to test against.
s=String Default ""
i=Integer Default 0
b=Boolean Default false
Be sure you got v1.0.9b
and move script questions to http://dev.bukkit.org/server-mods/variabletriggers/forum/scripts/
I have a quick question, well 2 part question
if a player has not been given a variable that is being tested in an if/else script does it read it as 0? or null?
can you make an if statement to test if null?
example: '@IF s $<playername>.race = null'
hmm...also just got the updated 1.0.9
can i get an example of an event trigger? not sure if i am doing it right, lets say on playerdeath the player that died gets teleported?
I would just like you guys to look at this script posted by @tenowg It give you an idea of what YOU can create with VariableTriggers
http://dev.bukkit.org/server-mods/variabletriggers/forum/sharescripts/38867-simple-mob-kill-trackers-and-reward-script/#p5
@darkwalker247
I have made a ticket of this but have a question. Did you read above
Place Holders Specific to BlockBreak & BlockPlaced Events
<blockid> is ONLY for BlockBreak and BlockPlaced Events. If your testing this on a different trigger type then your gona get a script error.
Ho i see, your using a Funtional Place Holder inside another Functional Place Holder
- '@AND b <isblocktype:<relativeloc:<triggerloc>:0,-1,0>:80:-1> = true'
Can't do that! only Place Holders and $obj.Var can be used in Functional PH's
You could do this
- '@SETSTR $temp.loc <relativeloc:<triggerloc>:0,-1,0>'
- '@IF i <blockid> = 92'
- '@AND b <isblocktype:$temp.loc:80:-1> = true'
It says I have an error in some code but I can't find any: - '@IF i <blockid> = 92' - '@AND b <isblocktype:<relativeloc:<triggerloc>:0,-1,0>:80:-1> = true'
it says: Error @IF: Wrong number of arguments passed.
v1.0.9b has been uploaded. You should already have access to it if you subscribe. If not then once the bukkit team aproves it you will be able to download it.
It fixes some important issues, so do get it.
@lexlaiden
Well it would be pretty awesome if you somehow made it possible to run a LUA script...
Btw, is it possible to become a tester? Just because I run a server with alot of people and I could report bug reports pretty fast if there is any...
@vilsol
I have never used lua and realy don't know what it is.
This is no language per say it's just a one command per line, yes we use placeholder functional placeholders and $obj.vars in the one line.
I have a question...
Which scripting language is this plugin using? Lua?
Because I want to define an internal variable that is active obly in that script...
Edit: And is it possible to define arrays functions and other that kind of stuff.
Pretty much what i want to make is a shop. It would have signs and when you click them they will give you money and you will loose the block. But when i want it to be possible like
function addmoney(Block) { Sets player money by searching in the array for the value of Block }
Nice man, a very well made plugin. This actually took time rather than some of the plugins out there ;) Keep it up, and maybe you will get yourself into a group like ProjectTeam that created SideKick ;) -emericask8ur
OK I just uploaded v1.0.9
I think you guys are gonna love the new features!! Just waiting for the staff to approve the upload. In the mean time click here to view the changes
http://dev.bukkit.org/server-mods/variabletriggers/forum/newfeatures/38633-here-is-what-has-been-added-so-far-in-the-upcoming/#p1
I am almost ready to release v1.0.9 I just have a couple more things and to finnish testing. Look here to see what will be new in this release. http://dev.bukkit.org/server-mods/variabletriggers/forum/newfeatures/38633-here-is-what-has-been-added-so-far-in-the-upcoming/#p1
totally missed that..... for shame....
@Trouvo
Please read the section above on Separate Script files
http://dev.bukkit.org/server-mods/variabletriggers/#w-new-feature-separate-script-files
So save a script in a file and then when you mak a new trigger
/vtclick @CALL filename:scriptname
For an example see http://dev.bukkit.org/server-mods/variabletriggers/forum/sharescripts/38579-a-reusable-realative-script/#p1
Just had a thought while working on our server, would it be possible to add a copy trigger command like /vtwalk copy /vtclick copy?
so that when you click on the trigger and paste it somewhere else the only thing it changes is where the trigger is but not the script? would be very useful ingame when making small changes