Blockland Forums > Modification Help
Is there an onEcho type function?
(1/3) > >>
DrenDran:
Is there any function one could use to get things that are output into the console, for example, to put them into a string and messageall them?
HellsHero:
Package the echo function?
ZSNO:

--- Quote from: HellsHero on June 27, 2010, 10:12:29 PM ---Package the echo function?

--- End quote ---
beat me by a second
MegaScientifical:

--- Quote from: ZSNO on June 27, 2010, 10:13:03 PM ---beat me by a second


--- End quote ---

Looks more like 34 seconds. Anyway, I'm not sure packaging Echo is possible. I thought that it was blocked in some way, at least.

Don't forget to mess with warn(); and error();. They're echo();'s helpful cousins. I forgot if warning is anything special besides grayness, but warning gives a backtrace so you know where it's coming from.
DrenDran:
Wait, so I just do something like this:


--- Code: ---package bob
{
function echo(%msg)
{
messageall("",%msg);
echo(%msg);
}
};
activatepackage(bob);

--- End code ---
I know it's missing something, but what?
What's echo's parent?
Navigation
Message Index
Next page

Go to full version