last user input

Pertex
Hi ALex,
is there an internal variable which always saves the last user input?

Alex
Usually player.currentcommand

Although it won't be populated if the player has just used the "oops" feature (e.g. "look at sfoa", "oops sofa" will run the equivalent of "look at sofa", but the player never typed that exact command in).

What are you trying to achieve though? There may be a better way.

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums