[Package Index | Mudlib Index | Effect Index]
Written by Kaylar
void check_timeout()
int do_abandon()
int do_play()
int do_practise()
int do_throw()
void event_darts(object board,
string action,
object player,
int score,
object winner)
void event_darts( object board, string action, object player, int score,
object winner ) {
switch( action ) {
case "challenge":
init_command( "'I could go for a game.", 1 );
init_command( "play game", 2 );
init_command( "unhold weapon 1", 3 );
}
break;
case "accept":
if( player == TO ) {
_playing_darts = 1;
init_command( "'Prepare to lose." );
}
break;
case "throw":
if( _playing_darts ) {
if( player != TO ) {
if( score == 0 ) {
init_command( "point laugh " +player->query_name(), 1 );
}
}
}
break;
case "end":
case "abandon":
_playing_darts = 0;
init_command( "equip", 1 );
break;
case "turn":
if( player == TO ) {
init_command( "throw", 1 );
init_command( "throw", 3 );
init_command( "throw", 5 );
break;
}
}
void final_scores()
string get_target()
string get_winner_list()
void load_file()
object * query_players()
object query_practising()
void record_score(object player,
string type,
int score)
void reset_game()
void save_file()
void set_dart(string dart)
set_dart( "throwing axe" );
void set_messages(string * msgs)
set_messages( ({ "$N throw$s a dart at the dart board. It "
"soars forward and pierces $target's lip, scoring $points points.\n",
"normal success", "exceptional success", "critical success",
"marginal failure", "normal failure", "exceptional failure", "critical
failure" }) );
void set_no_take(int i)
void set_random_messages(mapping messages)
set_random_messages( ([
({ "$N throw$s a dart at the dart board. Suddenly, a troll strolls "
"in front of it and the dart riccochets off his rock-like skin, "
"causing the dart to miss the board completely. $N score$s "
"$points points.\n", 0 }) : 10,
({ "$N hurl$s a dart at the dart board just as a drunk knocks into "
"$o, sending the dart flying straight up into the ceiling. It "
"bounces off the lamp, hits a chair, and then hits the bullseye. "
"What luck! $C$$N score$s $points points.\n", 50 }) : 5
]) );
void set_room(object room)
void set_save_file(string file,
string language)
void set_scores(int * scores)
void set_skill(string skill)
set_skill( "magic.methods.mental.animating" );
void set_targets(string * targets,
int use_people)
void setup_stuff()
void update_winners()