View Single Post
Originally Posted by RedPanda View Post
Ok so I'm a bit stuck on finding what the chat as a variable/control is called. I've tried using other scripts that access the chat and read it but I've tried most parts. Either that or the script turns off once it's used.


-----------------------------------------------------------------------------------------------------------
okay so it turns out toribash has a complete folder of functions it uses. The chat is called "console", what kind of psychopath thinks naming a chat as console is a good idea.

It's still a bit buggy (the code doesn't work completely but you can have it give out the message when you look for strings in general so maybe have it look for a name then nudge, not really sure)

add_hook("console", "chatlog", function(message)

if (console=="!nudge") then
echo ("Nudges are 750tc to Decapprize, 500 tc to protonitron or 1000 selfbet")

end
end
)
You'll have to change print to echo as echo only displays the message to you.
---------------------------------------------------------------------------------------------------------------
print doesn't work for toribash. fack. I could probably modify the belt script and have it output whether there are counters or if there's a 10% difference and just have it say "cancelbets" near the chat.

public void nudge() {
    //or if there is "isTrue"
    if(program1 == true) {
        //use what command it states to put it somewhere, like cp or echo etc. on ()
        ()("Text");
    }
}
//maybe add boolean to () in program1()?
public void program1() {
    //make a looking-for program, which tries to find "!Nudge" or whatever
    //player is just substitute for what the true name is
    //execute is the !Nudge command thing
    if(player execute) {
        //make the program == true at ()
        ();
    }
}
RedPanda won't fuck his dog