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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
kymon
Novice


Joined: 29 Jan 2003
Posts: 40

PostPosted: Sat Dec 16, 2006 9:51 am   

blocking command line commands possible?
 
is it possible to block command line commands before they get sent to the mud?
the idea is to make a sort of AI companion for newbies. for example if they want to attack a mob that's 20 levels above them, the command wouldn't get sent, instead a warning appears.
Reply with quote
Ceres
Wanderer


Joined: 25 May 2006
Posts: 88

PostPosted: Sat Dec 16, 2006 12:42 pm   
 
There is a new command in CMUD which needs to be used within an #ONINPUT command called #NOINPUT.

To see a discussion on this command read this thread.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sat Dec 16, 2006 2:12 pm   
 
Sure, easy enough

myLevel = 5
monsterLevel.littleNasty = 10
monsterLevel.bigNasty = 100
#ALIAS kill {#if (@myLevel < (@monsterLevel.%1 - 20)) {#SAY Don't be silly, that'll kick your ass} {~kill %-1}}

'kill littlenasty' is allowed
'kill bignasty' isn't allowed
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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