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 Apr 7, 2014@chistian95
But, want If I'm making a spawner shop, use the code using $obj.spawner, like I have a zombie, spider, etc. It would all be the same spawner... Also I'm using the command /spawner give <spawner> [playername]
-
View User Profile
-
Send Message
Posted Apr 7, 2014@TheCoolGuy123_5_Minecraft_
$obj,spawner is just a string.
Type /vt setstr obj spawner (ID OF THE SPAWNER)
-
View User Profile
-
Send Message
Posted Apr 7, 2014@chistian95
I don't get the $obj.spawner thing
-
View User Profile
-
Send Message
Posted Apr 7, 2014Being in a bed counts as not being in an area for an areaTrigger
-
View User Profile
-
Send Message
Posted Apr 7, 2014@chistian95
My situation with $obj.var is bit more cranky, because setting invisibility potions you can sell, returns, that there aren't any. Changed script to salmon, works. Changed back to invis potion, doesn't work.
-
View User Profile
-
Send Message
Posted Apr 6, 2014@TheCoolGuy123_5_Minecraft_
To sell:
Script:
- '@IF b <takeitem:<playername:$obj.spawner:1 = true'
- ' @CMDCON eco give <playername> 9000'
- ' @PLAYER &aYou sold a spawner'
- '@ELSE'
- ' @PLAYER &cYou don't have any spawners'
- '@ENDIF'
To buy:
Script:
- '@IF b <takemoney:<playername>:10000> = true'
- ' @CMDCON give <playername> $obj.spawner 1'
- ' @PLAYER &aYou bought a spawner'
- '@ELSE'
- ' @PLAYER &cYou do not have enough money!'
- '@ENDIF'
Now set the the variable $obj.spawner to a string with the ID:DATA of the item you want to sell/buy.
-
View User Profile
-
Send Message
Posted Apr 6, 2014@laacis2
Thanks, now how to sell.
I want to people to sell a spawner for $9,000, and get spawners for $10k
(Essentials sell doesn't like data-values)
It would look if you have spawner, then if you have a spawner, then it removes it and pays you $9k
-
View User Profile
-
Send Message
Posted Apr 6, 2014I'm looking at the latest tickets now, I've been busy the past few days.
-
View User Profile
-
Send Message
Posted Apr 6, 2014@TheCoolGuy123_5_Minecraft_
If it's a shop, do
- '@IF b <takemoney:<playername>:1> = true'
- '@CMD give <playername> somestuff quantity'
-'@ELSE'
- '@PLAYER &eYou do not have enough money'
- '@ENDIF'
it it's just check, do
- '@IF b <hasmoney:<playername>:1> >= true'
- '@PLAYER you have enough money'
- '@ELSE'
- '@PLAYER &eYou do not have enough money'
- '@ENDIF'
-
View User Profile
-
Send Message
Posted Apr 6, 2014How would I make it so if you right-click this block and detects if you have enough money. So If I put that you need X amount of money, then X or up would work, then it would do something. If you don't, it does something
I tried this:
-
View User Profile
-
Send Message
Posted Apr 6, 2014Do you check the error tickets? I think 1.3 version generates a lot of trouble. Tbh, I still have at least 4 unread tickets, and I start wondering if i'm supposed to post them somewhere else...
-
View User Profile
-
Send Message
Posted Apr 6, 2014@Lyoko_Firelyte
thats my usual method, but this time i am using this for wide teleporting window. (10x5).
to maintain player's relative location so they doesn't realize they are being teleported. Guess, that cannot happen =/ (unless you make it so it can =p)
Edit:
@SETSTR $teleport.location <playerloc>
@TP <relativeloc:$teleport.location:618.5,0.5,-220.5>
still throws me in void. it's like it teleports me twice.
-
View User Profile
-
Send Message
Posted Apr 6, 2014@laacis2
Set the location with /vt setloc object var and then use @TP $obj.var if you want to maintain the pitch and yaw; I don't think @TP supports pitch and yaw arguments.
-
View User Profile
-
Send Message
Posted Apr 6, 2014@Lyoko_Firelyte
uh oh.. Yeah forgot that bit. Anyway any idea whats wrong with this?
@TP <relativeloc:<triggerloc>:618.5,0.5,-220.5> <direction:INT>
If i use only <relativeloc:<triggerloc>:618.5,0.5,-220.5>, it turns my head to north always.
with <direction:INT> nothing happens at all.
with <relativeloc:<playerloc>:618.5,0.5,-220.5, it chaotically tp's me somewhere and drops in void. (didn't have time to even spot which way i'm facing)
-
View User Profile
-
Send Message
Posted Apr 6, 2014@laacis2
@TP first then @WORLD because when the interp runs through your world is saved throughout the whole script, so using @WORLD first would make @TP just throw you back in the previous world.
-
View User Profile
-
Send Message
Posted Apr 6, 2014oh wait, you do @WORLDTP first, then @TP? Hell knows what's on target world where player uses teleport command. Maybe even off world borders.
-
View User Profile
-
Send Message
Posted Apr 5, 2014@sharqman
Yes. That is why I put in @WORLDTP
-
View User Profile
-
Send Message
Posted Apr 5, 2014does @TP only to you in the world it was triggered in?
-
View User Profile
-
Send Message
Posted Apr 4, 2014<direction:INT> is not read by @TP command.
Used @TP <relativeloc:<triggerloc>:618.5,0.5,-220.5> <direction:INT>
Teleport simply doesn't happen. Console quiet.
Taking <direction:INT> out works, but player is facing odd direction upon teleporting.
-
View User Profile
-
Send Message
Posted Apr 3, 2014Oh yes a note about the inventory event, it will only listen if there is a event trigger in the triggering world, so if you open inventory in a world that does not have a trigger, it won't be canceled.