|
1
|
if (global.monster[myself] == 1)
|
|
2
|
{
|
|
3
|
if (global.mnfight == 1 && talked == 0)
|
|
4
|
{
|
|
5
|
scr_randomtargetscr_randomtarget
function scr_randomtarget()
{
abletotarget = 1;
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0)
abletotarget = 0;
mytarget = choose(0, 1, 2);
if (abletotarget == 1)
{
while (global.charcantarget[mytarget] == 0)
mytarget = choose(0, 1, 2);
}
else
{
mytarget = 3;
}
global.targeted[mytarget] = 1;
if (global.chapter >= 2 && mytarget != 3)
{
if (global.charcantarget[0])
global.targeted[0] = 1;
if (global.charcantarget[1])
global.targeted[1] = 1;
if (global.charcantarget[2])
global.targeted[2] = 1;
mytarget = 4;
}
} ();
|
|
6
|
if (!instance_exists(obj_darkener))
|
|
7
|
instance_create(0, 0, obj_darkener);
|
|
8
|
global.typer = 50;
|
|
9
|
rr = choose(0, 1, 2);
|
|
10
|
text1 = stringsetloc(Nice mouth"Nice mouth", "obj_clubsenemy_slash_Step_0_gml_13_0" );
|
|
11
|
text2 = stringsetloc(Anger mouth"Anger mouth", "obj_clubsenemy_slash_Step_0_gml_14_0" );
|
|
12
|
text3 = stringsetloc(Smart Mouth"Smart Mouth", "obj_clubsenemy_slash_Step_0_gml_15_0" );
|
|
13
|
if (rr == 0)
|
|
14
|
{
|
|
15
|
text1 = stringsetloc(Nice to see you again!"Nice to&see you&again!", "obj_clubsenemy_slash_Step_0_gml_19_0" );
|
|
16
|
text2 = stringsetloc(This time you die!"This&time you&die!", "obj_clubsenemy_slash_Step_0_gml_20_0" );
|
|
17
|
text3 = stringsetloc(Please ignore them."Please&ignore&them.", "obj_clubsenemy_slash_Step_0_gml_21_0" );
|
|
18
|
}
|
|
19
|
if (rr == 1)
|
|
20
|
{
|
|
21
|
text1 = stringsetloc(How well do you know us?"How well&do you&know us?", "obj_clubsenemy_slash_Step_0_gml_26_0" );
|
|
22
|
text2 = stringsetloc(YOU KNOW NOTHING, IDIOT!"YOU KNOW&NOTHING,&IDIOT!", "obj_clubsenemy_slash_Step_0_gml_27_0" );
|
|
23
|
text3 = stringsetloc(Sorry about this..."Sorry&about&this...", "obj_clubsenemy_slash_Step_0_gml_28_0" );
|
|
24
|
}
|
|
25
|
if (rr == 2)
|
|
26
|
{
|
|
27
|
text1 = stringsetloc(Nice dojo today."Nice&dojo&today.", "obj_clubsenemy_slash_Step_0_gml_33_0" );
|
|
28
|
text2 = stringsetloc(What? It's just awful!"What?&It's just&awful!", "obj_clubsenemy_slash_Step_0_gml_34_0" );
|
|
29
|
text3 = stringsetloc(Please stop, you two..."Please&stop, you&two...", "obj_clubsenemy_slash_Step_0_gml_35_0" );
|
|
30
|
}
|
|
31
|
global.msg[0] = text1;
|
|
32
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (x - 110, y - 10, 4);
|
|
33
|
global.msg[0] = text2;
|
|
34
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (x - 125, y + 70, 5);
|
|
35
|
global.msg[0] = text3;
|
|
36
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
if (arg2 == 11)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_left;
return myblcon;
}
if (arg2 == 12)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right;
return myblcon;
}
if (arg2 == 12.1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right2;
return myblcon;
}
if (arg2 == 12.2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right3;
return myblcon;
}
if (arg2 == 12.3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v2_right4;
return myblcon;
}
if (arg2 == 12.4)
{
... (x + 125, y - 10, 6);
|
|
37
|
with (obj_monsterparent)
|
|
38
|
talkmax = 210;
|
|
39
|
talked = 1;
|
|
40
|
talktimer = 0;
|
|
41
|
manual = 0;
|
|
42
|
}
|
|
43
|
if (talked == 1 && global.mnfight == 1)
|
|
44
|
{
|
|
45
|
rtimer = 0;
|
|
46
|
scr_blconskipscr_blconskip
function scr_blconskip(arg0)
{
if (arg0 >= 0)
{
if (button1_p() && talktimer > arg0)
talktimer = talkmax;
talktimer += 1;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 1.5;
}
}
else if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 1.5;
}
else if (arg0 == -2)
{
talktimer += 1;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 1.5;
}
}
} (15);
|
|
47
|
if (global.mnfight == 2)
|
|
48
|
{
|
|
49
|
if (!instance_exists(obj_moveheart))
|
|
50
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
51
|
if (!instance_exists(obj_growtangle))
|
|
52
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
53
|
}
|
|
54
|
}
|
|
55
|
if (global.mnfight == 2 && attacked == 0)
|
|
56
|
{
|
|
57
|
rtimer += 1;
|
|
58
|
if (rtimer == 12)
|
|
59
|
{
|
|
60
|
rr = choose(0, 1, 2);
|
|
61
|
if (rr == 0)
|
|
62
|
{
|
|
63
|
dc = instance_create(x, y, obj_dbulletcontroller);
|
|
64
|
dc.type = 30;
|
|
65
|
dc.target = mytarget;
|
|
66
|
dc.ratio = 0.7;
|
|
67
|
dc.grazepoints = 5;
|
|
68
|
dc.timepoints = 2;
|
|
69
|
dc.damage = global.monsterat[myself] * 5;
|
|
70
|
}
|
|
71
|
else if (rr == 1)
|
|
72
|
{
|
|
73
|
dc = instance_create(x, y, obj_dbulletcontroller);
|
|
74
|
dc.type = 31;
|
|
75
|
dc.ratio = 0.7;
|
|
76
|
dc.target = mytarget;
|
|
77
|
dc.grazepoints = 5;
|
|
78
|
dc.timepoints = 1;
|
|
79
|
dc.damage = global.monsterat[myself] * 5;
|
|
80
|
}
|
|
81
|
else
|
|
82
|
{
|
|
83
|
dc = instance_create(x, y, obj_dbulletcontroller);
|
|
84
|
dc.type = 33;
|
|
85
|
dc.target = mytarget;
|
|
86
|
dc.grazepoints = 5;
|
|
87
|
dc.timepoints = 2;
|
|
88
|
dc.damage = global.monsterat[myself] * 5;
|
|
89
|
}
|
|
90
|
turns += 1;
|
|
91
|
global.turntimer = 240;
|
|
92
|
attacked = 1;
|
|
93
|
global.typer = 6;
|
|
94
|
global.fc = 0;
|
|
95
|
rr = choose(0, 1, 2, 3, 4, 5);
|
|
96
|
if (rr == 0)
|
|
97
|
global.battlemsg[0] = stringsetloc(* Clover flashes a trio of terrible smiles."* Clover flashes a trio of terrible smiles.", "obj_clubsenemy_slash_Step_0_gml_139_0" );
|
|
98
|
if (rr == 1)
|
|
99
|
global.battlemsg[0] = stringsetloc(* Clover is bickering with herselves."* Clover is bickering with herselves.", "obj_clubsenemy_slash_Step_0_gml_140_0" );
|
|
100
|
if (rr == 2)
|
|
101
|
global.battlemsg[0] = stringsetloc(* Clover is whispering about cute boys."* Clover is whispering about cute boys.", "obj_clubsenemy_slash_Step_0_gml_141_0" );
|
|
102
|
if (rr == 3)
|
|
103
|
global.battlemsg[0] = stringsetloc(* Clover is arguing about whose toothbrush is whose."* Clover is arguing about whose toothbrush is whose.", "obj_clubsenemy_slash_Step_0_gml_142_0" );
|
|
104
|
if (rr == 4)
|
|
105
|
global.battlemsg[0] = stringsetloc(* Clover hums like an out-of-tune choir."* Clover hums like an out-of-tune choir.", "obj_clubsenemy_slash_Step_0_gml_143_0" );
|
|
106
|
if (rr == 5)
|
|
107
|
global.battlemsg[0] = stringsetloc(* Smells like clover and dew."* Smells like clover and dew.", "obj_clubsenemy_slash_Step_0_gml_144_0" );
|
|
108
|
if (global.monsterstatus[myself] == 1)
|
|
109
|
global.battlemsg[0] = stringsetloc(* Clover seems TIRED of discussing so much."* Clover seems TIRED of discussing so much.", "obj_clubsenemy_slash_Step_0_gml_145_0" );
|
|
110
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
|
|
111
|
global.battlemsg[0] = stringsetloc(* Clover starts to look wilted."* Clover starts to look wilted.", "obj_clubsenemy_slash_Step_0_gml_146_0" );
|
|
112
|
if (global.mercymod[myself] >= global.mercymax[myself])
|
|
113
|
global.msg[0] = stringsetloc(* Clover seems to be getting along with herselves."* Clover seems to be getting along with herselves.", "obj_clubsenemy_slash_Step_0_gml_147_0" );
|
|
114
|
if (betray == 1)
|
|
115
|
global.battlemsg[0] = stringsetloc(* Clover's harmony was shattered by violence."* Clover's harmony was shattered by violence.", "obj_clubsenemy_slash_Step_0_gml_148_0" );
|
|
116
|
betray = 0;
|
|
117
|
}
|
|
118
|
else
|
|
119
|
{
|
|
120
|
global.turntimer = 150;
|
|
121
|
}
|
|
122
|
}
|
|
123
|
}
|
|
124
|
if (global.myfight == 3)
|
|
125
|
{
|
|
126
|
xx = __view_get(e__VW.XView, 0);
|
|
127
|
yy = __view_get(e__VW.YView, 0);
|
|
128
|
if (acting == 1 && actcon == 0)
|
|
129
|
{
|
|
130
|
actcon = 1;
|
|
131
|
global.msg[0] = stringsetloc(* CLOVER - AT 8 DF 2 * Two heads are better than one!Delay 11 * Three...Delay 11 maybe not.Wait for inputClose Message"* CLOVER - AT 8 DF 2&* Two heads are better than one^1!&* Three..^1. maybe not./%", "obj_clubsenemy_slash_Step_0_gml_168_0" );
|
|
132
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
133
|
}
|
|
134
|
if (acting == 2 && actcon == 0)
|
|
135
|
{
|
|
136
|
topic_con = 1;
|
|
137
|
topic_timer = 90;
|
|
138
|
topic_timer_total = topic_timer;
|
|
139
|
actcon = 15;
|
|
140
|
}
|
|
141
|
if (topic_con == 1)
|
|
142
|
{
|
|
143
|
topic_con = 2;
|
|
144
|
topic_count++;
|
|
145
|
ds_list_shuffle(likes_list);
|
|
146
|
ds_list_shuffle(dislikes_list);
|
|
147
|
var choice_amount = 3;
|
|
148
|
for (var i = 0; i < choice_amount; i++)
|
|
149
|
{
|
|
150
|
prepend = (i == 2 || i == 3) ? "" : "#";
|
|
151
|
global.choicemsg[i] = prepend + ds_list_find_value(dislikes_list, i);
|
|
152
|
}
|
|
153
|
right_answer = floor(random(choice_amount));
|
|
154
|
var prepend = (string_pos("#", global.choicemsg[right_answer]) != 0) ? "#" : "";
|
|
155
|
global.choicemsg[right_answer] = prepend + ds_list_find_value(likes_list, 0);
|
|
156
|
msgsetloc(0, * Choose a topic that Clover likes!Wait for inputClose Message"* Choose a topic that Clover likes!/%", "obj_clubsenemy_slash_Step_0_gml_233_0" );
|
|
157
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
158
|
}
|
|
159
|
if (topic_con == 2 && !i_ex(obj_writer))
|
|
160
|
{
|
|
161
|
topic_con = 3;
|
|
162
|
msgset(0, "\\C3 ");
|
|
163
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
164
|
}
|
|
165
|
if (topic_con == 3)
|
|
166
|
{
|
|
167
|
if (!i_ex(obj_writer) && !i_ex(obj_choicer_neo))
|
|
168
|
{
|
|
169
|
topic_con = 4;
|
|
170
|
}
|
|
171
|
else
|
|
172
|
{
|
|
173
|
topic_timer--;
|
|
174
|
if (topic_timer <= 0)
|
|
175
|
{
|
|
176
|
topic_con = 4;
|
|
177
|
topic_timeup = true;
|
|
178
|
if (i_ex(obj_writer))
|
|
179
|
instance_destroy(obj_writer);
|
|
180
|
if (i_ex(obj_choicer_neo))
|
|
181
|
instance_destroy(obj_choicer_neo);
|
|
182
|
}
|
|
183
|
}
|
|
184
|
}
|
|
185
|
if (topic_con == 4 && !i_ex(obj_writer) && !i_ex(obj_choicer_neo))
|
|
186
|
{
|
|
187
|
topic_start = false;
|
|
188
|
topic_con = 0;
|
|
189
|
if (topic_timeup)
|
|
190
|
{
|
|
191
|
topic_timeup = false;
|
|
192
|
snd_play(snd_error);
|
|
193
|
scr_miniface_init_cloverscr_miniface_init_clover
function scr_miniface_init_clover()
{
global.writerimg[1] = spr_miniface_clover_happy;
global.writerimg[2] = spr_miniface_clover_mad;
global.writerimg[3] = spr_miniface_clover_sad;
} ();
|
|
194
|
msgsetloc(0, Mini face 1 \t\tTime's up! Mini face 2 \tTOO SLOW! Mini face 3 \t(Sorry...)Wait for inputClose Message"\\m1*\t\tTime's up!&\\m2\tTOO SLOW!&\\m3\t(Sorry...)/%", "obj_clubsenemy_slash_Step_0_gml_286_0" );
|
|
195
|
}
|
|
196
|
else if (global.choice == right_answer)
|
|
197
|
{
|
|
198
|
snd_play(snd_won);
|
|
199
|
if (global.mercymod[myself] < global.mercymax[myself])
|
|
200
|
{
|
|
201
|
var mercytotal = clamp(20 + (turns * 5), 20, 50);
|
|
202
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, mercytotal);
|
|
203
|
}
|
|
204
|
scr_miniface_init_cloverscr_miniface_init_clover
function scr_miniface_init_clover()
{
global.writerimg[1] = spr_miniface_clover_happy;
global.writerimg[2] = spr_miniface_clover_mad;
global.writerimg[3] = spr_miniface_clover_sad;
} ();
|
|
205
|
msgsetloc(0, Mini face 1 \t\tThat's right!Delay 22 Mini face 2 \tNot bad!Delay 22 Mini face 3 \t(It's OK...)Delay 22Wait for inputClose Message"\\m1*\t\tThat's right^2!&\\m2\tNot bad^2!&\\m3\t(It's OK...^2)/%", "obj_clubsenemy_slash_Step_0_gml_293_0" );
|
|
206
|
}
|
|
207
|
else
|
|
208
|
{
|
|
209
|
snd_play(snd_error);
|
|
210
|
scr_miniface_init_cloverscr_miniface_init_clover
function scr_miniface_init_clover()
{
global.writerimg[1] = spr_miniface_clover_happy;
global.writerimg[2] = spr_miniface_clover_mad;
global.writerimg[3] = spr_miniface_clover_sad;
} ();
|
|
211
|
msgsetloc(0, Mini face 1 \t\tNo thanks! Mini face 2 \tWRONG! Mini face 3 \t(Is it that bad?)Wait for inputClose Message"\\m1*\t\tNo thanks!&\\m2\tWRONG!&\\m3\t(Is it that bad?)/%", "obj_clubsenemy_slash_Step_0_gml_296_0_b" );
|
|
212
|
}
|
|
213
|
actcon = 1;
|
|
214
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
215
|
}
|
|
216
|
if (acting == 3 && actcon == 0)
|
|
217
|
{
|
|
218
|
topic_con = 1;
|
|
219
|
topic_timer = 300;
|
|
220
|
topic_timer_total = topic_timer;
|
|
221
|
actcon = 15;
|
|
222
|
}
|
|
223
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
224
|
{
|
|
225
|
if (argue >= 3)
|
|
226
|
{
|
|
227
|
global.monstercomment[myself] = stringsetloc((Tired)"(Tired)", "obj_clubsenemy_slash_Step_0_gml_256_0" );
|
|
228
|
global.monsterstatus[myself] = 1;
|
|
229
|
}
|
|
230
|
actcon = 0;
|
|
231
|
scr_act_charsprite_endscr_act_charsprite_end
function scr_act_charsprite_end()
{
for (i = 0; i < 10; i++)
{
with (_charactsprite[i])
instance_destroy();
}
with (obj_heroparent)
{
if (image_alpha == 0)
{
image_alpha = 1;
acttimer = 0;
state = 0;
global.faceaction[myself] = 0;
}
}
} ();
|
|
232
|
scr_nextactscr_nextact
function scr_nextact()
{
global.acting[0] = 0;
global.acting[1] = 0;
global.acting[2] = 0;
global.actingsingle[global.currentactingchar] = 0;
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
with (__minstance)
{
acting = 0;
actcon = 0;
actconsus = 0;
actconral = 0;
actconnoe = 0;
}
var singleactcomplete = 0;
while (global.currentactingchar < 3)
{
global.currentactingchar++;
if (global.currentactingchar < 3)
{
if (global.actingsingle[global.currentactingchar] == 1)
{
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
if (global.char[global.currentactingchar] == 2)
{
with (__minstance)
actconsus = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 3)
{
with (__minstance)
actconral = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 4)
{
with (__minstance)
actconnoe = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
}
}
}
if (global.currentactingchar >= 3)
{
with (obj_monsterparent)
{
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
global.currentactingchar = 0;
scr_attackphase();
}
else if (!singleactcomplete)
{
scr_act_simul();
}
} ();
|
|
233
|
}
|
|
234
|
if (actingsus == 1 && actconsus == 1)
|
|
235
|
{
|
|
236
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 5);
|
|
237
|
msgsetloc(0, * Susie stood there awkwardly!Wait for inputClose Message"* Susie stood there awkwardly!/%", "obj_clubsenemy_slash_Step_0_gml_459_0" );
|
|
238
|
scr_simultextscr_simultext
function scr_simultext(arg0)
{
__simulorder = 0;
if (arg0 == "kris")
__simulorder = simulorderkri;
if (arg0 == "susie")
__simulorder = simulordersus;
if (arg0 == "ralsei")
__simulorder = simulorderral;
if (arg0 == "noelle")
__simulorder = simulordernoe;
__yoffset = __simulorder * 30;
global.typer = 4;
battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer);
} ("susie");
|
|
239
|
actconsus = 20;
|
|
240
|
}
|
|
241
|
if (actingral == 1 && actconral == 1)
|
|
242
|
{
|
|
243
|
scr_mercyaddscr_mercyadd
function scr_mercyadd(arg0, arg1)
{
global.mercymod[arg0] += arg1;
if (global.mercymod[arg0] < 0)
global.mercymod[arg0] = 0;
if (global.mercymod[arg0] >= 100)
global.mercymod[arg0] = 100;
var _playsound = 1;
if (arg1 <= 0)
_playsound = 0;
with (obj_dmgwriter)
{
if (type == 5 && mercytimer < 8)
_playsound = 0;
}
if (_playsound)
{
var _pitch = 0.8;
if (arg1 < 99)
_pitch = 1;
if (arg1 <= 50)
_pitch = 1.2;
if (arg1 <= 25)
_pitch = 1.4;
snd_play_x(snd_mercyadd, 0.8, _pitch);
}
__mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter);
__mercydmgwriter.damage = arg1;
__mercydmgwriter.type = 5;
global.hittarget[arg0]++;
} (myself, 25);
|
|
244
|
msgsetloc(0, * Ralsei stood there cutely!Wait for inputClose Message"* Ralsei stood there cutely!/%", "obj_clubsenemy_slash_Step_0_gml_469_0" );
|
|
245
|
scr_simultextscr_simultext
function scr_simultext(arg0)
{
__simulorder = 0;
if (arg0 == "kris")
__simulorder = simulorderkri;
if (arg0 == "susie")
__simulorder = simulordersus;
if (arg0 == "ralsei")
__simulorder = simulorderral;
if (arg0 == "noelle")
__simulorder = simulordernoe;
__yoffset = __simulorder * 30;
global.typer = 4;
battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer);
} ("ralsei");
|
|
246
|
actconral = 20;
|
|
247
|
}
|
|
248
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
249
|
{
|
|
250
|
if (scr_terminate_writerscr_terminate_writer
function scr_terminate_writer()
{
__writerkilled = 0;
__writerkillable = 0;
__writerended = 0;
if (instance_exists(obj_writer))
{
obj_writer.__endcheckid = id;
with (obj_writer)
{
if (reachedend == 1)
{
with (__endcheckid)
__writerended++;
}
}
if (__writerended == instance_number(obj_writer))
__writerkillable = 1;
}
else
{
__writerkilled = 1;
}
if (button1_p() && __writerkillable == 1)
{
with (obj_writer)
instance_destroy();
__writerkilled = 1;
}
return __writerkilled;
} ())
|
|
251
|
{
|
|
252
|
actconsus = -1;
|
|
253
|
actconral = -1;
|
|
254
|
actcon = 1;
|
|
255
|
}
|
|
256
|
}
|
|
257
|
}
|
|
258
|
|
|
259
|
enum e__VW
|
|
260
|
{
|
|
261
|
XView,
|
|
262
|
YView,
|
|
263
|
WView,
|
|
264
|
HView,
|
|
265
|
Angle,
|
|
266
|
HBorder,
|
|
267
|
VBorder,
|
|
268
|
HSpeed,
|
|
269
|
VSpeed,
|
|
270
|
Object,
|
|
271
|
Visible,
|
|
272
|
XPort,
|
|
273
|
YPort,
|
|
274
|
WPort,
|
|
275
|
HPort,
|
|
276
|
Camera,
|
|
277
|
SurfaceID
|
|
278
|
}
|