-
Notifications
You must be signed in to change notification settings - Fork 347
getstring
Toon edited this page Jan 5, 2026
·
3 revisions
string getstring(<int> idx, <table> args)
Note: int is a whole number
Combines the arguments args after index idx into one string. This is useful when you have a string argument that might include spaces.
Tip: Always make an argument that contains spaces your last argument
-- Note: This is just a snippet
["Function"] = function(args, speaker)
print(getstring(1, args))
endIf we get args[1] and input Hello World! into our command, we only get Hello because IY sees the space and thinks World! is a separate argument. In the above example, getstring fixes this problem by combining the arguments after the first argument (which is every argument) into one string which results in the full message.
Infinite Yield
Plugins
Core Functions