|
1
|
filechoicebk = global.filechoice;
|
|
2
|
room_set_persistent(global.currentroom, 0);
|
|
3
|
script_execute(SCR_GAMESTART);
|
|
4
|
global.filechoice = filechoicebk;
|
|
5
|
file = "file" + string(global.filechoice);
|
|
6
|
myfileid = ossafe_file_text_open_read(file);
|
|
7
|
global.charname = ossafe_file_text_read_string(myfileid);
|
|
8
|
ossafe_file_text_readln(myfileid);
|
|
9
|
global.lv = ossafe_file_text_read_real(myfileid);
|
|
10
|
ossafe_file_text_readln(myfileid);
|
|
11
|
global.maxhp = ossafe_file_text_read_real(myfileid);
|
|
12
|
ossafe_file_text_readln(myfileid);
|
|
13
|
global.maxen = ossafe_file_text_read_real(myfileid);
|
|
14
|
ossafe_file_text_readln(myfileid);
|
|
15
|
global.at = ossafe_file_text_read_real(myfileid);
|
|
16
|
ossafe_file_text_readln(myfileid);
|
|
17
|
global.wstrength = ossafe_file_text_read_real(myfileid);
|
|
18
|
ossafe_file_text_readln(myfileid);
|
|
19
|
global.df = ossafe_file_text_read_real(myfileid);
|
|
20
|
ossafe_file_text_readln(myfileid);
|
|
21
|
global.adef = ossafe_file_text_read_real(myfileid);
|
|
22
|
ossafe_file_text_readln(myfileid);
|
|
23
|
global.sp = ossafe_file_text_read_real(myfileid);
|
|
24
|
ossafe_file_text_readln(myfileid);
|
|
25
|
global.xp = ossafe_file_text_read_real(myfileid);
|
|
26
|
ossafe_file_text_readln(myfileid);
|
|
27
|
global.gold = ossafe_file_text_read_real(myfileid);
|
|
28
|
ossafe_file_text_readln(myfileid);
|
|
29
|
global.kills = ossafe_file_text_read_real(myfileid);
|
|
30
|
ossafe_file_text_readln(myfileid);
|
|
31
|
for (i = 0; i < 8; i += 1)
|
|
32
|
{
|
|
33
|
global.item[i] = ossafe_file_text_read_real(myfileid);
|
|
34
|
ossafe_file_text_readln(myfileid);
|
|
35
|
global.phone[i] = ossafe_file_text_read_real(myfileid);
|
|
36
|
ossafe_file_text_readln(myfileid);
|
|
37
|
}
|
|
38
|
global.weapon = ossafe_file_text_read_real(myfileid);
|
|
39
|
ossafe_file_text_readln(myfileid);
|
|
40
|
global.armor = ossafe_file_text_read_real(myfileid);
|
|
41
|
ossafe_file_text_readln(myfileid);
|
|
42
|
for (i = 0; i < 512; i += 1)
|
|
43
|
{
|
|
44
|
global.flag[i] = ossafe_file_text_read_real(myfileid);
|
|
45
|
ossafe_file_text_readln(myfileid);
|
|
46
|
}
|
|
47
|
global.plot = ossafe_file_text_read_real(myfileid);
|
|
48
|
ossafe_file_text_readln(myfileid);
|
|
49
|
for (i = 0; i < 3; i += 1)
|
|
50
|
{
|
|
51
|
global.menuchoice[i] = ossafe_file_text_read_real(myfileid);
|
|
52
|
ossafe_file_text_readln(myfileid);
|
|
53
|
}
|
|
54
|
global.flag[94 current_napstablook_song] = 0;
|
|
55
|
global.currentsong = ossafe_file_text_read_real(myfileid);
|
|
56
|
ossafe_file_text_readln(myfileid);
|
|
57
|
global.currentroom = ossafe_file_text_read_real(myfileid);
|
|
58
|
ossafe_file_text_readln(myfileid);
|
|
59
|
obj_time.time = ossafe_file_text_read_real(myfileid);
|
|
60
|
ossafe_file_text_readln(myfileid);
|
|
61
|
global.lastsavedkills = global.kills;
|
|
62
|
global.lastsavedtime = obj_time.time;
|
|
63
|
global.lastsavedlv = global.lv;
|
|
64
|
ossafe_file_text_close(myfileid);
|
|
65
|
global.hp = global.maxhp;
|
|
66
|
global.en = global.maxen;
|
|
67
|
script_execute(scr_tempsave);
|
|
68
|
if (global.currentroom < room_tundra_garage)
|
|
69
|
global.area = 0;
|
|
70
|
if (global.currentroom >= room_tundra_garage)
|
|
71
|
global.area = 1;
|
|
72
|
global.flag[360 rain_unmuted] = 0;
|
|
73
|
global.flag[361 rain_track1_volume] = 0;
|
|
74
|
global.flag[362 rain_track2_volume] = 0;
|
|
75
|
global.flag[363 rain_track1] = 0;
|
|
76
|
global.flag[364 rain_track2] = 0;
|
|
77
|
scr_dogcheckscr_dogcheck
dogcheck = 1;
if (global.currentroom < room_area1)
dogcheck = 0;
if (global.currentroom > room_icecave1)
dogcheck = 0;
if (global.currentroom == room_castle_trueexit)
dogcheck = 0;
if (global.currentroom == room_outsideworld)
dogcheck = 0;
if (global.currentroom == room_undertale_end)
dogcheck = 0;
if (global.currentroom == room_tundra_sansroom)
dogcheck = 0;
if (global.currentroom == room_tundra_sansroom_dark)
dogcheck = 0;
if (global.currentroom == room_tundra_sansbasement)
dogcheck = 0;
if (dogcheck == 0)
room_goto(room_of_dog Dogcheck room); ();
|
|
78
|
if (dogcheck == 1)
|
|
79
|
room_goto(global.currentroom);
|