|
1
|
var _center_x = (camerax() + (camerawidth() / 2)) - 20;
|
|
2
|
var _center_y = cameray() + 120;
|
|
3
|
reticle_over_good_shot = false;
|
|
4
|
if (place_meeting(x, y, obj_heroparent))
|
|
5
|
reticle_over_good_shot = true;
|
|
6
|
switch (subact_state)
|
|
7
|
{
|
|
8
|
case "init":
|
|
9
|
subact_state = "intro";
|
|
10
|
krs_time = -1;
|
|
11
|
krs_duration = 0;
|
|
12
|
krs_got_funny = false;
|
|
13
|
pattern = 0;
|
|
14
|
pattern_prev = -1;
|
|
15
|
pattern_reverse = false;
|
|
16
|
k_path = -1;
|
|
17
|
s_path = -1;
|
|
18
|
s_flip_h = -1;
|
|
19
|
s_flip_v = -1;
|
|
20
|
with (obj_herokris)
|
|
21
|
{
|
|
22
|
x = xstart;
|
|
23
|
y = ystart;
|
|
24
|
}
|
|
25
|
with (obj_herosusie)
|
|
26
|
{
|
|
27
|
x = xstart;
|
|
28
|
y = ystart;
|
|
29
|
}
|
|
30
|
with (obj_heroralsei)
|
|
31
|
{
|
|
32
|
x = xstart;
|
|
33
|
y = ystart;
|
|
34
|
}
|
|
35
|
with (enemy)
|
|
36
|
{
|
|
37
|
x = xstart;
|
|
38
|
y = ystart;
|
|
39
|
sprite_index = spr_shutta_idle;
|
|
40
|
image_speed = 0.16666666666666666;
|
|
41
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (x + 170, y, 8);
|
|
42
|
}
|
|
43
|
break;
|
|
44
|
case "intro":
|
|
45
|
krs_duration = 10;
|
|
46
|
if (krs_time == 0)
|
|
47
|
{
|
|
48
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("kris", spr_krisr_dark, 0.5, true);
|
|
49
|
with (obj_herokris)
|
|
50
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (_center_x, _center_y - 2, other.krs_duration);
|
|
51
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_walk_right_dw, 0.5, true);
|
|
52
|
with (obj_herosusie)
|
|
53
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (_center_x - 50, _center_y - 12 - 6, other.krs_duration);
|
|
54
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("ralsei", spr_ralsei_walk_right, 0.5, true);
|
|
55
|
with (obj_heroralsei)
|
|
56
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (_center_x + 40, _center_y - 8, other.krs_duration);
|
|
57
|
}
|
|
58
|
if (krs_time >= krs_duration)
|
|
59
|
{
|
|
60
|
krs_got_funny = true;
|
|
61
|
krs_time = -1;
|
|
62
|
subact_state = "final_lerp";
|
|
63
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("ralsei", spr_ralsei_funnyface, 0, true);
|
|
64
|
obj_heroralsei.image_index = 2;
|
|
65
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("kris", spr_krisd_dark, 0, true);
|
|
66
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_walk_down_dw, 0, true);
|
|
67
|
}
|
|
68
|
break;
|
|
69
|
case "choose_pattern":
|
|
70
|
break;
|
|
71
|
case "lerp_to_pattern":
|
|
72
|
krs_duration = 7;
|
|
73
|
if (krs_time == 0)
|
|
74
|
{
|
|
75
|
var _k_px = (_center_x - 25) + path_get_x(k_path, pattern_reverse);
|
|
76
|
var _k_py = _center_y + path_get_y(k_path, pattern_reverse);
|
|
77
|
var _s_px = (_center_x - 25) + (path_get_x(s_path, pattern_reverse) * s_flip_h);
|
|
78
|
var _s_py = (_center_y - 12) + (path_get_y(s_path, pattern_reverse) * s_flip_v);
|
|
79
|
if (point_distance(obj_herokris.x, obj_herokris.y, _k_px, _k_py) < 5 && point_distance(obj_herosusie.x, obj_herosusie.y, _s_px, _s_py) < 5)
|
|
80
|
{
|
|
81
|
krs_time = krs_duration;
|
|
82
|
}
|
|
83
|
else
|
|
84
|
{
|
|
85
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("kris", spr_krisd_dark, 0, true);
|
|
86
|
with (obj_herosusie)
|
|
87
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (_s_px, _s_py, other.krs_duration);
|
|
88
|
}
|
|
89
|
}
|
|
90
|
if (krs_time >= krs_duration)
|
|
91
|
{
|
|
92
|
krs_time = -1;
|
|
93
|
subact_state = "pattern";
|
|
94
|
}
|
|
95
|
break;
|
|
96
|
case "pattern":
|
|
97
|
krs_duration = 15;
|
|
98
|
if (s_path == 27)
|
|
99
|
krs_duration = 15;
|
|
100
|
if (s_path == 7)
|
|
101
|
krs_duration = 30;
|
|
102
|
if (s_path == 24)
|
|
103
|
krs_duration = 45;
|
|
104
|
if (s_path == 25)
|
|
105
|
krs_duration = 15;
|
|
106
|
var _path_pos = krs_time / krs_duration;
|
|
107
|
if (pattern_reverse)
|
|
108
|
_path_pos = 1 - _path_pos;
|
|
109
|
obj_herosusie.x = (_center_x - 25) + (path_get_x(s_path, _path_pos) * s_flip_h);
|
|
110
|
obj_herosusie.y = (_center_y - 12) + (path_get_y(s_path, _path_pos) * s_flip_v);
|
|
111
|
if (krs_time >= krs_duration)
|
|
112
|
{
|
|
113
|
pattern_prev = pattern;
|
|
114
|
subact_state = "pose";
|
|
115
|
krs_time = -1;
|
|
116
|
}
|
|
117
|
break;
|
|
118
|
case "pose":
|
|
119
|
krs_duration = 10;
|
|
120
|
if (krs_time == 0)
|
|
121
|
{
|
|
122
|
switch (pattern)
|
|
123
|
{
|
|
124
|
case 0:
|
|
125
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_pose, 0, true);
|
|
126
|
break;
|
|
127
|
case 1:
|
|
128
|
obj_herokris.x += 40;
|
|
129
|
obj_herokris.y += 2;
|
|
130
|
obj_herosusie.y += 2;
|
|
131
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("kris", spr_kris_susie_faceaway_flipped, 0, true);
|
|
132
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_nothing, 0, true);
|
|
133
|
break;
|
|
134
|
case 2:
|
|
135
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_dance, 0, true);
|
|
136
|
break;
|
|
137
|
case 3:
|
|
138
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_chomp, 0, true);
|
|
139
|
break;
|
|
140
|
}
|
|
141
|
}
|
|
142
|
if (krs_time >= krs_duration)
|
|
143
|
subact_state = "choose_pattern";
|
|
144
|
break;
|
|
145
|
case "final_lerp":
|
|
146
|
krs_duration = 2;
|
|
147
|
if (krs_time == 0)
|
|
148
|
{
|
|
149
|
}
|
|
150
|
if (krs_time >= krs_duration)
|
|
151
|
{
|
|
152
|
with (obj_herokris)
|
|
153
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (_center_x - 6, _center_y, other.krs_duration);
|
|
154
|
with (obj_herosusie)
|
|
155
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (_center_x - 54, _center_y - 14, other.krs_duration);
|
|
156
|
krs_time = -1;
|
|
157
|
subact_state = "final_pose";
|
|
158
|
}
|
|
159
|
break;
|
|
160
|
case "final_pose":
|
|
161
|
if (krs_time == 0)
|
|
162
|
{
|
|
163
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("ralsei", spr_ralsei_funnyface, 0, true);
|
|
164
|
obj_heroralsei.image_index = 0;
|
|
165
|
obj_heroralsei.image_index = 1;
|
|
166
|
obj_herosusie.x -= 2;
|
|
167
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_funnyface, 0, true);
|
|
168
|
obj_herosusie.depth = obj_heroralsei.depth + 1;
|
|
169
|
obj_herosusie.image_index = 1;
|
|
170
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("kris", spr_nothing, 0, true);
|
|
171
|
}
|
|
172
|
break;
|
|
173
|
case "capture":
|
|
174
|
if (krs_got_funny)
|
|
175
|
{
|
|
176
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("ralsei", spr_ralsei_funnyface2, 0, true);
|
|
177
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", spr_susie_funnyface, 0, true);
|
|
178
|
obj_herosusie.image_index = 2;
|
|
179
|
}
|
|
180
|
if (got_kris && got_susie && got_ralsei)
|
|
181
|
{
|
|
182
|
enemy.photosuccessballoon = 1;
|
|
183
|
enemy.endcon = 1;
|
|
184
|
with (obj_battlecontroller)
|
|
185
|
noreturn = 1;
|
|
186
|
endmessage = message_splendidphoto;
|
|
187
|
if (enemy.amiabossfight == true)
|
|
188
|
obj_shutta_photo_controller.endmessage = stringsetloc(* Aw, the whole family! ... Mike, add me in there later!"* Aw, the whole family! ... Mike, add me in there later!", "obj_shutta_photo_controller_slash_Other_11_gml_255_0" );
|
|
189
|
enemy.photosuccesscount++;
|
|
190
|
if (enemy.amiabossfight == true)
|
|
191
|
{
|
|
192
|
if (powerphoto)
|
|
193
|
mercygained += 20;
|
|
194
|
else
|
|
195
|
mercygained += 20;
|
|
196
|
}
|
|
197
|
else
|
|
198
|
{
|
|
199
|
mercygained += 100;
|
|
200
|
}
|
|
201
|
if (krs_got_funny)
|
|
202
|
{
|
|
203
|
var _comment = instance_create(x, y, obj_shutta_text);
|
|
204
|
_comment.text = comment_center;
|
|
205
|
_comment.color = c_yellow;
|
|
206
|
}
|
|
207
|
}
|
|
208
|
else if ((got_kris && !got_susie && !got_ralsei) && global.flag[513 shuttah_kris_pic] == 0)
|
|
209
|
{
|
|
210
|
enemy.photosuccesscount++;
|
|
211
|
if (enemy.amiabossfight == true)
|
|
212
|
{
|
|
213
|
if (powerphoto)
|
|
214
|
mercygained += 12;
|
|
215
|
mercygained += 12;
|
|
216
|
}
|
|
217
|
else
|
|
218
|
{
|
|
219
|
if (powerphoto)
|
|
220
|
mercygained += 50;
|
|
221
|
mercygained += 50;
|
|
222
|
}
|
|
223
|
endmessage = message_nicephoto;
|
|
224
|
if (enemy.amiabossfight == true)
|
|
225
|
{
|
|
226
|
obj_shutta_photo_controller.endmessage = message_kris;
|
|
227
|
if (global.flag[513 shuttah_kris_pic] > 0)
|
|
228
|
obj_shutta_photo_controller.endmessage = message_kris2;
|
|
229
|
}
|
|
230
|
global.flag[513 shuttah_kris_pic] = 1;
|
|
231
|
}
|
|
232
|
else if ((!got_kris && got_susie && !got_ralsei) && global.flag[514 shuttah_susie_pic] == 0)
|
|
233
|
{
|
|
234
|
enemy.photosuccesscount++;
|
|
235
|
if (enemy.amiabossfight == true)
|
|
236
|
{
|
|
237
|
if (powerphoto)
|
|
238
|
mercygained += 12;
|
|
239
|
mercygained += 12;
|
|
240
|
}
|
|
241
|
else
|
|
242
|
{
|
|
243
|
if (powerphoto)
|
|
244
|
mercygained += 50;
|
|
245
|
mercygained += 50;
|
|
246
|
}
|
|
247
|
endmessage = message_nicephoto;
|
|
248
|
if (enemy.amiabossfight == true)
|
|
249
|
{
|
|
250
|
obj_shutta_photo_controller.endmessage = message_susie;
|
|
251
|
if (global.flag[514 shuttah_susie_pic] > 0)
|
|
252
|
obj_shutta_photo_controller.endmessage = message_susie2;
|
|
253
|
}
|
|
254
|
global.flag[514 shuttah_susie_pic] = 1;
|
|
255
|
}
|
|
256
|
else if ((!got_kris && !got_susie && got_ralsei) && global.flag[515 shuttah_ralsei_pic] == 0)
|
|
257
|
{
|
|
258
|
enemy.photosuccesscount++;
|
|
259
|
if (enemy.amiabossfight == true)
|
|
260
|
{
|
|
261
|
if (powerphoto)
|
|
262
|
mercygained += 12;
|
|
263
|
mercygained += 12;
|
|
264
|
}
|
|
265
|
else
|
|
266
|
{
|
|
267
|
if (powerphoto)
|
|
268
|
mercygained += 50;
|
|
269
|
mercygained += 50;
|
|
270
|
}
|
|
271
|
endmessage = message_nicephoto;
|
|
272
|
if (enemy.amiabossfight == true)
|
|
273
|
{
|
|
274
|
if (global.flag[515 shuttah_ralsei_pic] == 0)
|
|
275
|
obj_shutta_photo_controller.endmessage = message_ralsei;
|
|
276
|
if (global.flag[515 shuttah_ralsei_pic] > 0)
|
|
277
|
obj_shutta_photo_controller.endmessage = message_ralsei2;
|
|
278
|
}
|
|
279
|
global.flag[515 shuttah_ralsei_pic] = 1;
|
|
280
|
}
|
|
281
|
else if ((got_kris && got_susie && !got_ralsei) || (got_kris && !got_susie && got_ralsei) || (!got_kris && got_susie && got_ralsei) || (got_kris && !got_susie && !got_ralsei) || (!got_kris && got_susie && !got_ralsei) || (!got_kris && !got_susie && got_ralsei))
|
|
282
|
{
|
|
283
|
enemy.photosuccesscount++;
|
|
284
|
if (enemy.amiabossfight == true)
|
|
285
|
{
|
|
286
|
if (powerphoto)
|
|
287
|
mercygained += 12;
|
|
288
|
mercygained += 12;
|
|
289
|
}
|
|
290
|
else
|
|
291
|
{
|
|
292
|
if (powerphoto)
|
|
293
|
mercygained += 50;
|
|
294
|
mercygained += 50;
|
|
295
|
}
|
|
296
|
endmessage = message_nicephoto;
|
|
297
|
if (enemy.amiabossfight == true)
|
|
298
|
obj_shutta_photo_controller.endmessage = message_unposed;
|
|
299
|
}
|
|
300
|
else
|
|
301
|
{
|
|
302
|
endmessage = message_badphoto;
|
|
303
|
if (enemy.amiabossfight == true)
|
|
304
|
obj_shutta_photo_controller.endmessage = message_notcentered;
|
|
305
|
enemy.photosuccesscount++;
|
|
306
|
mercygained += 8;
|
|
307
|
if (powerphoto)
|
|
308
|
mercygained += 8;
|
|
309
|
}
|
|
310
|
with (enemy)
|
|
311
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (xstart, ystart, 8);
|
|
312
|
break;
|
|
313
|
case "post_capture":
|
|
314
|
with (enemy)
|
|
315
|
{
|
|
316
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (xstart, ystart, 8);
|
|
317
|
x = xstart;
|
|
318
|
y = ystart;
|
|
319
|
}
|
|
320
|
instance_destroy(obj_move_to_point);
|
|
321
|
scr_battle_sprite_resetscr_battle_sprite_reset
function scr_battle_sprite_reset(arg0)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 0;
hurt = 0;
attacktimer = 0;
attacked = 0;
maxframes = 0;
global.faceaction[myself] = 0;
}
}
} ("susie");
|
|
322
|
scr_battle_sprite_resetscr_battle_sprite_reset
function scr_battle_sprite_reset(arg0)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 0;
hurt = 0;
attacktimer = 0;
attacked = 0;
maxframes = 0;
global.faceaction[myself] = 0;
}
}
} ("kris");
|
|
323
|
scr_battle_sprite_resetscr_battle_sprite_reset
function scr_battle_sprite_reset(arg0)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 0;
hurt = 0;
attacktimer = 0;
attacked = 0;
maxframes = 0;
global.faceaction[myself] = 0;
}
}
} ("ralsei");
|
|
324
|
with (obj_herosusie)
|
|
325
|
{
|
|
326
|
x = xstart;
|
|
327
|
y = ystart;
|
|
328
|
}
|
|
329
|
with (obj_herokris)
|
|
330
|
{
|
|
331
|
x = xstart;
|
|
332
|
y = ystart;
|
|
333
|
}
|
|
334
|
with (obj_heroralsei)
|
|
335
|
{
|
|
336
|
x = xstart;
|
|
337
|
y = ystart;
|
|
338
|
}
|
|
339
|
break;
|
|
340
|
}
|
|
341
|
krs_time++;
|
|
342
|
if (subact_state == "lerp_to_pattern" || subact_state == "pattern" || subact_state == "final_lerp")
|
|
343
|
{
|
|
344
|
with (obj_herokris)
|
|
345
|
{
|
|
346
|
if (xprevious != x || yprevious != y)
|
|
347
|
{
|
|
348
|
var _spr;
|
|
349
|
if ((abs(xprevious - x) + 2) > abs(yprevious - y))
|
|
350
|
_spr = (xprevious < x) ? spr_krisr_dark : spr_krisl_dark;
|
|
351
|
else
|
|
352
|
_spr = (yprevious < y) ? spr_krisd_dark : spr_krisu_dark;
|
|
353
|
if (sprite_index != _spr)
|
|
354
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("kris", _spr, 0.25, true);
|
|
355
|
}
|
|
356
|
depth = obj_heroralsei.depth + (obj_heroralsei.y - y);
|
|
357
|
}
|
|
358
|
with (obj_herosusie)
|
|
359
|
{
|
|
360
|
if (xprevious != x || yprevious != y)
|
|
361
|
{
|
|
362
|
var _spr;
|
|
363
|
if ((abs(xprevious - x) + 2) > abs(yprevious - y))
|
|
364
|
_spr = (xprevious < x) ? spr_susie_walk_right_dw : spr_susie_walk_left_dw;
|
|
365
|
else
|
|
366
|
_spr = (yprevious < y) ? spr_susie_walk_down_dw : spr_susie_walk_up_dw;
|
|
367
|
if (sprite_index != _spr)
|
|
368
|
scr_battle_sprite_setscr_battle_sprite_set
function scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{
_charactor = arg0;
_charinstance = obj_herokris;
if (_charactor == "noelle")
{
_charinstance = obj_heronoelle;
_charnum = 4;
}
if (_charactor == "ralsei")
{
_charinstance = obj_heroralsei;
_charnum = 3;
}
if (_charactor == "susie")
{
_charinstance = obj_herosusie;
_charnum = 2;
}
if (_charactor == "kris")
{
_charinstance = obj_herokris;
_charnum = 1;
}
if (instance_exists(_charinstance))
{
with (_charinstance)
{
state = 8;
hurt = 0;
attacktimer = 0;
sprite_index = arg1;
image_speed = arg2;
image_index = 0;
if (arg3 == 0)
maxframes = image_number;
global.faceaction[myself] = 0;
}
}
} ("susie", _spr, 0.25, true);
|
|
369
|
}
|
|
370
|
depth = obj_heroralsei.depth + (obj_heroralsei.y - (y + 8));
|
|
371
|
}
|
|
372
|
}
|