|
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Sat Apr 05, 2008 2:08 am
%lastinput/%lastin |
I tried using these commands without any success:
say hi
#show %lastinput
#show %lastin
Quote: |
say hi
You say: hi
#show %lastinput
#show %lastin
|
I used %lastin after a code block executed as well as its intended to work. These commands are documented in the predefined variables, but they aren't working for me. Anyone else have this problem or are these commands that are not implemented yet and my help file updated? Using Cmud 2.18 |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sat Apr 05, 2008 2:20 am |
say hi;#show %lastinput
echos that same line back to the screen for me.
Couldn't find %lastin in helps but %lastin2 works for me as well.
using CMUD 2.18 |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Sat Apr 05, 2008 2:43 am |
I believe that %lastin should actually be %lastin2 as looking under the predefined variables this seems to make sense.
As for your output although it may seem to be incorrect it is in fact actually what you were asking for, it does indeed echo your last input to the screen, your last input being the whole of what you typed in the case of pasting and executing all lines it echoes everything if you did those lines separately then the #show %lastinput will in fact show you just that since it was the last thing your inputted. |
|
_________________ Taz :) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Apr 05, 2008 3:26 am |
I would suggest also testing %action and %lastcom. You should test them from the command line and within an alias. I am pretty sure one fits each of these, last text entered at the command line, last text sent to the mud, and last script executed.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|