Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
einar
Wanderer


Joined: 06 Nov 2000
Posts: 80
Location: USA

PostPosted: 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?

Reply with quote
Kru
Beginner


Joined: 14 Nov 2001
Posts: 28

PostPosted: 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}

:)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net