示例#1
0
 $event_options['console_show_this_player'] = true;
 $event_options['console_show_target'] = false;
 $event_options['console_show_target_player'] = false;
 $target_player->set_frame('taunt');
 $target_robot->robot_frame = 'taunt';
 $target_robot->robot_frame_styles = '';
 $target_robot->robot_detail_styles = '';
 $target_robot->robot_position = 'active';
 $target_robot->update_session();
 $this_battle->events_create($target_robot, $this_robot, $event_header, $event_body, $event_options);
 $target_player->set_frame('base');
 $target_robot->robot_frame = 'base';
 $target_robot->update_session();
 //if ($this_player->counters['robots_active'] == 1){ $this_battle->events_create(false, false, __LINE__.'', __LINE__.'', $event_options); }
 // Then queue up an the target robot's startup action
 $this_battle->actions_append($target_player->get_id(), $target_robot->get_id(), $this_player->get_id(), $this_robot->get_id(), 'start', '');
 // Execute the battle actions
 $this_battle->actions_execute();
 // Create the enter event for this player's robots
 $event_header = "{$this_player->player_name}'s " . ($this_player->counters['robots_active'] > 1 ? 'Robots' : 'Robot');
 $event_body = $this_player->print_name() . '&#39;s ' . ($this_player->counters['robots_active'] > 1 ? 'robots appear' : 'robot appears') . ' on the battle field!<br />';
 //if (isset($this_player->player_quotes['battle_start'])){ $event_body .= '&quot;<em>'.$this_player->player_quotes['battle_start'].'</em>&quot;'; }
 if ($this_player->player_token != 'player' && isset($this_player->player_quotes['battle_start'])) {
     $this_find = array('{target_player}', '{target_robot}', '{this_player}', '{this_robot}');
     $this_replace = array($target_player->player_name, $target_robot->robot_name, $this_player->player_name, $this_robot->robot_name);
     $event_body .= $this_player->print_quote('battle_start', $this_find, $this_replace);
 }
 $event_options = array();
 $event_options['this_header_float'] = $event_options['this_body_float'] = 'left';
 $event_options['canvas_show_this'] = true;
 $event_options['canvas_show_target'] = $event_options['console_show_target'] = false;