Streamlabs chatbot scripts not showing9/22/2023 ![]() = and seq <= being treated backwards (thanks to lance lake for pointing this out) both arguments MUST be numbers, or the operation will fail. ![]() =, geq - returns true when the comparee is greater or equal to the comparator. >, greater - returns true when the comparee is greater than the comparator. !=, not - returns true when both inputs do not match exactly =, equals, is - returns true when both inputs match exactly (Case Sensitive) this will only be parsed if the condition is NOT met. The fifth argument is the message that should be sent when the condition is NOT met. this will be parsed only if the condition is met, and has several parameters that can go inside it. The fourth argument is the message that should be sent when the condition is met. the modes and what they do are listed below the mode will specify how the script should compare the two comparers. this could be anything, as long as it follows the mode rules below. The first argument is the comparee to compare against the comparator. $if takes 5 arguments, each separated by a comma (without a backslash in front of it) Would only say "Hi Tom!" if the person who sent the message is Tom. (note that the curly brackets are simply marking placeholders, they do not belong in your actual function)īasic usage: $if()Īs an example: $if($username,is,Tom, Hi Tom!, You're not Tom!) The whole concept of this script obviously revolves around the $if. so if i make an if as such $if($pos1,=,no parameter!,$pos1), it will simply echo the first parameter.īut if no first argument is given, it will tell the user "no parameter!". they are the exact same as $arg1, $arg2 etc, but if that arg isnt given by the user, So to fix this, ive created $pos parameters. You can't do this because the chatbot doesn't actually run the command if it finds $arg1 in your command, but arg1 is not supplied. Ive recently heard woes over not being able to do "$if($arg1,=.)" to check if the user has supplied arguments in their command call. $varME(variablename,decrement) - removes the decrement from the variable. $varPE(variablename,increment) - adds the increment to the variable. Has used a certain command, $varPE($username-mycommand,1) to add one to the variable. This could be used to store an rpg game values, $setvar($username-health,100) etc.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |