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


Register forum user name Search FAQ

Gammon Forum

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

Decompile to command window

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Krenath   USA  (76 posts)  [Biography] bio
Date Tue 04 Mar 2003 05:25 PM (UTC)
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.


7,211 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at HostDash]