Ok, I've searched the entire forum and can't find the solution to this problem.
What I want to do is this.
I have a alias named "v * *"
And another alias named "v2 * * *"
To call a script looking like this :
sub VoiceLeave (thename, theoutput, thewildcards)
dim sInputted
dim sNum
dim sDir
sMob = thewildcards (1)
sNum = thewildcards (2)
sDir = thewildcards (3)
if sDir = "" then world.send ("voice " & sMob & " to leave " & sNum)
if sDir <> "" then world.sned ("voice " & sMob & " " & sNum & " to leave " & sDir)
end sub
This works like a charm, but my problem is that I only want to have ONE alias and not 2.
So if I type 'v spider east'
it should send 'voice spider to move east' this works
but I allso want to be able to type 'v spider 2 east'
and then it should send 'voice spider 2 to move east'
Like it is now I have to type 'v2 spider 2 east'
Any sugestion how I can solve this problem ?
I've tried with 2 aliases one named 'v * *' and one 'v * * *' but this didn't work as it trigged on the one with 2 wildcards when I had 3 in the command line.
Hope you understand what I'm trying to work out here.
What I want to do is this.
I have a alias named "v * *"
And another alias named "v2 * * *"
To call a script looking like this :
sub VoiceLeave (thename, theoutput, thewildcards)
dim sInputted
dim sNum
dim sDir
sMob = thewildcards (1)
sNum = thewildcards (2)
sDir = thewildcards (3)
if sDir = "" then world.send ("voice " & sMob & " to leave " & sNum)
if sDir <> "" then world.sned ("voice " & sMob & " " & sNum & " to leave " & sDir)
end sub
This works like a charm, but my problem is that I only want to have ONE alias and not 2.
So if I type 'v spider east'
it should send 'voice spider to move east' this works
but I allso want to be able to type 'v spider 2 east'
and then it should send 'voice spider 2 to move east'
Like it is now I have to type 'v2 spider 2 east'
Any sugestion how I can solve this problem ?
I've tried with 2 aliases one named 'v * *' and one 'v * * *' but this didn't work as it trigged on the one with 2 wildcards when I had 3 in the command line.
Hope you understand what I'm trying to work out here.