|
1
|
function scr_itemuse_floweryscr_itemuse_flowery
function scr_itemuse_flowery(arg0 = 0)
{
var ralpos = -1;
for (i = 0; i < 3; i += 1)
{
if (global.char[i] == 3)
ralpos = i;
}
with (obj_menuwriter)
{
if (who == ralpos)
instance_destroy();
}
var soundtype = 0;
if (arg0 == 16)
soundtype = 1;
if (soundtype == 0)
{
var soundbank = [scr_84_get_sound("snd_flowery_voiceclip_flowery2"), scr_84_get_sound("snd_flowery_voiceclip_heyguys")];
if (flvoice())
snd_play_random(undefined, undefined, undefined, soundbank);
}
if (soundtype == 1)
{
with (instance_create_depth(0, 0, 0, obj_object))
{
flinit = snd_init("flowery.ogg");
flsound = snd_play(flinit, 0.7);
timer = 0;
step_func = function()
{
timer++;
if (timer == 55)
snd_volume(flsound, 0, 12);
if (timer >= 67)
{
snd_stop(flsound);
snd_free(flinit);
show_debug_message_concat("freed");
instance_destroy();
}
};
}
}
var comment = [];
comment[0] = stringsetloc(Mmm-mmm-good!"Mmm-mmm-good!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_51_0" );
comment[1] = stringsetloc(Petalicious!"Petalicious!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_52_0" );
comment[2] = stringsetloc(Floweriffic!"Floweriffic!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_53_0" );
var thiscomment = comment[choose(0, 1, 2)];
if (irandom(100) == 72)
thiscomment = stringsetloc(Do you love your father, Kris?"Do you love your father, Kris?", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_56_0" );
show_debug_message_concat("global.flag[1405]=", global.flag[1405]);
global.flag[1405]++;
scr_itemcomment(ralpos, thiscomment);
if (global.flag[1405] == 3)
scr_itemcomment(suspos, stringsetloc(STOP GIVING HIM ITEMS!"STOP GIVING HIM ITEMS!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_63_0" ));
} (arg0 = 0)
|
|
2
|
{
|
|
3
|
var ralpos = -1;
|
|
4
|
for (i = 0; i < 3; i += 1)
|
|
5
|
{
|
|
6
|
if (global.char[i] == 3)
|
|
7
|
ralpos = i;
|
|
8
|
}
|
|
9
|
with (obj_menuwriter)
|
|
10
|
{
|
|
11
|
if (who == ralpos)
|
|
12
|
instance_destroy();
|
|
13
|
}
|
|
14
|
var soundtype = 0;
|
|
15
|
if (arg0 == 16)
|
|
16
|
soundtype = 1;
|
|
17
|
if (soundtype == 0)
|
|
18
|
{
|
|
19
|
var soundbank = [scr_84_get_soundscr_84_get_sound
function scr_84_get_sound(arg0)
{
return ds_map_find_value(global.chemg_sound_map, arg0);
} ("snd_flowery_voiceclip_flowery2"), scr_84_get_soundscr_84_get_sound
function scr_84_get_sound(arg0)
{
return ds_map_find_value(global.chemg_sound_map, arg0);
} ("snd_flowery_voiceclip_heyguys")];
|
|
20
|
if (flvoice())
|
|
21
|
snd_play_random(undefined, undefined, undefined, soundbank);
|
|
22
|
}
|
|
23
|
if (soundtype == 1)
|
|
24
|
{
|
|
25
|
with (instance_create_depth(0, 0, 0, obj_object))
|
|
26
|
{
|
|
27
|
flinit = snd_init("flowery.ogg");
|
|
28
|
flsound = snd_play(flinit, 0.7);
|
|
29
|
timer = 0;
|
|
30
|
|
|
31
|
step_func = function()
|
|
32
|
{
|
|
33
|
timer++;
|
|
34
|
if (timer == 55)
|
|
35
|
snd_volume(flsound, 0, 12);
|
|
36
|
if (timer >= 67)
|
|
37
|
{
|
|
38
|
snd_stop(flsound);
|
|
39
|
snd_free(flinit);
|
|
40
|
show_debug_message_concat("freed");
|
|
41
|
instance_destroy();
|
|
42
|
}
|
|
43
|
};
|
|
44
|
}
|
|
45
|
}
|
|
46
|
var comment = [];
|
|
47
|
comment[0] = stringsetloc(Mmm-mmm-good!"Mmm-mmm-good!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_51_0" );
|
|
48
|
comment[1] = stringsetloc(Petalicious!"Petalicious!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_52_0" );
|
|
49
|
comment[2] = stringsetloc(Floweriffic!"Floweriffic!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_53_0" );
|
|
50
|
var thiscomment = comment[choose(0, 1, 2)];
|
|
51
|
if (irandom(100) == 72)
|
|
52
|
thiscomment = stringsetloc(Do you love your father, Kris?"Do you love your father, Kris?", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_56_0" );
|
|
53
|
show_debug_message_concat("global.flag[1405]=", global.flag[1405]);
|
|
54
|
global.flag[1405]++;
|
|
55
|
scr_itemcommentscr_itemcomment
function scr_itemcomment(arg0, arg1)
{
talkx = scr_charbox_x(arg0);
itemcomment = instance_create(talkx + xx, yy + 460, obj_menuwriter);
itemcomment.msg = arg1;
itemcomment.who = arg0;
if (global.flag[32 hide_equip_comments] == 1)
{
with (itemcomment)
instance_destroy();
}
} (ralpos, thiscomment);
|
|
56
|
if (global.flag[1405] == 3)
|
|
57
|
scr_itemcommentscr_itemcomment
function scr_itemcomment(arg0, arg1)
{
talkx = scr_charbox_x(arg0);
itemcomment = instance_create(talkx + xx, yy + 460, obj_menuwriter);
itemcomment.msg = arg1;
itemcomment.who = arg0;
if (global.flag[32 hide_equip_comments] == 1)
{
with (itemcomment)
instance_destroy();
}
} (suspos, stringsetloc(STOP GIVING HIM ITEMS!"STOP GIVING HIM ITEMS!", "scr_itemuse_flowery_slash_scr_itemuse_flowery_gml_63_0" ));
|
|
58
|
}
|