|
1
|
with (other)
|
|
2
|
scr_plat_vfxscr_plat_vfx
function scr_plat_vfx(arg0)
{
var _vfx = instance_create_depth(x, y, depth, obj_plat_vfx);
_vfx.sprite_index = arg0;
return _vfx;
}
function scr_vfx_above(arg0)
{
var _vfx = instance_create_depth(x, y, depth - 1, obj_plat_vfx);
_vfx.sprite_index = arg0;
return _vfx;
}
function scr_plat_vfx_ringhit(arg0, arg1, arg2, arg3)
{
scr_make_ripple(arg0, arg1, 80, arg3, 280, 2, 20, depth, 0, 0, 0, 1, 0.8);
scr_make_ripple(arg0, arg1, 120, arg3, 480, 2, 15, depth, 0, 0, 0, 1, 0.8);
scr_make_ripple(arg0, arg1, 160, arg3, 680, 2, 10, depth, 0, 0, 0, 1, 0.8);
repeat (7)
{
with (instance_create(arg0, arg1, obj_animation))
{
sprite_index = spr_plat_impact_splash;
direction = random_range(0, 360);
speed = random_range(3, 12);
friction = 0.8;
image_speed = 0.3;
image_angle = direction;
scr_darksize();
image_blend = arg3;
}
}
} (3352);
|
|
3
|
with (targeted_fruit)
|
|
4
|
{
|
|
5
|
var splashmarker = instance_create_depth(x + (0.5 * sprite_width), y + (0.5 * sprite_height), depth - 2, obj_animation);
|
|
6
|
with (splashmarker)
|
|
7
|
{
|
|
8
|
sprite_index = spr_darkfruit_tree_fruit_explosion;
|
|
9
|
image_speed = 1;
|
|
10
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} ();
|
|
11
|
}
|
|
12
|
var su = -4;
|
|
13
|
with (obj_plat_follower)
|
|
14
|
{
|
|
15
|
if (name == "susie")
|
|
16
|
{
|
|
17
|
var _cooldown_text = stringsetloc(EATING"EATING", "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_15_0" );
|
|
18
|
scr_plat_set_cooldown(_cooldown_text, 60);
|
|
19
|
force_animation(7060);
|
|
20
|
custom_behaviour(undefined, 60);
|
|
21
|
image_speed = 0;
|
|
22
|
su = self;
|
|
23
|
}
|
|
24
|
}
|
|
25
|
var dir = point_direction(x, y, su.x, su.y);
|
|
26
|
for (var i = 0; i < 20; i++)
|
|
27
|
{
|
|
28
|
var splash = instance_create_depth(x + (0.5 * sprite_width), y + (0.5 * sprite_height), depth - 1, obj_darkfruit_tree_plat_glob);
|
|
29
|
with (splash)
|
|
30
|
{
|
|
31
|
direction = random_range(dir - 100, dir + 100);
|
|
32
|
speed = random_range(5, 12);
|
|
33
|
image_angle = direction;
|
|
34
|
}
|
|
35
|
}
|
|
36
|
if (!d_plat_exists(7))
|
|
37
|
{
|
|
38
|
if (other.fruits_hit == 0)
|
|
39
|
{
|
|
40
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
if (global.darkzone == 1)
global.typer = 89;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
41
|
msgsetsubloc(0, "\\E7* Mmm^1, fresh from the juice.", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_35_0");
|
|
42
|
d_make_plat(0, 7);
|
|
43
|
}
|
|
44
|
else if (other.fruits_hit == 1)
|
|
45
|
{
|
|
46
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
if (global.darkzone == 1)
global.typer = 89;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
47
|
msgsetsubloc(0, "\\E7* Better the second time.", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_39_0");
|
|
48
|
d_make_plat(0, 7);
|
|
49
|
}
|
|
50
|
else
|
|
51
|
{
|
|
52
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
if (global.darkzone == 1)
global.typer = 89;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
... ("susie");
|
|
53
|
msgsetsubloc(0, "\\E7* Cool^1! I wrecked the tree!", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_43_0");
|
|
54
|
scr_anyface_nextscr_anyface_next
function scr_anyface_next(arg0, arg1)
{
global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
} ("ralsei", "U");
|
|
55
|
msgnextsubloc("\\EU* ...", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_45_0");
|
|
56
|
d_make_plat(0, 7);
|
|
57
|
}
|
|
58
|
}
|
|
59
|
instance_destroy();
|
|
60
|
}
|
|
61
|
fruits_hit++;
|
|
62
|
with (obj_plat_follower)
|
|
63
|
{
|
|
64
|
if (name == "ralsei")
|
|
65
|
{
|
|
66
|
if (is_platform_mode)
|
|
67
|
ralsei_fall_down(90);
|
|
68
|
}
|
|
69
|
}
|
|
70
|
if (fruits_hit == 3)
|
|
71
|
wreck_tree();
|
|
72
|
scr_shakeobjscr_shakeobj
function scr_shakeobj()
{
var _shakeobj = instance_create(x, y, obj_shakeobj);
_shakeobj.target = id;
if (argument_count >= 1)
{
if (i_ex(argument0))
_shakeobj.target = argument0;
}
if (argument_count >= 2)
{
if (argument1 != -1)
_shakeobj.shakeamt = argument1;
}
if (argument_count >= 3)
{
if (argument2 != -1)
_shakeobj.shakereduct = argument2;
}
with (_shakeobj)
event_user(0);
} ();
|