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:
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/*
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/*