if( undefinedp(my["actions"]) ) {
if( pointerp(my["verbs"]) )
ob->set("default_actions", (: call_other, __FILE__, "query_action" :) );
else
my["default_actions"] = ([
"action": "$N攻击$n的%s,%s\n",
]);
}
limbs = victim->query("limbs");
limb = limbs[random(sizeof(limbs))];
result = replace_string( result, "$l", limb );
if( objectp(weapon) )
result = replace_string( result, "$w", weapon->name() );
else if( stringp(action["weapon"]) )
result = replace_string( result, "$w", action["weapon"] );
else if( attack_skill == "finger" )
result = replace_string( result, "$w", "手指" );
message_vision(result, me, victim ); |