|
Decompile to command window
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Krenath
USA (74 posts) 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 | 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
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )