list($temp_id, $temp_token) = explode('_', $temp_string); // Define the basic lookup array for this robot $temp_robotinfo = array('robot_id' => $temp_id, 'robot_token' => $temp_token); // If preset info exists, merge it with the lookup array if (isset($target_preset_robots[$temp_key])) { $temp_robotinfo = array_merge($target_preset_robots[$temp_key], $temp_robotinfo); } // Add this robot to the player to index and apply stat bonuses $target_player->add_robot($temp_robotinfo, $temp_key, true); } // Update this player's count and other stat variables $target_player->update_session(); //echo '<pre>$this_player->export_array() = '."\n".print_r($this_player->export_array(), true).'</pre>'."\n"; //echo '<pre>$target_player->export_array() = '."\n".print_r($target_player->export_array(), true).'</pre>'."\n"; // Load the robot objects from the battle $this_robot = $this_battle->get_robot($this_robot_id); $target_robot = $this_battle->get_robot($target_robot_id); //echo '<pre>$this_robot->export_array() = '."\n".print_r($this_robot->export_array(), true).'</pre>'."\n"; //echo '<pre>$target_robot->export_array() = '."\n".print_r($target_robot->export_array(), true).'</pre>'."\n"; //exit('test me'); } /* * BATTLE START! */ // Define the redirect variable in case we need to change screens $this_redirect = ''; // Define the action queue variable and populate it with this/target pairs $action_queue = array(); // If the player is has requested the prototype menu if ($this_action == 'prototype') { // Automatically empty all temporary battle variables