|
einar Wanderer
Joined: 06 Nov 2000 Posts: 80 Location: USA
|
Posted: Sat Mar 02, 2002 7:45 am
Stop Myself |
How do I make it so that whenever I type:
train hitpoints 1
(the number can be anything from 1-1000)
It will do something like #SHOW %ansi(bold,yellow) ABSOLUTELY NOT!!!
Or something like that.
I want to make sure I accidentally don't waste xp on training things I don't need.
I've tried:
#ONINPUT {train hitpoints} {#SHOW %ansi(bold,yellow)ABSOLUTELY NOT!!!}
But it wont stop me from sending the:
train hitpoints 1000
(or any other number i type)
Any suggestions?
|
|
|
|
Kru Beginner
Joined: 14 Nov 2001 Posts: 28
|
Posted: Sat Mar 02, 2002 8:12 am |
My suggestion is to make a stringlist variable with all the things you don't want to train. You can do this via #ADDITEM noTrainList {SomeSkillINeverWantToTrain}
do this for each skill you don't want to train.
Then make an alias called 'train'. The code of the alias should be:
#IF (%ismember(%1,@noTrainList)) {#SHOW %ansi(bold,yellow) ABSOLUTELY NOT!!!} {train %1}
:) |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Mar 02, 2002 1:36 pm |
The #ONINPUT trigger works, you just need to use #GAG to prevent zMUD from sending the command. So your trigger would be:
#ONINPUT {train hitpoints} {#GAG;#SHOW %ansi(bold,yellow)ABSOLUTELY NOT!!!}
Kjata |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 02, 2002 4:57 pm |
It might be better to make an alias instead of an oninput trigger.
#AL train {#SHOW %ansi(bold,yellow)ABSOLUTELY NOT!!!;#NOOP}
In the event you actually do want to train, you could a)shorten the command -- tr hitpoints 1, or b)use the quote character to override the alias -- ~train hitpoints 1, or c)turn off parsing for a moment.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
|
|