VariableTriggers

VariableTriggers

VT Logo

Fourms {{|Tickets / Bug Reports Share Scripts Video Examples Permissions About VT


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.

Arrow Vault

Arrow Script Commands

Arrow Triggers

Arrow Place Holders

Arrow Functional Place Holders

Arrow Dynamic Objects

Arrow Scripts

Arrow In-Game Commands

Arrow Notepad++ UDL

Arrow

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of miresru miresru Oct 18, 2014 at 20:38 UTC - 0 likes

    @KyadCK: Go

    I find solution. I simply made MySQL procedure like this

    BEGIN
    	UPDATE games SET open=game_open WHERE id=game_id;
    	SELECT "Done" AS title;
    END
    

    So it send something back to VT and every work perfect :-)

  • Avatar of Lyoko_Firelyte Lyoko_Firelyte Oct 18, 2014 at 14:14 UTC - 0 likes

    Also, if your script is stopping due to mysql errors I will take a look at it and get a fix, as any errors should be skipped and should go to the next line, so that would be a bug

    BFAK:90735004,cc5ec88dfba6293887a2f34e5fe38c9ae259b0e4f38968f5b8717c4323db9c06

  • Avatar of Lyoko_Firelyte Lyoko_Firelyte Oct 18, 2014 at 14:12 UTC - 0 likes

    @H8llfire You can use multiple with certain formatting or you can use the super nesting placeholder for more complex things. As for the bigger ones that require commas, it's not set up to be feasible to include multiple without a lot of headaches

  • Avatar of H8llfire H8llfire Oct 18, 2014 at 13:49 UTC - 0 likes

    @RaycusMX: Go

    VariableTriggers only Supports one functional Placeholder per line. Very very annoying imo, this has been reported numerous times and declined. Makes some ideas I had impossible to do with VT.

    BFAK:90709851,243bbda88d1d51dc4368b460dc9b7892250f7a8ddb74e11251f11dbbaaa61513

  • Avatar of KyadCK KyadCK Oct 17, 2014 at 17:46 UTC - 0 likes

    @miresru: Go

    The problem is INSERT. So no. Not until Lyoko_Firelyte makes a build where INSERT doesn't crash things.

    I do have a workaround though, if you don't mind the extra work that comes with it. Send me a PM.

  • Avatar of RaycusMX RaycusMX Oct 17, 2014 at 15:07 UTC - 0 likes

    @Lyoko_Firelyte: Go I have a problem about <var:>, just look at this script:

        - '@SETSTR $obj.var1 a'
        - '@SETSTR $obj.var2 b'
        - '@PLAYER <var:$obj.var1>,<var:$obj.var2>'
    

    I run the script, and see "a,<var:$obj.var2>". Why can't it be "a,b"? It really confuses me, and brings me lots of trouble. I have done some tests. I found that any place holder after a comma doesn't work, unless they're separated by a space (must be a SPACE, or it won't work, either).

    Last edited Oct 18, 2014 by RaycusMX
  • Avatar of miresru miresru Oct 17, 2014 at 12:28 UTC - 0 likes

    @KyadCK: Go

    1) It saves data to DB but it interrupts script at the same time. So all commands below do not run.

    2) Is there a way to change something in my example to make it work without error?

    - '@MYSQL @DB.array insert into games (name) values("test");'
    
  • Avatar of KyadCK KyadCK Oct 17, 2014 at 06:19 UTC - 0 likes

    @miresru: Go

    VT errors out because it doesn't understand that it won't get any info back to put in VarData when you do an INSERT.

    I've already logged this bug with Lyoko_Firelyte.

    If you know that it works, feel free to ignore.

    Last edited Oct 17, 2014 by KyadCK
  • Avatar of miresru miresru Oct 16, 2014 at 20:23 UTC - 0 likes

    This command:

    - '@MYSQL @DB.array insert into games (name) values("test");'
    

    gives my error:

    [21:20:46 WARN]: java.lang.NullPointerException
    [21:20:46 WARN]:        at com.wizardscraft.scripting.ScriptInterpreter.Interpret(ScriptInterpreter.java:2854)
    [21:20:46 WARN]:        at com.wizardscraft.scripting.ScriptInterpreter.run(ScriptInterpreter.java:354)
    [21:20:46 WARN]:        at com.wizardscraft.scripting.ScriptInterpreter.Interpret(ScriptInterpreter.java:1515)
    [21:20:46 WARN]:        at com.wizardscraft.scripting.ScriptInterpreter.run(ScriptInterpreter.java:354)
    [21:20:46 WARN]:        at java.lang.Thread.run(Thread.java:745)
    [21:20:46 ERROR]: [VT] MYSQL CONNECTION FAILED (or the statement didn't work, one of those things. See above stacktrace!)
    [21:20:46 WARN]: Exception in thread "Thread-61" 
    [21:20:46 WARN]: java.lang.NullPointerException
    [21:20:46 WARN]:        at com.wizardscraft.scripting.ScriptInterpreter.Interpret(ScriptInterpreter.java:2872)
    [21:20:46 WARN]:        at com.wizardscraft.scripting.ScriptInterpreter.run(ScriptInterpreter.java:354)
    [21:20:46 WARN]:        at com.wizardscraft.scripting.ScriptInterpreter.Interpret(ScriptInterpreter.java:1515)
    [21:20:46 WARN]:        at com.wizardscraft.scripting.ScriptInterpreter.run(ScriptInterpreter.java:354)
    [21:20:46 WARN]:        at java.lang.Thread.run(Thread.java:745)
    

    after it stops script BUT data is inserted to DB. So it looks like it works but scripts stopped. What I do wrong?

    Also if a do this command - no error:

    - '@MYSQL @DB.array SELECT * FROM games;'
    
  • Avatar of Lyoko_Firelyte Lyoko_Firelyte Oct 15, 2014 at 01:29 UTC - 0 likes

    @H8llfire: Go

    I don't know, it depends how different their API will be. For now you can download Carbon (a plugin for Spigot) as well as Spigot to enjoy 1.8 features that work with most plugins just fine, and they have the 1.8 items thanks to Carbon as well. However if you're a developer and use threads a lot, Spigot will bite you in the ass with it's Async catcher, but that's another story.

Facts

Date created
May 27, 2012
Categories
Last update
Aug 05, 2014
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
VariableTriggers
Downloads
36,814
Recent files

Authors