Grabbing output from world

Posted by Nick Gammon on Thu 26 Feb 2004 09:30 PM — 2 posts, 9,959 views.

Australia Forum Administrator #0
See the plugins page:

http://www.gammon.com.au/mushclient/plugins/

Take a look at the "grab" plugin - that shows examples of doing close to what you are describing.
Australia Forum Administrator #1
I'm seeing this a little out of context here. However, in the script there are two things:

1. The name of the variable, eg. teleport_shop
2. The contents of the variable, eg. 4320


So, the name, excluding the "teleport_" prefix is:

sName = Mid (sRoomList (iSubscript), 10)

The room number is the variable's contents, eg.

iRoom = world.GetVariable ("teleport_" & sName)