|
1
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
2
|
{
|
|
3
|
if (keyboard_check_pressed(vk_backspace))
|
|
4
|
global.flag[1044 points] = 150;
|
|
5
|
}
|
|
6
|
if (global.monster[myself] == 1)
|
|
7
|
{
|
|
8
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && talked == 0)
|
|
9
|
{
|
|
10
|
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;
}
} ();
|
|
11
|
myattackpriority = 1;
|
|
12
|
scr_attackpriorityscr_attackpriority
function scr_attackpriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.attackpriority < arg0)
{
obj_battlecontroller.attackpriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (myattackpriority - 1);
|
|
13
|
if (!instance_exists(obj_darkener))
|
|
14
|
instance_create(0, 0, obj_darkener);
|
|
15
|
global.typer = 50;
|
|
16
|
if (cheat && noballoon == -1)
|
|
17
|
{
|
|
18
|
with (obj_pippins_enemy)
|
|
19
|
{
|
|
20
|
if (myself == 0)
|
|
21
|
{
|
|
22
|
msgsetloc(0, (You do know that makes my attack stronger...)"(You do know&that makes my&attack stronger...)", "obj_pippins_enemy_slash_Step_0_gml_26_0" );
|
|
23
|
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_z;
return myblcon;
}
} (x - 10, global.monstery[myself] - 10, 10);
|
|
24
|
noballoon = true;
|
|
25
|
}
|
|
26
|
}
|
|
27
|
with (obj_pippins_enemy)
|
|
28
|
{
|
|
29
|
if (myself == 1)
|
|
30
|
{
|
|
31
|
msgsetloc(0, (This girl... she boggles the mind.)"(This girl...&she boggles&the mind.)", "obj_pippins_enemy_slash_Step_0_gml_28_0" );
|
|
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_z;
return myblcon;
}
} (x - 10, global.monstery[myself] - 10, 10);
|
|
33
|
noballoon = true;
|
|
34
|
}
|
|
35
|
}
|
|
36
|
with (obj_pippins_enemy)
|
|
37
|
{
|
|
38
|
if (myself == 2)
|
|
39
|
{
|
|
40
|
msgsetloc(0, (What have you done, you yatzy!?)"(What have you&done, you&yatzy!?)", "obj_pippins_enemy_slash_Step_0_gml_29_0" );
|
|
41
|
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_z;
return myblcon;
}
} (x - 10, global.monstery[myself] - 10, 10);
|
|
42
|
noballoon = true;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
}
|
|
46
|
else if (noballoon == 0)
|
|
47
|
{
|
|
48
|
rr = choose(0, 1, 2);
|
|
49
|
if (irandom(100) < 10)
|
|
50
|
rr = 4;
|
|
51
|
if (instance_number(obj_pippins_enemy) == 3 && myself == 0)
|
|
52
|
rr = choose(0, 1, 2, 3, 3);
|
|
53
|
if (bet || fixedbet)
|
|
54
|
{
|
|
55
|
if (choose(0, 1) == 1)
|
|
56
|
msgsetloc(0, YEAH! Touch these 4's and taste the THRILL!"YEAH! Touch&these 4's and&taste the THRILL!", "obj_pippins_enemy_slash_Step_0_gml_38_0" );
|
|
57
|
else
|
|
58
|
msgsetloc(0, Put it all on Green 4! Alright!!"Put it all on&Green 4! Alright!!", "obj_pippins_enemy_slash_Step_0_gml_39_0" );
|
|
59
|
rr = -1;
|
|
60
|
}
|
|
61
|
if (rr == 0)
|
|
62
|
msgsetloc(0, Will I win? Or will I win... BIG?"Will I win?&Or will I win... BIG?", "obj_pippins_enemy_slash_Step_0_gml_42_0" );
|
|
63
|
if (rr == 1)
|
|
64
|
msgsetloc(0, Raise the stakes and ROLL ROLL ROLL!"Raise the stakes and&ROLL ROLL ROLL!", "obj_pippins_enemy_slash_Step_0_gml_43_0" );
|
|
65
|
if (rr == 2)
|
|
66
|
msgsetloc(0, Rock me, spill me, shock and thrill me!"Rock me, spill me,&shock and thrill me!", "obj_pippins_enemy_slash_Step_0_gml_44_0" );
|
|
67
|
if (rr == 3)
|
|
68
|
{
|
|
69
|
msgsetloc(0, It's a lucky's world! Do or die!"It's a lucky's world!&Do or die!", "obj_pippins_enemy_slash_Step_0_gml_47_0" );
|
|
70
|
with (obj_pippins_enemy)
|
|
71
|
{
|
|
72
|
if (myself == 1)
|
|
73
|
{
|
|
74
|
msgsetloc(0, Does or dice!"Does or dice!", "obj_pippins_enemy_slash_Step_0_gml_48_0" );
|
|
75
|
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_z;
return myblcon;
}
} (x - 10, global.monstery[myself] - 10, 10);
|
|
76
|
noballoon = true;
|
|
77
|
}
|
|
78
|
}
|
|
79
|
with (obj_pippins_enemy)
|
|
80
|
{
|
|
81
|
if (myself == 2)
|
|
82
|
{
|
|
83
|
msgsetloc(0, Don't or dien't!"Don't or dien't!", "obj_pippins_enemy_slash_Step_0_gml_49_0" );
|
|
84
|
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_z;
return myblcon;
}
} (x - 10, global.monstery[myself] - 10, 10);
|
|
85
|
noballoon = true;
|
|
86
|
}
|
|
87
|
}
|
|
88
|
}
|
|
89
|
if (rr == 4)
|
|
90
|
msgsetloc(0, Life is a numbers game... You ever heard that?"Life is a numbers game...&You ever heard that?", "obj_pippins_enemy_slash_Step_0_gml_51_0" );
|
|
91
|
if (sharpshootballoon)
|
|
92
|
{
|
|
93
|
msgsetloc(0, Ya, what a rush!"Ya, what a rush!", "obj_pippins_enemy_slash_Step_0_gml_58_0" );
|
|
94
|
sharpshootballoon = false;
|
|
95
|
}
|
|
96
|
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_z;
return myblcon;
}
} (x - 10, global.monstery[myself] - 10, 10);
|
|
97
|
}
|
|
98
|
talked = 1;
|
|
99
|
talktimer = 0;
|
|
100
|
rtimer = 0;
|
|
101
|
}
|
|
102
|
if (talked == 1 && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk"))
|
|
103
|
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();
with (obj_guei_balloon)
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();
with (obj_guei_balloon)
instance_destroy();
global.mnfight = 1.5;
}
}
} (15);
|
|
104
|
if (global.mnfight == 1.5)
|
|
105
|
{
|
|
106
|
if (scr_attackpriorityscr_attackpriority
function scr_attackpriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.attackpriority < arg0)
{
obj_battlecontroller.attackpriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (myattackpriority))
|
|
107
|
{
|
|
108
|
if (!instance_exists(obj_growtangle))
|
|
109
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
110
|
if (!instance_exists(obj_moveheart))
|
|
111
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
if (global.chapter == 4 && (i_ex(obj_hammer_of_justice_enemy) || i_ex(obj_sound_of_justice_enemy)))
return instance_create(obj_herosusie.x - 250, obj_herosusie.y + 40, obj_moveheart);
else
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
112
|
global.mnfight = 2;
|
|
113
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (90);
|
|
114
|
}
|
|
115
|
}
|
|
116
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets") && attacked == 0)
|
|
117
|
{
|
|
118
|
rtimer += 1;
|
|
119
|
if (rtimer == 12)
|
|
120
|
{
|
|
121
|
var diceattackexists = false;
|
|
122
|
for (var i = 0; i < instance_number(obj_dbulletcontroller); i++)
|
|
123
|
{
|
|
124
|
dbullet_controller[i] = instance_find(obj_dbulletcontroller, i);
|
|
125
|
if (dbullet_controller[i].type == 11.5)
|
|
126
|
diceattackexists = true;
|
|
127
|
}
|
|
128
|
if (diceattackexists == false)
|
|
129
|
{
|
|
130
|
global.monsterattackname[myself] = "Dice Attack";
|
|
131
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.creatorid = id;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
132
|
dc.type = 112.5;
|
|
133
|
}
|
|
134
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (230);
|
|
135
|
attackanim = true;
|
|
136
|
turns += 1;
|
|
137
|
noballoon = false;
|
|
138
|
global.typer = 6;
|
|
139
|
global.fc = 0;
|
|
140
|
rr = choose(0, 1, 2, 3, 4);
|
|
141
|
if (scr_monsterpopscr_monsterpop
function scr_monsterpop()
{
return global.monster[0] + global.monster[1] + global.monster[2];
} () > 1)
|
|
142
|
rr = choose(0, 1, 2, 3, 4, 5, 5);
|
|
143
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (random(2)))
|
|
144
|
{
|
|
145
|
var substring = string(myself);
|
|
146
|
if (rr == 0)
|
|
147
|
global.battlemsg[0] = stringsetloc(* Pippins attempts to engage you in a life or death rock paper scissors match."* Pippins attempts to engage you in a life or death rock paper scissors match.", "obj_pippins_enemy_slash_Step_0_gml_118_0" );
|
|
148
|
if (rr == 1)
|
|
149
|
global.battlemsg[0] = stringsetloc(* Pippins bounces like popcorn."* Pippins bounces like popcorn.", "obj_pippins_enemy_slash_Step_0_gml_119_0" );
|
|
150
|
if (rr == 2)
|
|
151
|
global.battlemsg[0] = stringsetloc(* Pippins' existence ambiently makes the scene become Rated T."* Pippins' existence ambiently makes the scene become Rated T.", "obj_pippins_enemy_slash_Step_0_gml_120_0" );
|
|
152
|
if (rr == 3)
|
|
153
|
global.battlemsg[0] = stringsetloc(* Pippins scratches off tickets made of toilet paper."* Pippins scratches off tickets made of toilet paper.", "obj_pippins_enemy_slash_Step_0_gml_121_0" );
|
|
154
|
if (rr == 4)
|
|
155
|
global.battlemsg[0] = stringsetloc(* Pippins regrets mortgaging its 2 green houses."* Pippins regrets mortgaging its 2 green houses.", "obj_pippins_enemy_slash_Step_0_gml_122_0" );
|
|
156
|
if (rr == 5)
|
|
157
|
global.battlemsg[0] = stringsetloc(* Pippins is betting the other enemies they'll lose."* Pippins is betting the other enemies they'll lose.", "obj_pippins_enemy_slash_Step_0_gml_123_0" );
|
|
158
|
}
|
|
159
|
if (irandom(100) < 4)
|
|
160
|
global.battlemsg[0] = stringsetloc(* Smells like bad luck."* Smells like bad luck.", "obj_pippins_enemy_slash_Step_0_gml_125_0" );
|
|
161
|
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
|
|
162
|
{
|
|
163
|
if (scr_messagepriorityscr_messagepriority
function scr_messagepriority(arg0)
{
if (i_ex(obj_battlecontroller))
{
if (obj_battlecontroller.messagepriority < arg0)
{
obj_battlecontroller.messagepriority = arg0;
return true;
}
else
{
return false;
}
}
else
{
return false;
}
} (100 + random(2)))
|
|
164
|
{
|
|
165
|
var substring = string(myself);
|
|
166
|
global.battlemsg[0] = stringsetloc(* Pippins seems down on its luck."* Pippins seems down on its luck.", "obj_pippins_enemy_slash_Step_0_gml_130_0" );
|
|
167
|
}
|
|
168
|
}
|
|
169
|
if (board2event == true)
|
|
170
|
{
|
|
171
|
if (turns == 1)
|
|
172
|
global.battlemsg[0] = stringsetloc(Face 2What's the problem? Kris likes playing as me better anyway."\\E2What's the problem? Kris likes playing as me better anyway.", "obj_pippins_enemy_slash_Step_0_gml_134_0" );
|
|
173
|
if (turns == 2)
|
|
174
|
global.battlemsg[0] = stringsetloc(Face DK... Kris? Likes... playing as Susie? ... but won't it be confusing?"\\EDK... Kris? Likes... playing as Susie? ... but won't it be confusing?", "obj_pippins_enemy_slash_Step_0_gml_135_0" );
|
|
175
|
if (turns == 3)
|
|
176
|
global.battlemsg[0] = stringsetloc(Face 9Confusing Ralsei's the best part of the game so far, right, Kris?"\\E9Confusing Ralsei's the best part of the game so far, right, Kris?", "obj_pippins_enemy_slash_Step_0_gml_136_0" );
|
|
177
|
if (turns == 4)
|
|
178
|
global.battlemsg[0] = stringsetloc(Face O* Well, if it's fun! ... But, I still think... Kris should be Kris."\\EO* Well, if it's fun! ... But, I still think... Kris should be Kris.", "obj_pippins_enemy_slash_Step_0_gml_137_0" );
|
|
179
|
}
|
|
180
|
attacked = 1;
|
|
181
|
}
|
|
182
|
}
|
|
183
|
if (global.mnfight == 2 && global.turntimer <= 1)
|
|
184
|
{
|
|
185
|
bribe = false;
|
|
186
|
bet = false;
|
|
187
|
fixedbet = false;
|
|
188
|
cheat = false;
|
|
189
|
}
|
|
190
|
}
|
|
191
|
if (global.myfight == 3)
|
|
192
|
{
|
|
193
|
xx = __view_get(e__VW.XView, 0);
|
|
194
|
yy = __view_get(e__VW.YView, 0);
|
|
195
|
if (acting == 1 && actcon == 0)
|
|
196
|
{
|
|
197
|
actcon = 1;
|
|
198
|
global.writerimg[0] = spr_bullet_dice_6;
|
|
199
|
global.writerimg[1] = spr_bullet_dice_3;
|
|
200
|
msgsetloc(0, * PIPPINS - This crooked gambler from Card Castle always bets it all!Wait for inputClose Message"* PIPPINS - This crooked gambler from Card Castle always bets it all!/%", "obj_pippins_enemy_slash_Step_0_gml_170_0" );
|
|
201
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
202
|
}
|
|
203
|
if (acting == 2 && actcon == 0)
|
|
204
|
{
|
|
205
|
if (simultotal == 1)
|
|
206
|
{
|
|
207
|
msgsetloc(0, * You bet you could touch the Dice when it's a GREEN 4!Wait for inputClose Message"* You bet you could touch the Dice when it's a GREEN 4!/%", "obj_pippins_enemy_slash_Step_0_gml_185_0" );
|
|
208
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
209
|
actcon = 1;
|
|
210
|
}
|
|
211
|
else
|
|
212
|
{
|
|
213
|
msgsetloc(0, * Bet: Touch the GREEN 4's!"* Bet: Touch the GREEN 4's!", "obj_pippins_enemy_slash_Step_0_gml_191_0" );
|
|
214
|
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);
} ("kris");
|
|
215
|
if (simulorderkri == 0)
|
|
216
|
actcon = 20;
|
|
217
|
else
|
|
218
|
actcon = -1;
|
|
219
|
}
|
|
220
|
bet = true;
|
|
221
|
}
|
|
222
|
if (acting == 3 && actcon == 0)
|
|
223
|
{
|
|
224
|
with (obj_monsterparent)
|
|
225
|
scr_monster_make_tiredscr_monster_make_tired
function scr_monster_make_tired(arg0)
{
if (global.monsterstatus[arg0] == 0)
{
__tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter);
__tiredwriter.type = 13;
global.hittarget[arg0] += 1;
snd_play_x(snd_spellcast, 0.5, 0.9);
}
global.monstercomment[arg0] = stringsetloc((Tired)"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0" );
global.monsterstatus[arg0] = 1;
} (myself);
|
|
226
|
cheatcount++;
|
|
227
|
if (cheatcount == 1)
|
|
228
|
{
|
|
229
|
msgsetloc(0, * Susie drew 4 dots on all the dice! The enemies got TIRED!Wait for inputClose Message"* Susie drew 4 dots on all the dice! The enemies got TIRED!/%", "obj_pippins_enemy_slash_Step_0_gml_217_0" );
|
|
230
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
231
|
acting = 3.1;
|
|
232
|
cheat = true;
|
|
233
|
}
|
|
234
|
else
|
|
235
|
{
|
|
236
|
var ran = choose(0, 1);
|
|
237
|
if (krismarker == true && ralseimarker == false)
|
|
238
|
ran = 0;
|
|
239
|
if (krismarker == false && ralseimarker == true)
|
|
240
|
ran = 1;
|
|
241
|
if (ran == 0)
|
|
242
|
{
|
|
243
|
msgsetloc(0, * Susie got bored of cheating and drew a mustache on Ralsei!Wait for inputClose Message"* Susie got bored of cheating and drew a mustache on Ralsei!/%", "obj_pippins_enemy_slash_Step_0_gml_229_0" );
|
|
244
|
if (instance_number(obj_pippins_marker) < 3)
|
|
245
|
{
|
|
246
|
inst = instance_create(obj_heroralsei.x, obj_heroralsei.y, obj_pippins_marker);
|
|
247
|
inst.sprite_index = spr_ralsei_mustache2;
|
|
248
|
inst.image_xscale = 2;
|
|
249
|
inst.image_yscale = 2;
|
|
250
|
}
|
|
251
|
ralseimarker = false;
|
|
252
|
}
|
|
253
|
else
|
|
254
|
{
|
|
255
|
msgsetloc(0, * Susie got bored of cheating and drew dead eyes on Kris!Wait for inputClose Message"* Susie got bored of cheating and drew dead eyes on Kris!/%", "obj_pippins_enemy_slash_Step_0_gml_241_0" );
|
|
256
|
if (instance_number(obj_pippins_marker) < 3)
|
|
257
|
{
|
|
258
|
inst = instance_create(obj_herokris.x, obj_herokris.y, obj_pippins_marker);
|
|
259
|
inst.sprite_index = spr_krisb_eye_x;
|
|
260
|
inst.image_xscale = 2;
|
|
261
|
inst.image_yscale = 2;
|
|
262
|
}
|
|
263
|
krismarker = true;
|
|
264
|
}
|
|
265
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
266
|
actcon = 1;
|
|
267
|
}
|
|
268
|
with (obj_pippins_enemy)
|
|
269
|
global.flag[510 pippins_s_act]++;
|
|
270
|
}
|
|
271
|
if (acting >= 3.1 && acting < 3.6)
|
|
272
|
talktimer++;
|
|
273
|
if (acting == 3.1 && actcon == 0 && !i_ex(obj_writer))
|
|
274
|
{
|
|
275
|
with (obj_writer)
|
|
276
|
instance_destroy();
|
|
277
|
talktimer = 0;
|
|
278
|
with (obj_pippins_enemy)
|
|
279
|
idlesprite = spr_npc_pippins_sad;
|
|
280
|
global.typer = 75;
|
|
281
|
msgsetloc(0, Who's the highroller now, idiot!?Wait for inputClose Message"Who's the highroller&now, idiot!?/%", "obj_pippins_enemy_slash_Step_0_gml_271_0" );
|
|
282
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
283
|
acting = 3.2;
|
|
284
|
}
|
|
285
|
if (acting == 3.2 && actcon == 0 && talktimer > 15 && (button3_p() || button1_p()))
|
|
286
|
{
|
|
287
|
with (obj_writer)
|
|
288
|
instance_destroy();
|
|
289
|
talktimer = 0;
|
|
290
|
with (obj_pippins_enemy)
|
|
291
|
noballoon = -1;
|
|
292
|
actcon = 1;
|
|
293
|
}
|
|
294
|
if (acting == 4 && actcon == 0)
|
|
295
|
{
|
|
296
|
if (global.flag[1044 points] >= 150)
|
|
297
|
{
|
|
298
|
global.flag[1044 points] -= 150;
|
|
299
|
bribe = true;
|
|
300
|
msgsetloc(0, * You and Ralsei used 150 POINTs to BRIBE the enemy!Wait for inputClose Message"* You and Ralsei used 150 POINTs to BRIBE the enemy!/%", "obj_pippins_enemy_slash_Step_0_gml_296_0" );
|
|
301
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
302
|
if (global.flag[509 pippins_r_act] == 0)
|
|
303
|
acting = 4.1;
|
|
304
|
else
|
|
305
|
acting = 4.51;
|
|
306
|
with (obj_pippins_enemy)
|
|
307
|
global.flag[509 pippins_r_act]++;
|
|
308
|
}
|
|
309
|
}
|
|
310
|
if (acting == 4.1 && actcon == 0 && !i_ex(obj_writer))
|
|
311
|
{
|
|
312
|
global.typer = 74;
|
|
313
|
msgsetloc(0, B-Bribe? Umm, no, I... This is just a peace offering!"B-Bribe? Umm, no, I...&This is just a peace&offering!", "obj_pippins_enemy_slash_Step_0_gml_317_0" );
|
|
314
|
var heroballoon = 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_z;
return myblcon;
}
} (obj_heroralsei.x + 120, obj_heroralsei.y + 60, 10);
|
|
315
|
heroballoon.side = -1;
|
|
316
|
obj_heroralsei.x += 40;
|
|
317
|
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_shocked_right, 0, 1);
|
|
318
|
acting = 4.11;
|
|
319
|
}
|
|
320
|
if (acting >= 4.11 && acting < 4.6)
|
|
321
|
talktimer++;
|
|
322
|
if (acting == 4.11 && actcon == 0 && talktimer > 15 && (button3_p() || button1_p()))
|
|
323
|
{
|
|
324
|
with (obj_writer)
|
|
325
|
instance_destroy();
|
|
326
|
talktimer = 0;
|
|
327
|
global.typer = 50;
|
|
328
|
with (obj_pippins_enemy)
|
|
329
|
{
|
|
330
|
msgsetloc(0, Bribe, wow, is this legal?"Bribe, wow, is this legal?", "obj_pippins_enemy_slash_Step_0_gml_337_0" );
|
|
331
|
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_z;
return myblcon;
}
} (x, global.monstery[myself] - 10, 10);
|
|
332
|
}
|
|
333
|
acting = 4.12;
|
|
334
|
}
|
|
335
|
if (acting == 4.12 && actcon == 0 && talktimer > 15 && (button3_p() || button1_p()))
|
|
336
|
{
|
|
337
|
with (obj_writer)
|
|
338
|
instance_destroy();
|
|
339
|
talktimer = 0;
|
|
340
|
global.typer = 75;
|
|
341
|
msgsetloc(0, That's dirty, dude."That's dirty, dude.", "obj_pippins_enemy_slash_Step_0_gml_349_0" );
|
|
342
|
scr_heroblconscr_heroblcon
function scr_heroblcon(arg0)
{
var heroobj = -69420;
switch (arg0)
{
case 1:
case "kris":
case "kr":
heroobj = obj_herokris;
break;
case 2:
case "susie":
case "su":
heroobj = obj_herosusie;
break;
case 3:
case "ralsei":
case "ra":
heroobj = obj_heroralsei;
break;
case 4:
case "noelle":
case "no":
heroobj = obj_heronoelle;
break;
default:
heroobj = -69420;
break;
}
if (i_ex(heroobj))
{
var heroballoon = scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1;
return heroballoon;
}
else
{
return false;
}
} ("susie");
|
|
343
|
acting = 4.13;
|
|
344
|
}
|
|
345
|
if (acting == 4.13 && actcon == 0 && talktimer > 15 && (button3_p() || button1_p()))
|
|
346
|
{
|
|
347
|
with (obj_writer)
|
|
348
|
instance_destroy();
|
|
349
|
talktimer = 0;
|
|
350
|
global.typer = 74;
|
|
351
|
snd_play(snd_bump);
|
|
352
|
msgsetloc(0, W-wait, maybe I shouldn't..."W-wait, maybe&I shouldn't...", "obj_pippins_enemy_slash_Step_0_gml_363_0" );
|
|
353
|
var heroballoon = 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_z;
return myblcon;
}
} (obj_heroralsei.x + 80, obj_heroralsei.y + 55, 10);
|
|
354
|
with (obj_heroralsei)
|
|
355
|
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);
} ();
|
|
356
|
heroballoon.side = -1;
|
|
357
|
acting = 4.14;
|
|
358
|
}
|
|
359
|
if (acting == 4.14 && actcon == 0 && talktimer > 15 && (button3_p() || button1_p()))
|
|
360
|
{
|
|
361
|
with (obj_writer)
|
|
362
|
instance_destroy();
|
|
363
|
talktimer = 0;
|
|
364
|
if (scr_monsterpopscr_monsterpop
function scr_monsterpop()
{
return global.monster[0] + global.monster[1] + global.monster[2];
} () == 1)
|
|
365
|
{
|
|
366
|
scr_sparescr_spare
function scr_spare(arg0)
{
with (global.monsterinstance[arg0])
event_user(10);
} (myself);
|
|
367
|
scr_wincombatscr_wincombat
function scr_wincombat()
{
if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1)
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
else
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0;
for (__j = 0; __j < 3; __j++)
{
if (global.monstertype[__j] != 0(None))
{
_newmonster = scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800;
global.monsterinstance[_newmonster].y = global.monstermakey[__j];
with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
}
}
global.myfight = 5;
myfightreturntimer = 15;
global.mnfight = -1;
}
} ();
|
|
368
|
}
|
|
369
|
else
|
|
370
|
{
|
|
371
|
with (obj_pippins_enemy)
|
|
372
|
{
|
|
373
|
for (var __i = 1; __i < 3; __i++)
|
|
374
|
{
|
|
375
|
if (global.actingtarget[__i] == myself && global.char[__i] > 0)
|
|
376
|
{
|
|
377
|
global.acting[__i] = 0;
|
|
378
|
global.actingsimul[__i] = 0;
|
|
379
|
global.actingsingle[__i] = 0;
|
|
380
|
global.faceaction[__i] = 0;
|
|
381
|
}
|
|
382
|
}
|
|
383
|
}
|
|
384
|
image_alpha = 0;
|
|
385
|
scr_spareanimscr_spareanim
function scr_spareanim()
{
spareanim = instance_create(x, y, obj_spareanim);
spareanim.sprite_index = sprite_index;
spareanim.sprite_index = sparedsprite;
spareanim.image_index = 0;
spareanim.image_xscale = image_xscale;
spareanim.image_yscale = image_yscale;
} ();
|
|
386
|
scr_recruitscr_recruit
function scr_recruit()
{
if (recruitable == 1 && global.flag[61 disable_recruiting] == 0)
{
if (global.flag[global.monstertype[myself] + 600] >= 0(None) && global.flag[global.monstertype[myself] + 600] < 1 && recruitcount > 0)
{
if (recruitcount == -1)
{
scr_recruit_info(global.monstertype[myself]);
recruitcount = _recruitcount;
}
global.flag[global.monstertype[myself] + 600] += 1Enemy (placeholder/G-BODY) / recruitcount;
if (global.flag[global.monstertype[myself] + 600] > 1)
global.flag[global.monstertype[myself] + 600] = 1Enemy (placeholder/G-BODY);
snd_play(snd_sparkle_gem);
_recruitanim = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim);
_recruitanim.firstnumber = round(global.flag[global.monstertype[myself] + 600] / (1 / recruitcount));
_recruitanim.secondnumber = recruitcount;
}
}
} ();
|
|
387
|
scr_monsterdefeatscr_monsterdefeat
function scr_monsterdefeat()
{
if (global.monster[myself] == 1)
{
debug_message("=====Encounter Results=====");
global.monstergold[3] += global.monstergold[myself];
global.monsterexp[3] += global.monsterexp[myself];
global.monster[myself] = 0;
if (global.flag[51 + myself] == 0)
{
global.flag[51 + myself] = 2;
if (global.monsterhp[myself] <= 0)
global.flag[51 + myself] = 1;
}
if (global.flag[51 + myself] == 1)
{
global.flag[40 violences] += 1;
if (fatal == 1)
global.flag[44 kills]++;
}
if (global.flag[51 + myself] == 2)
global.flag[41 spares] += 1;
if (global.flag[51 + myself] == 3)
global.flag[42 pacifies] += 1;
if (global.flag[51 + myself] == 5)
global.flag[43 autosusie_violences] += 1;
if (global.flag[51 + myself] == 6)
{
global.flag[45 freezes] += 1;
global.monstergold[3] += 24;
}
if (scr_monsterpop() == 0)
{
_amt_add = 0;
_frozened = 0;
_violenced = 0;
_spared = 0;
_pacified = 0;
for (d_i = 0; d_i < 3; d_i += 1)
{
if (global.flag[51 + d_i] != 0)
_amt_add += 1;
if (global.flag[51 + d_i] == 1)
_violenced += 1;
if (global.flag[51 + d_i] == 2)
_spared += 1;
if (global.flag[51 + d_i] == 3)
_pacified += 1;
if (global.flag[51 + d_i] == 6)
_frozened += 1;
}
if (_frozened > 0)
global.flag[50 last_encounter_end] = 6;
if (_pacified > 0)
global.flag[50 last_encounter_end] = 3;
if (_spared > 0)
global.flag[50 last_encounter_end] = 2;
if (_violenced > 0)
global.flag[50 last_encounter_end] = 1;
if (global.flag[50 last_encounter_end] == 6)
global.flag[926 iceshocked_encounters]++;
if (global.flag[54 encounter_pointer] != 0)
{
global.flag[global.flag[54 encounter_pointer]] = global.flag[50 last_encounter_end];
debug_message("=====Encounter Results=====");
debug_message("encounter flag: global.flag[" + string(global.flag[54 encounter_pointer]) + "]=" + string(global.flag[50 last_encounter_end]));
debug_message("=======");
global.flag[54 encounter_pointer] = 0;
}
}
event_user(11);
debug_message("=======");
}
} ();
|
|
388
|
with (obj_heroralsei)
|
|
389
|
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);
} ();
|
|
390
|
snd_play(snd_bump);
|
|
391
|
msgsetloc(0, WAIT!!!"WAIT!!!", "obj_pippins_enemy_slash_Step_0_gml_390_0" );
|
|
392
|
var heroballoon = 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_z;
return myblcon;
}
} (obj_heroralsei.x + 80, obj_heroralsei.y + 55, 10);
|
|
393
|
heroballoon.side = -1;
|
|
394
|
acting = 4.15;
|
|
395
|
}
|
|
396
|
}
|
|
397
|
if (acting == 4.15 && actcon == 0 && talktimer > 15 && (button3_p() || button1_p()))
|
|
398
|
{
|
|
399
|
obj_heroralsei.x -= 40;
|
|
400
|
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;
global.faceaction[myself] = 0;
}
}
} ("ralsei");
|
|
401
|
with (obj_writer)
|
|
402
|
instance_destroy();
|
|
403
|
talktimer = 0;
|
|
404
|
instance_destroy();
|
|
405
|
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 (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1)
{
global.charturn = 3;
global.myfight = 3;
global.currentactingchar = 0;
if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit;
}
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();
}
} ();
|
|
406
|
}
|
|
407
|
if (acting == 4.51 && actcon == 0 && !i_ex(obj_writer))
|
|
408
|
{
|
|
409
|
obj_heroralsei.x += 40;
|
|
410
|
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_shocked_right, 0, 1);
|
|
411
|
with (obj_heroralsei)
|
|
412
|
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);
} ();
|
|
413
|
snd_play(snd_bump);
|
|
414
|
global.typer = 74;
|
|
415
|
msgsetloc(0, It's, it's not a..."It's, it's not a...", "obj_pippins_enemy_slash_Step_0_gml_416_0" );
|
|
416
|
var heroballoon = 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_z;
return myblcon;
}
} (obj_heroralsei.x + 80, obj_heroralsei.y + 55, 10);
|
|
417
|
heroballoon.side = -1;
|
|
418
|
acting = 4.52;
|
|
419
|
}
|
|
420
|
if (acting == 4.52 && actcon == 0 && talktimer > 15 && (button3_p() || button1_p()))
|
|
421
|
{
|
|
422
|
obj_heroralsei.x -= 40;
|
|
423
|
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;
global.faceaction[myself] = 0;
}
}
} ("ralsei");
|
|
424
|
with (obj_writer)
|
|
425
|
instance_destroy();
|
|
426
|
talktimer = 0;
|
|
427
|
with (obj_pippins_enemy)
|
|
428
|
{
|
|
429
|
for (var __i = 1; __i < 3; __i++)
|
|
430
|
{
|
|
431
|
if (global.actingtarget[__i] == myself && global.char[__i] > 0)
|
|
432
|
{
|
|
433
|
global.acting[__i] = 0;
|
|
434
|
global.actingsimul[__i] = 0;
|
|
435
|
global.actingsingle[__i] = 0;
|
|
436
|
global.faceaction[__i] = 0;
|
|
437
|
}
|
|
438
|
}
|
|
439
|
}
|
|
440
|
scr_sparescr_spare
function scr_spare(arg0)
{
with (global.monsterinstance[arg0])
event_user(10);
} (myself);
|
|
441
|
actcon = 1;
|
|
442
|
}
|
|
443
|
if (actingsus == 1 && actconsus == 1)
|
|
444
|
{
|
|
445
|
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, 50);
|
|
446
|
snd_play(snd_wing);
|
|
447
|
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);
} ();
|
|
448
|
if (simultotal == 1)
|
|
449
|
{
|
|
450
|
msgsetloc(0, * Susie shook Pippins around! They kind of liked it!Wait for inputClose Message"* Susie shook Pippins around! They kind of liked it!/%", "obj_pippins_enemy_slash_Step_0_gml_446_0" );
|
|
451
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
452
|
actconsus = 20;
|
|
453
|
}
|
|
454
|
else
|
|
455
|
{
|
|
456
|
msgsetloc(0, * Susie shook Pippins!!"* Susie shook Pippins!!", "obj_pippins_enemy_slash_Step_0_gml_452_0" );
|
|
457
|
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");
|
|
458
|
if (simulordersus == 0)
|
|
459
|
actconsus = 20;
|
|
460
|
else
|
|
461
|
actconsus = 0;
|
|
462
|
}
|
|
463
|
}
|
|
464
|
if (actingral == 1 && actconral == 1)
|
|
465
|
{
|
|
466
|
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, 50);
|
|
467
|
if (simultotal == 1)
|
|
468
|
{
|
|
469
|
msgsetloc(0, * Ralsei swore not to cheat!Wait for input"* Ralsei swore not to cheat!/", "obj_pippins_enemy_slash_Step_0_gml_464_0" );
|
|
470
|
msgnextloc(* Susie swore to cheat! (That didn't help...)Wait for inputClose Message"* Susie swore to cheat! (That didn't help...)/%", "obj_pippins_enemy_slash_Step_0_gml_465_0" );
|
|
471
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
472
|
actconral = 20;
|
|
473
|
}
|
|
474
|
else
|
|
475
|
{
|
|
476
|
msgsetloc(0, * Ralsei swore not to cheat!"* Ralsei swore not to cheat!", "obj_pippins_enemy_slash_Step_0_gml_471_0" );
|
|
477
|
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");
|
|
478
|
if (simulorderral == 0)
|
|
479
|
actconral = 20;
|
|
480
|
else
|
|
481
|
actconral = 0;
|
|
482
|
}
|
|
483
|
}
|
|
484
|
if (actcon == 20 || actconsus == 20 || actconral == 20)
|
|
485
|
{
|
|
486
|
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;
} ())
|
|
487
|
{
|
|
488
|
actconsus = -1;
|
|
489
|
actconral = -1;
|
|
490
|
actcon = 1;
|
|
491
|
}
|
|
492
|
}
|
|
493
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
494
|
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 (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1)
{
global.charturn = 3;
global.myfight = 3;
global.currentactingchar = 0;
if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit;
}
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();
}
} ();
|
|
495
|
}
|
|
496
|
if (state == 3)
|
|
497
|
{
|
|
498
|
scr_enemyhurt_tired_after_damagescr_enemyhurt_tired_after_damage
function scr_enemyhurt_tired_after_damage(arg0)
{
if (global.monsterhp[myself] <= (global.monstermaxhp[myself] * arg0))
scr_monster_make_tired(myself);
} (0.5);
|
|
499
|
scr_enemy_hurtscr_enemy_hurt
function scr_enemy_hurt()
{
hurttimer -= 1;
if (hurttimer < 0)
{
state = 0;
}
else
{
if (global.monster[myself] == 0)
scr_defeatrun();
hurtshake += 1;
if (hurtshake > 1)
{
if (shakex > 0)
shakex -= 1;
if (shakex < 0)
shakex += 1;
shakex = -shakex;
hurtshake = 0;
}
}
} ();
|
|
500
|
}
|
|
501
|
|
|
502
|
enum e__VW
|
|
503
|
{
|
|
504
|
XView,
|
|
505
|
YView,
|
|
506
|
WView,
|
|
507
|
HView,
|
|
508
|
Angle,
|
|
509
|
HBorder,
|
|
510
|
VBorder,
|
|
511
|
HSpeed,
|
|
512
|
VSpeed,
|
|
513
|
Object,
|
|
514
|
Visible,
|
|
515
|
XPort,
|
|
516
|
YPort,
|
|
517
|
WPort,
|
|
518
|
HPort,
|
|
519
|
Camera,
|
|
520
|
SurfaceID
|
|
521
|
}
|