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 Sep 8, 2014Question about<cmdarg:1> returns a null text if it doesn't exist. Is this the word "null" or a string of zero length that is termed to be a null string?
-
View User Profile
-
Send Message
Posted Sep 7, 2014@Lyoko_Firelyte
Because I need it automated. The way I handle the UUID's is by just keeping the Object vars like I always had them ($<playername>:var) and I also have an Object uid.<playeruuid>, which stores the name of that playuuid. I then have added a check on login, when uid.<playeruuid> != <playername>, then the script would have to move from $oldname.vars to $<playername>.vars and delete the old object. This is not as easy as I hoped it to be. Good thing there is still time until name changing will be implemented.
-
View User Profile
-
Send Message
Posted Sep 7, 2014@H8llfire
I'm not 100% sure if that will work but I do remember using that previously, but there's no easy way to rename variables other than opening a text editor and replacing all occurrences of "A" with "B". Actually, why don't you just do that?
-
View User Profile
-
Send Message
Posted Sep 7, 2014@Lyoko_Firelyte
I thought of that, too, but I had in memory that VT had issues if you supply an object variable as the second argument. This was possible: @SETSTR $some.string <var:$some.string>, however I'm already using a functional placeholder inside my moving script, so that wouldn't work. However if you tell me that what you said definitely works, no problem. I will be testing.
-
View User Profile
-
Send Message
Posted Sep 6, 2014@H8llfire
@SETSTR $some.string $some.oldString
-
View User Profile
-
Send Message
Posted Sep 6, 2014Is there an easy way to move an objects variables to a new name?
-
View User Profile
-
Send Message
Posted Sep 6, 2014@googlebuscus
I'll either need to see the code you're using to add them / remove them to it, or you could use @VTSystem.OnlinePlayers as that updates automatically and is already provided...
-
View User Profile
-
Send Message
Posted Sep 5, 2014@IF @Online.Players ?= <cmdarg:1>
isnt working. Help?
I have join/leave events adding each player and removing duplicates, so all the names are in there but the script never states the above IF as true even when the player IS online.
In Script Commands documentation, "Also check if something is in the list with @IF @player.list ?= WinneonSword"
-
View User Profile
-
Send Message
Posted Sep 4, 2014If anyone can give me suggestions, please read my new discussion in the forums;
What is the best way to get VT to update from Trigger.yml files?
-
View User Profile
-
Send Message
Posted Sep 2, 2014@Lyoko_Firelyte
In the future will it ever be possible to use @CANCEL in the middle of a trigger (Instead of just the first line)
-
View User Profile
-
Send Message
Posted Sep 2, 2014@JoelMinister Going back to the forums.
Now, @TP isn't working for me. It did work before but every time I make a change to my area trigger it quits working. Then after several hours of fiddling with it, it starts working again. If anyone can help, Use this link to my full issue discription in the forums.
Addendum: Found my problem. It was a real strange fix.
-
View User Profile
-
Send Message
Posted Sep 1, 2014Neo, you can cancel and then test for stuff and broadcast your own messages accordingly.
-
View User Profile
-
Send Message
Posted Sep 1, 2014@KyadCK
Then what is the use of it ? If we can't test if we want to cancel the event or not ?
Because I thought that canceling an event when we don't want it to happen is great, but if we have to cancel it every time just for some conditions... it's not that usefull...
-
View User Profile
-
Send Message
Posted Sep 1, 2014@neomatamune
@CANCEL only works if it is the very first line in the event.
-
View User Profile
-
Send Message
Posted Sep 1, 2014Does anyone know on which events the @CANCEL command works ? Because I tried to use it to cancel Chat events so I can blacklist some words or just force people t write passwords without giving them to other people, but it doesn't want to work :s
- '@SETSTR $<this>.word test'
- '@IF s <chatline> ?= $<this>.word'
- '@CANCEL true'
- '@PLAYER &6You said test didn''t you ?'
- '@ENDIF'
-
View User Profile
-
Send Message
Posted Aug 31, 2014@JoelMinister
You are quite right. I'll start a thread in the forums tomorrow and post a link here.
The reason I started posting my issues here is that no one hardly goes to the forums. There are postings in the forums and tickets submitted there that are over a year old without acknowledgement let alone being answered. That's why I started posting my issues here. Everyone lands on this page and most take interest as to what's being posted. Even a bad response is better than no response at all.
-
View User Profile
-
Send Message
Posted Aug 31, 2014@AncientTom
I think we're spamming up the comment page here :P maybe start a thread and post a link to it on here and we'll carry on there?
-
View User Profile
-
Send Message
Posted Aug 31, 2014I have just stumbled onto, again, the problem of using a variable to set an integer paramiter.
@SETBLOCK $Door.Int1:$Door.Int2 <var:$Door.Location> I get must be integer message.
@SETBLOCK <var:$Door.Int1>:<var:$Door.Int2> <var:$Door.Location> No error messages and no block modified by @SETBLOCK. This only works with hard codded integers.
The last time I used @SETBLOCK for automating doors I had to create an eighty-three line subroutine to replace 4 lines of script to open and close a door because @SETBLOCK will not accept varibles. It would be nice if we could use variables here to.
-
View User Profile
-
Send Message
Posted Aug 31, 2014@JoelMinister
I am beginning to feel like the boy who cried wolf with all the problems I have been having with VT. Some of them have been caused by assumptions and over sites on my part. When I start blogging for answers, it's only after I have exhausted all possibilities that I can think of. Sometimes there are things that I overlook, but that's why I come crying for help.
My assessment, as it stands now, after a full day of trying every conceivable syntax variation, I have concluded in my mind that <signtext::> will not work using variables. Variables within <signtext::> do not get evaluated unless they are contained within a <var:> placeholder. The placeholder requires a space to be present before <var:>. <signtext::> does not allow spaces in the coordinates argument. Therefore the only way I have been successful in reading a sign is to hard code the statement, <signtext:-124,41,-579:3>. <signtext: -124, 41, -579:3> will not work. :(
This is a very important addition to VT's arsenal if there were any way to use variables to pass arguments into it. Either removing the "space before" requirement for <var:>, have <signtext::> allow spaces in it's arguments, <signtext::> be able to evaluate the coords from a string variable, or get <signtext to accept variables without the need of wrapping them in a <var:> placeholder would fix this.
-
View User Profile
-
Send Message
Posted Aug 31, 2014@JoelMinister
I have tried that several times and the only way I can get VT to evaluate the integers inside the variables is to wrap them in a <var:> placeholder and add a space before each <var:>. The problem is, that <signtext::> will not accept any spaces in the coordinates argument. Besides, you are feeding it a string and <signtext::> demands comma seperated integers.