#!dhs -nopp

// <NEWGAME>

script newgame
sub get_info
savegameVersion "x"
savegameDescription "New game"
savegameTime "2009/04/25 - 0:00"
savegameType "newgame"
endSub

sub apply_mission
setLoadMissionFile "data/mission/tutorial1/tutorial1.dhm"
setMissionId "tutorial1"
endSub

sub apply_variables
local int,ps3_profiles
local int,ps3_on_pc_profiles
setValue 0; setVariable ps3_profiles
setValue 0; setVariable ps3_on_pc_profiles

// TUTORIAL
setArrayVariableValues player_item_owner,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setArrayVariableValues player_item_state,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setString "tutorial1_entry"; setStringVariable last_checkpoint_name
setArrayVariableValues player_item_slot,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

// COMMON
setArrayVariableValues player_hp,0,200,200,200,0,0
setArrayVariableValues player_max_hp,0,200,200,200,0,0
setArrayVariableValues player_max_hp_original,0,200,200,200,0,0

setArrayVariableValues player_energy,0,200,200,200,0,0
setArrayVariableValues player_max_energy,0,200,200,200,0,0
setArrayVariableValues player_max_energy_original,0,200,200,200,0,0

setArrayVariableValues xp_limits,0,0,0,0,0,0,0,0,0,0
setValue 0; setVariable next_log_entry_time
setValue 0; setVariable experience_shard_amount
setValue 0; setVariable experience_shard_total_amount
setArrayVariableValues player_current_ranged_weapon,0,10,7,4,0,0
setArrayVariableValues player_unassigned_skill_points,0,0,0,0,0,0
setValue 0; setVariable save_requested
setValue 0; setVariable demo
setArrayVariableValues player_using_ranged_weapon,0,1,1,1,0,0
setArrayVariableValues player_item_cur_level,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setArrayVariableValues player_item_type,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setValue 0; setVariable new_log_entry

setValue 0; setVariable selected_player_combo
setArrayVariableValues player_xp,0,0,0,0,0,0
setValue 0; setVariable level_up_available
setArrayVariableValues player_item_max_level,0,0,0,0,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setArrayVariableValues player_level,0,0,0,0,0,0
setValue 10; setVariable experience_shard_max_amount
setValue 0; setVariable pending_energy
setValue 1; setVariable players_created
setArrayVariableValues player_current_sword_weapon,0,0,0,0,0,0
setValue 99; setVariable pending_arrows
setArrayVariableValues mission_unlocked,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setArrayVariableValues mission_secrets_unlocked,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setArrayVariableValues mission_shards_total_found,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setValue 0; setVariable reached_first_checkpoint
setValue 0; setVariable reached_first_level_up

// #define PLAYER_ITEM_sta_create 10
setValue 1;setVariable player_item_state[10]
setValue 1;setVariable player_item_owner[10]
setValue 1000;setVariable player_item_slot[10]
setValue 1;setVariable player_item_cur_level[10]

// #define PLAYER_ITEM_wiz_box 89
setValue 1;setVariable player_item_state[89]
setValue 1;setVariable player_item_owner[89]
setValue 0;setVariable player_item_slot[89]
setValue 0;setVariable player_item_cur_level[89]

// #define PLAYER_ITEM_bow_rope 88
setValue 1;setVariable player_item_state[88]
setValue 2;setVariable player_item_owner[88]
setValue 1000;setVariable player_item_slot[88]
setValue 3;setVariable player_item_cur_level[88]

// #define PLAYER_ITEM_bow_short 7
setValue 1;setVariable player_item_state[7]
setValue 2;setVariable player_item_owner[7]
setValue 0;setVariable player_item_slot[7]
setValue 0;setVariable player_item_cur_level[7]

// #define PLAYER_ITEM_swo_short 4
setValue 1;setVariable player_item_state[4]
setValue 3;setVariable player_item_owner[4]
setValue 0;setVariable player_item_slot[4]
setValue 0;setVariable player_item_cur_level[4]

// #define PLAYER_ITEM_sh_silver 65
setValue 1;setVariable player_item_state[65]
setValue 3;setVariable player_item_owner[65]
setValue 1000;setVariable player_item_slot[65]
setValue 1;setVariable player_item_cur_level[65]

setArrayVariableValues mission_shards_enemies_total_found,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setValue 0; setVariable level_up_available
setValue 0; setVariable reached_first_checkpoint
setValue 0; setVariable reached_first_level_up
setValue 0; setVariable levitate_object_rotation_hint
setValue 0; setVariable very_hard_difficulty_unlocked
setArrayVariableValues mission_complete_time_easy,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setArrayVariableValues mission_complete_time_medium,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setArrayVariableValues mission_complete_time_very_hard,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setArrayVariableValues mission_complete_time_hard,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
setValue 0; setVariable challenge_mode
endSub

endScript
