[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Decompile to command window

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Decompile to command window

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Krenath   USA  (74 posts)  [Biography] bio
Date Tue 04 Mar 2003 05:25 PM (UTC)  quote  ]
Message
There is a commmon MUSHclient tip which suggests the following for easily editing code on objects:
make an alias for ex */* which sends "@dec/tf */*"
write a trigger which looks for FugueEdit > * and omits matching likes from the output and sends %1 to the command window.

That's great and all, but it doesn't allow for editing multiple lines of code at once What if I typed ex #2/*? The old trigger would hold only one attribute's code at a time, replacing each attribute with the next one that matches the trigger.

Here's a script you can point your trigger at which will *append* to the command window instead, allowing you to examine multiple attributes using wildcards and have them all copied into the command window at once:

Sub onDecompile(a,b,c)
	Dim oldCommand,newCommand
	oldCommand = world.GetCommand
	newCommand = c(1)
	If trim(oldCommand) <> "" Then
		World.PushCommand
		World.SetCommand oldCommand & vbcrlf & newCommand
	else
		World.SetCommand newCommand
	end if
End Sub


Set your FugueEdit > * trigger to simply omit from output and call the above script. Don't bother having it send anything to the command window as the script handles that.

Now find an object and type ex object/*

- Krenath from
bDv TrekMUSH
ATS TrekMUSH
TNG TrekMUSE
TOS TrekMUSE
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,458 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]