Blockland Forums > Suggestions & Requests

Keyboard Layout Modifier

Pages: << < (4/4)

JPSC:

True but strange fact: the / and ? keys work while in the loading screen of a server for the first time. After you've spawned in a server in that Blockland session, they will be no longer working, even if you load another server.

phflack:

modifying truce's buildchar script for this (deleting all but the package)
edit:

--- Code: ---package altCmd
{
function NMH_Type::send(%this)
{
%msg=%this.getValue();
if(getSubStr(%msg, 0, 1) $= "!" && getSubStr(%msg, 1, 2) !$= "" && getSubStr(%msg, 1, 2) !$= " ")
{
%word = getSubStr(%msg, 1, strLen(getWord(%msg, 0)));
%length = strLen(%word);
%wordy = getSubStr(%word, %length - 1, %length) $= " " ? getSubStr(%word, 0, %length - 1) : %word;
%command = "commandToServer('" @ %wordy @ "'";
for(%i = 1; getWord(%msg, %i) !$= ""; %i++)
{
%word = getWord(%msg, %i);
%length = strLen(%word);
%wordy = getSubStr(%word, %length - 1, %length) $= " " ? subStr(%word, 0, %length - 1) : %word;
%command = %command @ ", \"" @ %wordy @ "\"";
}
%command = %command @ ");";
eval(%command);
echo(%command);
commandToServer('stopTalking');
canvas.popdialog(newMessageHud);
NMH_Type.setValue("");
}
else
Parent::send(%this);
}
};
activatePackage(altCmd);

--- End code ---
change the "!" in the 6th line to what you want
that'll make !hug be like /hug

Pages: << < (4/4)

Go to full version