Right then, I should know this, but for some reason the code is escaping me.
I'm basically trying to create my own profile of characters on the mud I play.
I want to create an alias that does several things.
The alias is going to be: name *
Now, I know most of what I need, there are however 2 things I want to do. One I can't remember how. The other I've never done.
The thing I can't remember is to compare that wildcard to an array of names held in a variable.
I.E. if (wildcard) <> (array of names)
Then note whatever.
That's the thing I know I know how to do, I just can't remember.
The other thing is a bit more complicated.
Ya, know... I'm such an idiot... In the middle of explaining the second thing I wanted to do, it came to me. Will this work?
The only problem i see with that is spacing, How do I add an extra space to make it work? The way I did it before was based off a wildcard.
Basically in this alias, I'm gonna have several functions.
name "info" - noting the current charactername being used, and then listing all the names in the NameList(this is the part I already know how to do
name <name of a character compared to the list of names then switching the name variable to that name if on the list>
name add <new name>
I'm basically trying to create my own profile of characters on the mud I play.
I want to create an alias that does several things.
The alias is going to be: name *
Now, I know most of what I need, there are however 2 things I want to do. One I can't remember how. The other I've never done.
The thing I can't remember is to compare that wildcard to an array of names held in a variable.
I.E. if (wildcard) <> (array of names)
Then note whatever.
That's the thing I know I know how to do, I just can't remember.
The other thing is a bit more complicated.
Ya, know... I'm such an idiot... In the middle of explaining the second thing I wanted to do, it came to me. Will this work?
name = "%1"
addname = split(name)
if addname(lbound) = "add" then
oldnames = Getvariable("NameList")
newname = addname(ubound)
oldnames = oldnames + newname
SetVariable "NameList", oldnames
end ifa = GetVariable ("Whatever")
b = " %1" 'yeah, so with the ubound, how do I put that extra space needed?
a = a + b
SetVariable "Whatever", aBasically in this alias, I'm gonna have several functions.
name "info" - noting the current charactername being used, and then listing all the names in the NameList(this is the part I already know how to do
name <name of a character compared to the list of names then switching the name variable to that name if on the list>
name add <new name>