|
1
|
buffer += 1;
|
|
2
|
if (global.interact == 5)
|
|
3
|
{
|
|
4
|
xx = __view_get(e__VW.XView, view_current);
|
|
5
|
yy = __view_get(e__VW.YView, view_current) + 10;
|
|
6
|
moveyy = yy;
|
|
7
|
var stat_right = 263;
|
|
8
|
if (global.lang == "ja")
|
|
9
|
stat_right = 300;
|
|
10
|
if (obj_mainchara.y > (yy + 120))
|
|
11
|
moveyy += 135;
|
|
12
|
if (global.menuno != 4)
|
|
13
|
{
|
|
14
|
draw_set_color(c_white);
|
|
15
|
draw_rectangle(16 + xx, 16 + moveyy, 86 + xx, 70 + moveyy, false);
|
|
16
|
draw_rectangle(16 + xx, 74 + yy, 86 + xx, 147 + yy, false);
|
|
17
|
if (global.menuno == 1 || global.menuno == 5 || global.menuno == 6)
|
|
18
|
draw_rectangle(94 + xx, 16 + yy, 266 + xx, 196 + yy, false);
|
|
19
|
if (global.menuno == 2)
|
|
20
|
draw_rectangle(94 + xx, 16 + yy, stat_right + 3 + xx, 224 + yy, false);
|
|
21
|
if (global.menuno == 3)
|
|
22
|
draw_rectangle(94 + xx, 16 + yy, 266 + xx, 150 + yy, false);
|
|
23
|
if (global.menuno == 7)
|
|
24
|
draw_rectangle(94 + xx, 16 + yy, 266 + xx, 216 + yy, false);
|
|
25
|
draw_set_color(c_black);
|
|
26
|
draw_rectangle(19 + xx, 19 + moveyy, 83 + xx, 67 + moveyy, false);
|
|
27
|
draw_rectangle(19 + xx, 77 + yy, 83 + xx, 144 + yy, false);
|
|
28
|
if (global.menuno == 1 || global.menuno == 5 || global.menuno == 6)
|
|
29
|
draw_rectangle(97 + xx, 19 + yy, 263 + xx, 193 + yy, false);
|
|
30
|
if (global.menuno == 2)
|
|
31
|
draw_rectangle(97 + xx, 19 + yy, stat_right + xx, 221 + yy, false);
|
|
32
|
if (global.menuno == 3)
|
|
33
|
draw_rectangle(97 + xx, 19 + yy, 263 + xx, 147 + yy, false);
|
|
34
|
if (global.menuno == 7)
|
|
35
|
draw_rectangle(97 + xx, 19 + yy, 263 + xx, 213 + yy, false);
|
|
36
|
draw_set_color(c_white);
|
|
37
|
draw_set_font(fnt_small);
|
|
38
|
draw_text(23 + xx, 49 + moveyy, string_hash_to_newline( + string(global.lhp) + "/" + string(global.lmaxhp)));
|
|
39
|
draw_text(23 + xx, 40 + moveyy, string_hash_to_newline( + string(global.llv)));
|
|
40
|
draw_text(23 + xx, 58 + moveyy, string_hash_to_newline( + string(global.lgold)));
|
|
41
|
scr_84_set_draw_fontscr_84_set_draw_font
function scr_84_set_draw_font(arg0)
{
global.chemg_font = arg0;
draw_set_font(scr_84_get_font(arg0));
} ("main");
|
|
42
|
var _itemTextColor = hasitems ? c_white : c_gray;
|
|
43
|
if (global.lang == "ja")
|
|
44
|
{
|
|
45
|
draw_text(20 + xx, 20 + moveyy, string_hash_to_newline(global.lcharname));
|
|
46
|
draw_set_color(_itemTextColor);
|
|
47
|
draw_text(40 + xx, 84 + yy, string_hash_to_newline());
|
|
48
|
}
|
|
49
|
else
|
|
50
|
{
|
|
51
|
draw_text(23 + xx, 20 + moveyy, string_hash_to_newline(global.lcharname));
|
|
52
|
draw_set_color(_itemTextColor);
|
|
53
|
draw_text(42 + xx, 84 + yy, string_hash_to_newline());
|
|
54
|
}
|
|
55
|
draw_set_color(c_white);
|
|
56
|
draw_text(42 + xx, 102 + yy, string_hash_to_newline());
|
|
57
|
draw_text(42 + xx, 120 + yy, string_hash_to_newline());
|
|
58
|
if (global.menuno == 1 || global.menuno == 5)
|
|
59
|
{
|
|
60
|
for (i = 0; i < 8; i += 1)
|
|
61
|
draw_text(116 + xx, 30 + yy + (i * 16), string_hash_to_newline(global.litemname[i]));
|
|
62
|
draw_text(116 + xx, 170 + yy, string_hash_to_newline());
|
|
63
|
draw_text(116 + xx + 48, 170 + yy, string_hash_to_newline());
|
|
64
|
draw_text(116 + xx + 105, 170 + yy, string_hash_to_newline());
|
|
65
|
}
|
|
66
|
}
|
|
67
|
if (global.menuno == 3)
|
|
68
|
{
|
|
69
|
for (i = 0; i < 7; i += 1)
|
|
70
|
draw_text(116 + xx, 30 + yy + (i * 16), string_hash_to_newline(global.phonename[i]));
|
|
71
|
}
|
|
72
|
if (global.menuno == 2)
|
|
73
|
{
|
|
74
|
draw_text(108 + xx, 32 + yy, string_hash_to_newline(scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
} (, global.lcharname)));
|
|
75
|
draw_text(108 + xx, 62 + yy, string_hash_to_newline( + string(global.llv)));
|
|
76
|
draw_text(108 + xx, 78 + yy, string_hash_to_newline(scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
} (, string(global.lhp)) + string(global.lmaxhp)));
|
|
77
|
draw_text(108 + xx, 110 + yy, string_hash_to_newline(scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
} (, string(global.lat)) + string(global.lwstrength) + ")"));
|
|
78
|
draw_text(108 + xx, 126 + yy, string_hash_to_newline(scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
} (, string(global.ldf)) + string(global.ladef) + ")"));
|
|
79
|
weaponname = ;
|
|
80
|
armorname = ;
|
|
81
|
if (global.lweapon == 2)
|
|
82
|
weaponname = ;
|
|
83
|
if (global.lweapon == 6)
|
|
84
|
weaponname = ;
|
|
85
|
if (global.lweapon == 7)
|
|
86
|
weaponname = ;
|
|
87
|
if (global.larmor == 3)
|
|
88
|
armorname = ;
|
|
89
|
draw_text(108 + xx, 156 + yy, string_hash_to_newline( + weaponname));
|
|
90
|
draw_text(108 + xx, 172 + yy, string_hash_to_newline( + armorname));
|
|
91
|
draw_text(108 + xx, 192 + yy, string_hash_to_newline( + string(global.lgold)));
|
|
92
|
if (string_length(global.lcharname) >= 7)
|
|
93
|
draw_text(192 + xx, 32 + yy, string_hash_to_newline());
|
|
94
|
nextlevel = 0;
|
|
95
|
draw_text(192 + xx, 110 + yy, string_hash_to_newline( + string(global.lxp)));
|
|
96
|
if (global.llv == 1)
|
|
97
|
nextlevel = 10 - global.lxp;
|
|
98
|
if (global.llv == 2)
|
|
99
|
nextlevel = 30 - global.lxp;
|
|
100
|
if (global.llv == 3)
|
|
101
|
nextlevel = 70 - global.lxp;
|
|
102
|
if (global.llv == 4)
|
|
103
|
nextlevel = 120 - global.lxp;
|
|
104
|
if (global.llv == 5)
|
|
105
|
nextlevel = 200 - global.lxp;
|
|
106
|
if (global.llv == 6)
|
|
107
|
nextlevel = 300 - global.lxp;
|
|
108
|
if (global.llv == 7)
|
|
109
|
nextlevel = 500 - global.lxp;
|
|
110
|
if (global.llv == 8)
|
|
111
|
nextlevel = 800 - global.lxp;
|
|
112
|
if (global.llv == 9)
|
|
113
|
nextlevel = 1200 - global.lxp;
|
|
114
|
if (global.llv == 10)
|
|
115
|
nextlevel = 1700 - global.lxp;
|
|
116
|
if (global.llv == 11)
|
|
117
|
nextlevel = 2500 - global.lxp;
|
|
118
|
if (global.llv == 12)
|
|
119
|
nextlevel = 3500 - global.lxp;
|
|
120
|
if (global.llv == 13)
|
|
121
|
nextlevel = 5000 - global.lxp;
|
|
122
|
if (global.llv == 14)
|
|
123
|
nextlevel = 7000 - global.lxp;
|
|
124
|
if (global.llv == 15)
|
|
125
|
nextlevel = 10000 - global.lxp;
|
|
126
|
if (global.llv == 16)
|
|
127
|
nextlevel = 15000 - global.lxp;
|
|
128
|
if (global.llv == 17)
|
|
129
|
nextlevel = 25000 - global.lxp;
|
|
130
|
if (global.llv == 18)
|
|
131
|
nextlevel = 50000 - global.lxp;
|
|
132
|
if (global.llv == 19)
|
|
133
|
nextlevel = 99999 - global.lxp;
|
|
134
|
if (global.llv >= 20)
|
|
135
|
nextlevel = 0;
|
|
136
|
draw_text(192 + xx, 126 + yy, string_hash_to_newline( + string(nextlevel)));
|
|
137
|
}
|
|
138
|
if (global.menuno == 444)
|
|
139
|
{
|
|
140
|
}
|
|
141
|
if (global.menuno == 0)
|
|
142
|
draw_sprite(spr_heartsmall, 0, 28 + xx, 88 + yy + (18 * global.menucoord[0]));
|
|
143
|
if (global.menuno == 1)
|
|
144
|
draw_sprite(spr_heartsmall, 0, 104 + xx, 34 + yy + (16 * global.menucoord[1]));
|
|
145
|
if (global.menuno == 3)
|
|
146
|
draw_sprite(spr_heartsmall, 0, 104 + xx, 34 + yy + (16 * global.menucoord[3]));
|
|
147
|
if (global.menuno == 6)
|
|
148
|
draw_sprite(spr_heartsmall, 0, 104 + xx, 34 + yy + (16 * global.menucoord[6]));
|
|
149
|
if (global.menuno == 7)
|
|
150
|
draw_sprite(spr_heartsmall, 0, 104 + xx, 34 + yy + (16 * global.menucoord[7]));
|
|
151
|
if (global.menuno == 5)
|
|
152
|
{
|
|
153
|
if (global.menucoord[5] == 0)
|
|
154
|
draw_sprite(spr_heartsmall, 0, 104 + xx + (45 * global.menucoord[5]), 174 + yy);
|
|
155
|
if (global.menucoord[5] == 1)
|
|
156
|
draw_sprite(spr_heartsmall, 0, 104 + xx + ((45 * global.menucoord[5]) + 3), 174 + yy);
|
|
157
|
if (global.menucoord[5] == 2)
|
|
158
|
draw_sprite(spr_heartsmall, 0, 104 + xx + ((45 * global.menucoord[5]) + 15), 174 + yy);
|
|
159
|
}
|
|
160
|
}
|
|
161
|
|
|
162
|
enum e__VW
|
|
163
|
{
|
|
164
|
XView,
|
|
165
|
YView,
|
|
166
|
WView,
|
|
167
|
HView,
|
|
168
|
Angle,
|
|
169
|
HBorder,
|
|
170
|
VBorder,
|
|
171
|
HSpeed,
|
|
172
|
VSpeed,
|
|
173
|
Object,
|
|
174
|
Visible,
|
|
175
|
XPort,
|
|
176
|
YPort,
|
|
177
|
WPort,
|
|
178
|
HPort,
|
|
179
|
Camera,
|
|
180
|
SurfaceID
|
|
181
|
}
|