armour.c~

foundation2_fluffos_v1/lib/domains/Examples/armour/armour.c~ · 656 B

From the archive foundation2_fluffos_v1.zip

Download the archive   « Back to the archive contents

inherit "lib/armour";

void create() {
::create();
SetKeyName( "armour");
SetId( ({ "armour", "stone armour" }) );
SetShort( "stone armour");
SetLong( "The stone armour looks very strong and solid. It is "
"a pale grey color, and looks very heavy." );
SetMass(1000);
SetValue(350);
set_limbs( ({ "torso", "right arm", "left arm" }) );
set_type("armour");
set_wear( (:this_object(), "extra_worn":) );
}
 
int extra_worn() {
int level;

level = this_player()->GetLevel();
if(level < 20 ) {
write( "Perhaps you should come back in a few levels." );
return 0;
}

if(level > 19) {
write( "After much work you manage to put on the stone armour.");
return 1;
}
}

Site Stats

Snippets: 1791
Codebases: 571