Reply to Re: Array, away?
If you don't have an account, just leave the password field blank.
I think Prophecy of the Ancients did some work with strings using some clever tricks, so if you can access that source code and study it you can maybe figure it out.
The easier, dirtier way would be to set a varible and use it to choose the proper string for output. I'm not sure if this is complex enough to use later on or not. It would depend on exactly what you are trying to accomplish.
//set it (probably from a choice command)
//this would have to be a global also
&word = 1;
//later on
if(&word == 1){
say("Your word is whatever word 1 is", 1);
}
if(&word == 2){
say("Your word is whatever word 2 is", 1);
}
if(&word == 3){
say("Your word is whatever word 3 is", 1);
}
Would that work?
The easier, dirtier way would be to set a varible and use it to choose the proper string for output. I'm not sure if this is complex enough to use later on or not. It would depend on exactly what you are trying to accomplish.
//set it (probably from a choice command)
//this would have to be a global also
&word = 1;
//later on
if(&word == 1){
say("Your word is whatever word 1 is", 1);
}
if(&word == 2){
say("Your word is whatever word 2 is", 1);
}
if(&word == 3){
say("Your word is whatever word 3 is", 1);
}
Would that work?






