Forum: Lua/XML Help
10-30-19, 01:26 PM
|
Replies: 2
Views: 1,772
figured it out
made a solution using concatenation of string
str1 = string.sub(msg, 1, 3)
if str1 == "msg" then
len = string.len(msg)
str2 = string.sub(msg,5,string.len(msg))
...
|
Forum: Lua/XML Help
10-30-19, 12:41 PM
|
Replies: 2
Views: 1,772
|
Forum: Lua/XML Help
10-30-19, 12:38 PM
|
Replies: 2
Views: 1,772
save string to variable from slash command?
currently my slash command looks like this, and what i want to happen is in comments/pseudocode
local function MyAddonCommands(msg, editbox)
if msg == "test" then
--str1 = everything...
|