What do the %1-9 variables do? How would I use them?
What do the %1-9 variables do? How would I use them?
The %1 variable will be the first word after the command you run the script with.
Say you got a /Meeting script.
If you type /meeting Mirahna, and include %1 somewhere in the script, it will put Mirahna there.
Same goes for the rest. Just imagine %2 as the second, %3 as the third and so on.
*poof*
Finally free from this nightmare!
I use it to talk through my pet.
Script: p.s
/pet chat %1 %2 %3 %4 %5 %6 %7 %8 %9
Usage:
/p.s Hello my name is bingo
/p.s I like to climb on things
/p.s can I have a banana?
/p.s Eek, Eek!
Looks like:
Bingo: Hello my name is bingo
Bingo: I like to climb on things
Bingo: can I have a banana?
Bingo: Eek, Eek!
OR,
Script: petname.s
/pet rename [insert color code here]%1
Usage:
/petname.s [Insert pet name here]
Sorry, but I still haven't the faintest idea.