It should work something like this:
/help >> get general help
/help <topic> >> get help text related to this topic
I thought I could do it like this:
- make a table with all the help texts:
Code: Select all
help = {}
help.<topic> = [[some "help text" here]]
...
- alias pattern: "^/help (.*)?$"
- alias script:
Code: Select all
echo( help[ matches[ 2 ] ] )
Better method... but seems harder to me!
I want to use the same thing to enable and disable scripts and get script info about them:
/script <scriptname> <command>
examples:
/script help
/script prompt load
/script prompt help
/script prompt set
In this case... depending on the 'command' I want to do different things like show or run something.
How could I go about making/structuring this?
Any other ideas are welcome as well.
Greetings,
Eraldo