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.
@lexlaiden <sub>put an area that spans across both sides of door and when they type /open"</sub>
By no-slash command I understeand ''open'' instead of ''/open'' :P
I just want to make feel that this is spell. So everyone will see on chat that he said <sub>open'' - with no slash etc. I just want to make voice-spellcasting system. And spellcaster should too feel that this is spell instead of command. There will no be any problems that someone accidentaly run this because spells will be in ancient language :P</sub>
I just started a new category in our forums Help Docs For User by Uses
I don't think my documentation is easy to follow for some people, so for those of you that already have a good understanding of VariableTriggers please visit this section and past a new thread per topic and cover some of the areas of how it works in your own document for those who can't follow my documentation.
http://dev.bukkit.org/server-mods/variabletriggers/forum/helpdocs/
Thanks
@lexlaiden
haha figures, silly that it didnt cross my mind to check when i found out you could use /vt setint and whatnot. my original question was asked though because the documentation only has /vt setloc in the commands list and is missing @SETLOC in the script commands list so i guess i just initially assumed they were for the same functionality, just located in different places.
in short, my bad for not checking ingame haha and i now know that theres global and private variables :P
@Byamarro When this is released make a command trigger called open and setoveride to true
put an area that spans across both sides of door and when they type /open
have your script test to see if thay are in this area
@IF si <getarea:<playerloc>> = Door1Area
then @CALL the script to open this door if there in another area with a door call script to open that door
a better way would be to first write your scripts to open doors and save them as opendoor1, opendoor2 in a script file and then create your areas and name them door1, door2 then you could just @CALL filename:open<getarea:<playerloc>>
be sure to create one dummy script in this file named opennull
@lexlaiden <sub>Read http://dev.bukkit.org/server-mods/variabletriggers/forum/newfeatures/40337-whats-been-added-so-far-the-the-next-upcomming-release/#p1"</sub>
But will it work with no-slash commands?
@Dennijr
its allready there! Type /vt ?
/vt help page 1 of 5
VariableTriggers Aliases - vtriggers, vt, vart
/vtrigger [list|setloc|setint|setbool|setstr|setstr
|
getint|getbool|getstr|addint|subint|addstrl|delvar|delobj|
run|setarea|definearea|getarea|
savetriggers|reloadtriggers|reloadscripts|autosave]Other commands... type /vt ? 2
@lexlaiden
couldnt @SETLOC be a script command aswell, as in @SETLOC mem.loc $<playerloc>?
EDIT: OH i see, when you use /vt setloc, you have access to the location variable from any script, rather than just a script which could call it... just found out you could use /vt setint, /vt setstr and /vt setbool :D
@Joxiscraft
PLEASE READ through the documentation!
especialy http://dev.bukkit.org/server-mods/variabletriggers/pages/docs/place-holders/#w-place-holders-specific-to-plater-death-entity-death you need to test to see if he was killedbyplayer
@Dennijr
Because @SETINT and @SETSTR are Script Commands and /vt setloc is an ingame command
@lexlaiden
hey, so i just realized, is there any specific reason that /vt setloc is typed differently than the other dynamic variable setters? (/vt @SETINT, /vt @SETSTR, /vt @SETBOOL)
@Byamarro
Read http://dev.bukkit.org/server-mods/variabletriggers/forum/newfeatures/40337-whats-been-added-so-far-the-the-next-upcomming-release/#p1
@Joxiscraft
I don't know maybe in the future
Would be nice if there would be added PlayerSay Event Trigger. Example: Players enter to area near huge gate and says ''open'' and it opens.
@lexlaiden
i dont suppose there is a way to delete the post and have an auto PM sent to the poster for the reason? and of course dont answer the question on this wall :P basicly forcing them to post in the forums to get an answer
Can you add commands to items? Such as right clicking on an item will execute a set command. This would be an awesome feature
@lochlain000
@PAUSE does not pause a trigger it pauses the script. Each time a player activates a trigger a new script is started. The only way to keep a trigger from activating again is with @COOLDOWN.
Your placement of @PAUSE in that snipet of code is useles cause there is no reachable code after either pause.
What do I have to do to get you guys to start posting script problems and questions in the forum?
http://dev.bukkit.org/server-mods/variabletriggers/forum/
@lexlaiden
Hi,
From same place as Ray.
The @COOLDOWN started to work for some odd reason, no idea why it did not work first but well works now so am not complaining, anymore :) But noticed that if you have a @PAUSE before @ELSE or @ENDIF it does not pause at all. Below is example code.
if you remove the @COOLDOWN 3 you could spam it like crazy without any pause at all but if you move the @PAUSE one line upwards so there is command after it, then it works as expected. Not sure if feature or not but was bit baffling and took sometime to locate.
@ray73864
FIRST you should always put your @COOLDOWN at the beginning of a script. Especialy long scripts and ones with @PAUSE in them. the cooldown don't start till the line its on is reached.
SECOND You must check consol output to see if there is a script syntax error. You may have typed @COOLDOWN wrong @Cooldown or @COLDOWN or COOLDOWN or @COLLDOWN are wrong and line will be ignored.
Apparently the 'cooldown' isn't doing anything, we set a cooldown on a clicktrigger, one of our players spammed the crap out of the button and it didn't have any cooldown at all.
Wow almost 24 hours on that approval.
I have already added the next main feature for the next release in that time. Command Triggers
Read up on it http://dev.bukkit.org/server-mods/variabletriggers/forum/newfeatures/40337-whats-been-added-so-far-the-the-next-upcomming-release/#p1
I am still counting the LIKES on curse, and I must say I am a little disapointed. Short of donating you can at least let me know you appreciate the work I put in on this plugin.
http://www.curse.com/server-mods/minecraft/variabletriggers
For some reason the bukkit dev team is taking a long time to get to the plugin approvals so you can see V1.1.3
For those waiting for VT v1.1.3 here is where you can get it.
http://dev.bukkit.org/server-mods/variabletriggers/files/13-variable-triggers-v1-1-3/