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
zeiuszeppo
Novice


Joined: 22 Nov 2001
Posts: 48
Location: Italy

PostPosted: Tue Apr 02, 2002 12:33 pm   

lastinput vs lastcom
 
hi guys, I'm trying to understand the
difference beetween %lastcom e %lastinput.
Can u help me?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Apr 02, 2002 4:20 pm   
 
It is possible to put more than one command in the same line, for instance:
hop;skip;jump
%lastcom is the last command -- jump
%lastinput is the entire line -- hop;skip;jump

LightBulb
All scripts untested unless otherwise noted
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Apr 03, 2002 12:29 am   
 
Another difference would be if you had an alias defined like:
#AL hop {skip}

Then when you type "hop":
lastinput="hop"
lastcom="skip"

Where it gets fuzzier is when you have triggers getting into the mix, in those cases lastcom will be whatever was the last line passed through the parser.
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