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.
thats because you still need an @ELSE and an @ENDIF, and your obj. variable names should start with a $ and because you are doing it in game there is a possibility that it set it to false for you before you added the poof, thats why for such single position triggers i would not use a <this> that way you can check what the current value is for that object variable, without having to type it all again. For example you could place a sign next to you and put /vtc @BROADCAST $<playername>.foobar
so if $<playername>.foobar is true you will see a broadcasted server message saying TRUE, or FALSE if false, where foobar(or whatever you want to call it, just remember it is case sensitive) is used instead of <this>
@PoorBoyDrew
I typed that in exactly, and it didn't work. I did these commands:
It never worked. When I activated the script it didn't 'poof'.
Common guys. there's hundreds of us downloading this and all @lexlaiden is asking for us to do is show we like it by going to the curse link and clicking the Like are we so lazzy that we can't do this?
http://www.curse.com/server-mods/minecraft/variabletriggers
@rofl_disney put thist at beginning
@IF b <playername>.<this> = false
@SETBOOL <playername>.<this> true
I think this works if you never want that player to set off this trigger agian
How do I make it so once one player runs a script from clicking a block, that he cannot do it again?
206 downloads and only 14 likes, expected a ton more by now :S
this is by far the plugin with the most functionality combined with ease of use
EDIT: @lexlaiden awesome :D
@Dennijr
Yea I'm thinking that something along those line will get added at some point. just don't know when.
@lochlain000
Yes I am working on that now inbetween other minor things.
@ray73864
The idea has been discused. and will probably end up in a future release.
Remember I'm gonna counting the likes on curse and see just how many of you acually like VariableTriggers. If you use it and benifit from it then a few second to click a Like can't be to much to ask.
http://www.curse.com/server-mods/minecraft/variabletriggers
Is there a possibility of a chat trigger?
We get so many people just saying 'help' on chat it would be nice if the game could just tell them to read the signs, etc...
Not sure if this is asked already but how one can edit the wrongly typed commands, for example in vtclick without access to the YML file and without the need to remove all and restart?
PS: Override toggle for mods would be nice, so they are not affected by the scripts like gamemode changes and such
just a thought, but something that might be a neat addition is a trigger which activates at a certain time of day in-game, along with a way to get the current time of day. this could open up many possibilities for things such as raising a drawbridge / closing a door at night (also timed secret passages) or giving a player 'X' time to make it to an objective.
I put a request on our server site to help out on the curse likes
Still only 10 likes?? C'mon people!
@Ian_mac
I think thats a goo idea. I'll put it on the list.
And don't forget everyone
If you like VariableTriggers and want to see it continue then help grow the userbase. Go to the {{http://www.curse.com/server-mods/minecraft/variabletriggers
I'm gonna count the likes on curse and see just how many of you acually like VariableTriggers. Show me the love.
http://www.curse.com/server-mods/minecraft/variabletriggers
I fell in love with this just by concept. It's such a amazing thing :D
I do have a question, Is there a way to edit a line of text in a script ingame?
for example I have have an area that opens a gate when there are more than 0 players inside the area, and closes it when no one is around. However i put @IF $Player.count > 0 Rather than the correct @IF i $Player.count >0
If there isn't such a command in game it should be added, something along the lines of /vt [Trigger type] editline [Linenumber].
Thank you for such a fast reply. :) Awesome plugin by the way man!
@playajames420
I have a forum dedicated to scripting questions. Please use that thread and save this main page for questions that are not listed in the forum. Thanks.
NPC's are seen as players by Bikkit @IF s <entitytype> = PLAYER
then test <entityname> the best way to do this is if you name the NPC's that you want interaction with is to start all their names witn npc like npc_Jack then just do this
@IF b <startswith:npc:<entityname>> = true
this will be true if <entityname> starts with npc
How would I go about using /vtevent Interact to trigger a specific NPC(Citizens). Where do I specify what npc the event is for?
@deleted_6837836
to your questions
1) You can toggle any block an the reference to 35(wool) :4(databyte) is to show you can set the data byte also this 35:4 is yellow wool and for torches 50:0 the data byte effects possitioning of torch same holds for most blocks like stairs and half blocks
2)Yes use @GETBLOCK $obj.var location saves block and data byte change block with @SETBLOCK 35:4 [location] and then change back with @SETBLOCK $obj.var [location]
This is so confusing.. especially $Object.Variables.. haha I'll learn it eventually, this is an awesome plugin.
Have a few questions as a newbie though,
1) In the Script commands page, "Example: @TOGGLEBLOCK 35:4 231,69,177" Why is wool being toggled? I mean I get toggling redstone (shown in the video), but why wool? Is the wool rigged to run a script?
2) So you set @GETBLOCK, and change blocks using @SETBLOCK. How do you change it back? As @SETBLOCK [Obj.Var] [LOCATION]?
@surfarcher
as a fellow programmer, i would love to see loops added aswell, and i agree with the toggle idea, something that says "if you turn this on, you are willing to risk your server's life" :P