kerbybit / chattriggers Goto Github PK
View Code? Open in Web Editor NEWChat Triggers source
License: GNU General Public License v3.0
Chat Triggers source
License: GNU General Public License v3.0
{string[name]}.floor() and {string[name]}.ceil() sometimes return weird values
Other math functions will also act strangely
{list[name]}.remove(0) when list is only 1 value return index out of bounds
Object functions in object arguments sometimes fail to run
Needs a control method for recursion
{string[name]}.substring(beginIndex,endIndex) returns bool on failure when it should return original string
Needs more investigation
Just returns the speed the player is going at. X coordinates and Z coordinates only so ignore Y.
Made it in code too :)
trigger onClientTick 20(speed) {
do {string[deltax]}.set({exactX}.-({string[oldX]}))
do {string[deltaz]}.set({exactZ}.-({string[oldZ]}))
do {string[distance]}.set({string[deltax]}.power(2))
do {string[distance]}.+({string[deltaz]}.power(2)).set(~)
killfeed <time=25> {string[distance]}.sqrt().*(2).round(2)
do {string[oldX]}.set({exactX})
do {string[oldZ]}.set({exactZ})
}
Trigger type that intercepts all messages about to be shown in chat using the "chat" event. The cancel event would stop the message from passing through. Maybe {msg} would return the message being passed through.
Example:
trigger onChatEvent(name) {
if ({list[messagesToStop]}.has({msg}))
cancel
end
}`
again
I want to be able to suffix/prefix clickables to strings so it can outputted in chat later.
trigger other(testclick) {
do {string[test2]}.set(Base Text)
do {string[test2]}.set({string[test2]}.suffix(clickable(&c[Hi],suggest_command,hi,&cHi)))
do {string[test2]}.set({string[test2]}.suffix(clickable(&c[Bye],suggest_command,bye,&cBye)))
chat {string[test2]}
}
nested folders that don't exist don't properly get created on first run and can lag out client
/t import only seems to work first time when loaded
enableImport and disableImport are also funky
http://i.imgur.com/qyY6puA.png
Looks like .split is generally just broken
Expected problem is recursion not working properly
if folder doesnt exist
-first run will just create the folder
-second run will actually save the file
always returns " is not a number!"
Loading a split string into a list results in the entire list literal being loaded into the first entry of the list instead of actually loading each value individually.
http://i.imgur.com/0xBut3S.png
Expected cause would be commas in the string return not being real commas
value in settings.txt that used to be boolean is now number and not handled properly which results in failed file loading making CT unusable
{list[name]}.set($i,$v) where $i is index and $v is value does not work as intended
Instead of having separate folders, why not just make tags/releases for each version?
https://help.github.com/articles/creating-releases/
It would make the repo smaller and more manageable.
{string[name]}.set(value) and {string[name]}.save(value) do not properly set string values if in an async logic block. Needs some way to mark async strings as user strings to set during run-time outside of thread
will change to cut off after any number bigger than 10 and just return the number instead
Test
commas and ending bracket dont properly ignore color codes of values before them
only needs to be changed for chat event types
Every bug after first bug doesnt work
Whenever the player disconnects from a server or singleplayer, run code.
onSoundPlay trigger picks up CTs own sound event types which can lead to infinite loops
fade works fine on background but not text
returns null, should return empty list
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.