VariableTriggers

VTV2

VTV2

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 GitHub

Arrow

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

  • Avatar of laacis2 laacis2 Mar 30, 2015 at 19:15 UTC - 0 likes

    Having an issue of VT not recognizing the potions in my inventory. the $potion.invis is being set to 373:8270. giving myself one with that id and using it does not work. However changing the $potion.invis to 373:14 and giving myself one with that id and using it does work.

  • Avatar of KyadCK KyadCK Mar 29, 2015 at 18:16 UTC - 0 likes

    @RoyPiter: Go

    On player death, if <killerentitytype> is PLAYER and <isprojectile> is true, then you know the player was killed with a bow. <deathcause> may be of help as well.

    There is no point to seeing if they have a bow or not, people have time to switch items before the arrow hits. The question is if they died to a arrow or not. The only time this is not the case is hackers... which you should be using a proper Anti-cheat plugin for, not VT.

    You can use <currentloc:PLAYER> and <triggerloc> to compare distance. Both <holdingitem:[player]:[material]> and <hasitem:PLAYER:ITEMID> can replace player with <killername>.

    I'm honestly not seeing the problem here? If you need help, feel free to PM me the script in question and I'll try to show you how to do scripts that involve multiple players with it.

  • Avatar of huangrkul huangrkul Mar 29, 2015 at 17:38 UTC - 0 likes

    I have a question in regard to @SETBLOCK. It seems like when it comes to block ID, I have to supply a data no matter what. But for something like air, there is no data, it's just block ID 0.

    What should I put in there? Cuz if i just leave it as @SETBLOCK 0 x,y,z, it will just give me an error. It works fine with any block ID that has data in it (98:2)

    Thanks!

    I'm using Spigot 1.8 and your latest files.

    Update: I tried @SETBLOCKSAFE 0:0 x,y,z. Still doesn't work. Also, any block with no specific data value will not work either. Apparently I can't supply data value of zero on anything that has no data value.

    Last edited Mar 30, 2015 by huangrkul
  • Avatar of RoyPiter RoyPiter Mar 28, 2015 at 21:49 UTC - 0 likes

    @laacis2: Go

    In VT 1.3 we could just use the command "/run script:script (player)", from the console, a player or a command block, and the script would work perfectly on that player.

    My English isn't perfect so I find it a bit difficult to explain :v

    As you said we can use a command trigger like "/call script player" but when we use @CALL the script is still running on the player u used the command, for example, place holders will return info from the player and not from the cmdarg:2 player.

    Another example of how it should work, I made a PlayerDeath event trigger that if the player was killed by an arrow, distance between the killer and the triggerloc would be displayed. The problem was when I wanted to verify if the killer was holding a bow, and it's imposible to use @IF i <killername> has <itemid> = 61, or if I used @IF i <itemid> = 61 it would test if the player who died was holding a bow. So I wrote @CMDOP run script:script <killername>, and then @IF i <itemid> = 61 would check from the player who killed. (you can take a look here http://pastebin.com/hsd4S5Mz )

    That's what I still can't find how to do in VT2.0

  • Avatar of nxtboyIII nxtboyIII Mar 28, 2015 at 20:46 UTC - 0 likes

    @laacis2: Go

    for some reason the console command thing isnt even working at all!!! when i type the command in the console, nothing happens...

  • Avatar of laacis2 laacis2 Mar 28, 2015 at 17:52 UTC - 0 likes

    @nxtboyIII: Go

    why would you? you can use a command trigger such as /call [script name] [player name]. setup the /call command as @SETSTR $caller.script <cmdarg:2> and @CALL <cmdarg:1>:script within scripts use $caller.script where u want your <playername> to appear.

  • Avatar of nxtboyIII nxtboyIII Mar 28, 2015 at 15:04 UTC - 0 likes

    @laacis2: Go

    You can't even use the @CALL to call a script on another player... like doing '@CALL scripts:script1 nxtboyIII' doesn't work

  • Avatar of Lyoko_Firelyte Lyoko_Firelyte Mar 27, 2015 at 05:35 UTC - 0 likes

    @Casterx3: Go

    V2: ./plugins/VariableTriggers/events/player/PlayerCommand.yml

    V1.3.3.1 and lower: ./plugins/VariableTriggers/CommandTriggers.yml

    BFAK:90735004,cc5ec88dfba6293887a2f34e5fe38c9ae259b0e4f38968f5b8717c4323db9c06

  • Avatar of Casterx3 Casterx3 Mar 27, 2015 at 03:23 UTC - 0 likes

    Where are the custom commands stored in file? I cannot seem to find them for the life of me.

  • Avatar of laacis2 laacis2 Mar 24, 2015 at 09:50 UTC - 0 likes

    @nxtboyIII: Go

    i don't think you are actually trying to learn to use tools that are already provided. You can call scripts on other players if you make them right. like you are doing but use <cmdarg:> placeholder to put player name in.

Facts

Date created
May 27, 2012
Categories
Last update
Mar 09, 2015
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
VariableTriggers
Downloads
45,010
Recent files

Authors