
06-24-2001, 03:32 PM
|
|
Registered User
|
 |
Join Date: Jun 2001
Location: In a corn field
Posts: 548
|
|
just do the following....
|
do something along to the lines of
function ProcessParam();
if (multicasevar="value for action to be called") {
Script functions here
}
if (multicasevar="value for different action") {
Script Functions here
}
not sure if that is proper graal script but that would be somethign similar (don't want to open up commands.rtf and read through all the things for it.
then to call the function do the following
setstring multicasevar,#s(variable)
ProcessParam()
it is similar in effect but you just have to have the varibles preset before you call them. In VB this is called Select Case (although VB handles variables passed to functions normally)
few extra lines of code but for the extra script functions you can have in a shorter space. If you wanted to you could change the Script Functions here part to call another Function (shortens script so you can have a parser function and then actually script functions that do something.
Defitions of variables:
multicasevar, set this to what the case is you want to call a certain function or set of script commands.
variable, this is the text tat is passed to the parser
the things in quotes change that to something to match a varible the multicasevar may be set to.
if someone would translate this to mroe of a graal script that would be most appreciated. |
__________________
 -Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)
AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
|
|
|
|