Hi all,
So in the mud I play there's a command to make you be in either offense or defense mode. It takes about 10 seconds to go from one to the other. The problem is that there's not a command to quickly see which mod you're in.
What I'm hoping for is something that triggers on certain text (e.g. "you are now in offense mode") to remember which mode i'm in. So for example having an alias that when entered returns either "offense" or "defense" so that I know what mode I'm in.
Does anyone have any suggestions of how I could code this? I'm assuming there's a way to capture and then recall information in a table...?
Building a toggle
Re: Building a toggle
Here's a simple example:
If you want to add it to a table, just use pvp.mode instead. Good luck!