Blockland Forums > Modification Help

Is there an onEcho type function?

Pages: << < (2/3) > >>

MegaScientifical:


--- Code: ---package echoPackage {
  function echo(%txt) {
    messageAll('', %txt);
    Parent::echo(%txt);
  }
};
activatePackage(echoPackage);

--- End code ---

I still bet it won't work since it's source code for something important and all that. I think I remember it not working, but meh.

DrenDran:


--- Quote from: MegaScientifical on June 27, 2010, 11:54:27 PM ---
--- Code: ---package echoPackage {
  function echo(%txt) {
    messageAll('', %txt);
    Parent::echo(%txt);
  }
};
activatePackage(echoPackage);

--- End code ---

I still bet it won't work since it's source code for something important and all that. I think I remember it not working, but meh.

--- End quote ---
That's the same thing I posted, and pretty much exactly an hour ago too.
I must say, I lol'd.

MegaScientifical:


--- Quote from: DrenDran on June 28, 2010, 12:09:39 AM ---That's the same thing I posted, and pretty much exactly an hour ago too.
I must say, I lol'd.

--- End quote ---

But you didn't parent it, so it was... I think running itself. Either way, I don't believe it was running the original Echo.

Amade:

Echo can't be packaged as far as I know.

rkynick:

I'm not overly familiar with the console GUI but you might be able to package a function of it in some way.

Pages: << < (2/3) > >>

Go to full version