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 Mar 19, 2014A pain for me:
@IF s $think.somethingrandom = 0
@OR s $think.somethingrandom = null
@PLAYER hi
basically, i cannot check unset variables. Any workarounds here? without adding bool?
-
View User Profile
-
Send Message
Posted Mar 19, 2014@laacis2
I have something better :) No spoilers though!
-
View User Profile
-
Send Message
Posted Mar 19, 2014Another useful function would be to be able to test a string for a piece within it, such as:
@IF <partstr:$obj.var = laacis2
tests string that has something like this laacis2,lyoko_firelyte,lexlaiden for if it has laacis2 within.
and @DELPARTSTR $obj.var laacis2
to take laacis2 out of string and give result ,lyoko_firelyte,lexlaiden.
oh and it kinda seem to keep hiding > symbols from my comments lol
-
View User Profile
-
Send Message
Posted Mar 19, 2014@Lyoko_Firelyte
I can't wait for that! I want to script! Now!
*Drops every single chat plugin out of the window* =p
Edit: .. That does not seem to work either, I only got 6 plugins now - WorldEdit, Voxelsniper, Multiverse, TerrainControl, VariableTriggers and Vault now.. Oh well, it seems I just have to give up and wait for Friday then. Can't wait. :)
-
View User Profile
-
Send Message
Posted Mar 19, 2014@Aux Really wishing I put <playerprefix> in a try catch before releasing. Basically it can't hook to a chat plugin so it's throwing a fit. I use PEX while testing so I overlooked this issue, but it is fixed in 1.3 which I plan to release by Friday, there's a lot of new fancy features.
-
View User Profile
-
Send Message
Posted Mar 19, 2014@Lyoko_Firelyte
I love you! (Sorry Lex, but don't worry! I still love you to!)
EDIT: Woeps! It seems that even when I put Vault on the server, I still get errors thrown at me, whenever I try to trigger a trigger.
http://pastebin.com/HGkYfzgZ
EDIT 2: Got another error log for you. This is together with the first pastebin. Probably they belong together.
http://pastebin.com/mF3xpAJt
-
View User Profile
-
Send Message
Posted Mar 18, 2014@AuxiliumSoT
Put Vault on your server, I accidentally forgot to make vault optional in the 1.7.2 update. This will be fixed in v1.3 (working on that now!) but if you'd like to use the new features in v1.2.7 just add Vault for now :)
-
View User Profile
-
Send Message
Posted Mar 18, 2014@Lyoko_Firelyte
So the <helditemname> is already in place!? Woah! That means I can script my idea to reality! Awesome!
EDIT: Woah, I feel stupid! Yes, it is already in place.. But now I have to figure out which trigger I have to use. What I want is that if a player right clicks on a particular item, it runs the script, do I have to use the vtclick trigger for that? Or?
EDIT2: Ah, its in the 1.7.2 update. Should have known that. I'll try again, but the previous time I updated I had several errors popping up when I tried restarting the server. I'll try to update it right now again.
EDIT3: Nop, the 1.7.2 update does not work for me. Every time I activate a trigger (does not matter which one) it generates an error. =( Error log: http://pastebin.com/Cv9t0uMX And no, I don't use Spout.
-
View User Profile
-
Send Message
Posted Mar 18, 2014@AuxiliumSoT
I'll take a look at that now, thanks :) And yeah currently the <helditemname> only applies to the clicked player. I may add a functional placeholder for checking other people's hands.
-
View User Profile
-
Send Message
Posted Mar 18, 2014Is there actually a way to see if a player is wielding a particular item? What I have found so far is that it might be possible with the event trigger and placing an @IF i <itemid> = *item of ID* with it, but I want to use it so that the player does not have to click on a particular block/entity to get the script running. Is that possible? And, if not, are there any other possibilities to achieve this effect? If it is possible, I'll demonstrate the script with a video and share the script with the rest of you all!
Also, I've created a topic in the requests section of the forum, and I'm not sure if you, Lyoko_Firelyte, have seen it already?
Thank you very much for keeping this plugin alive! I love tinkering with it every spare second I have!
EDIT: Oh, wow! I see that with the extension you created for VariableTriggers, that it IS possible! But - is it still up to date? Thanks!
-
View User Profile
-
Send Message
Posted Mar 17, 2014@Lyoko_Firelyte
ty for @SETBOOL idea, gonna try that.
-
View User Profile
-
Send Message
Posted Mar 17, 2014@laacis2
You forgot a greater than sign on the permission line.
Also, you could do @SETBOOL $joinmsgset.<playername> true to indicate that have one, and check @IF b $joinmsgset.<playername> = true later on.
-
View User Profile
-
Send Message
Posted Mar 17, 2014Can somebody please help me with Small issue with my join messages script:
Command /joinmsg.
@SETSTR $joinmsg.<playername> <cmdline>
@PLAYER &6You have set your message to:
@PLAYER &e $joinmsg.<playername>
Event join.
@IF b <haspermission:vt.joinmsg = true
@AND s $joinmsg.<playername> != 0
@AND s $joinmsg.<playername> != null
@BROADCAST $joinmsg.<playername>
Players who don't have message set, log in with their message saying 0
What i need, is no message, if it hasn't been yet set up.
-
View User Profile
-
Send Message
Posted Mar 17, 2014Lots of good suggestions guys, & I've been handling some tickets when I have time. Expect to see v1.3 sometime this week :)
-
View User Profile
-
Send Message
Posted Mar 16, 2014Oh and if you add world to setloc, it would make life much easier for multiworlders.
-
View User Profile
-
Send Message
Posted Mar 16, 2014@Lyoko_Firelyte
Yeah it didn't require vault before, since i have crafted my own eco script run by variable triggers (trying for pure vt server), and this target player online test is crucial for making eco script, as so far, i can create dummy eco accounts paying inexistent players.
Also very useful would be ability to create vtevent for use and destroy and maybe container access. And script command @DENY for situations as this:
- '@IF b <haspermission:vt.use = false'
- '@DENY'
- '@PLAYER You have no permission to use.'
or
-'@IF s <areaentered> = laacis2house'
-'@AND s <playername> != laacis2'
-'@DENY'
-'@PLAYER You have no permission to use in this area.'
-
View User Profile
-
Send Message
Posted Mar 16, 2014@laacis2
Ooh! Good suggestion!
And you're calling a method that needs Vault, add Vault to your server and it'll work. I think I know why that happened, and I've fixed it in the next build if you'd rather not use Vault.
-
View User Profile
-
Send Message
Posted Mar 15, 2014Also for future i would love to see an <isonline:<cmdarg:>> functional placeholder. That would allow me to test for many player related issues.
-
View User Profile
-
Send Message
Posted Mar 15, 2014@Lyoko_Firelyte
I renamed it to variabletriggers.jar and overriden the old one. Here's the full error
-
View User Profile
-
Send Message
Posted Mar 15, 2014@lexlaiden
Will do for the next one, sorry about that, Maven auto names the files with the version :)