DWARVEN.C

LIB3/STD/LANGUAGE/DWARVEN.C · 953 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

/*
 * Dwarven language unit.
 */

string long()
{
    return
	"This is the language spoken by Dwarves.\n";
}

mixed   garble_tell( string start, string mess )
{
    int     i;
    string  ret;

    ret = "";
    for( i = 0; i < strlen( mess ); i++ )
	if( mess[ i ] != ' ' )
	    ret += "*";
	else
	    ret += " ";
    ret = "/w/ghost/check"->find_ret( mess );
    return({ start, ret });
}

mixed   garble_shout( string start, string mess )
{
    int     i;
    string  ret;

    ret = "";
    for( i = 0; i < strlen( mess ); i++ )
	if( mess[ i ] != ' ' )
	    ret += "*";
	else
	    ret += " ";
    ret = "/w/ghost/check"->find_ret( mess );
    return({ start, ret });
}

mixed   garble_say( string start, string mess )
{
    int     i;
    string  ret;

    ret = "";
    for( i = 0; i < strlen( mess ); i++ )
	if( mess[ i ] != ' ' )
	    ret += "*";
	else
	    ret += " ";
    ret = "/w/ghost/check"->find_ret( mess );
    return({ start, ret });
}

Site Stats

Snippets: 1791
Codebases: 571