| 1 |
if (scr_interactscr_interactfunction scr_interact()
{
if (distance_to_object(obj_pl) < 20 && obj_pl.state == scr_normal_state)
{
var pl_dir = obj_pl.direction;
var pl_x = 0;
var pl_y = 0;
var check_distance_x = 0;
var check_distance_y = 0;
switch (pl_dir)
{
case 0:
pl_x = obj_pl.bbox_right;
pl_y = obj_pl.bbox_top + 1;
check_distance_x = 20;
break;
case 180:
pl_x = obj_pl.bbox_left;
pl_y = obj_pl.bbox_top + 1;
check_distance_x = -20;
break;
case 90:
pl_x = obj_pl.x;
pl_y = obj_pl.bbox_top;
check_distance_y = -20;
break;
case 270:
pl_x = obj_pl.x;
pl_y = obj_pl.bbox_bottom;
check_distance_y = 20;
break;
}
if (collision_line_first(pl_x, pl_y, pl_x + check_distance_x, pl_y + check_distance_y, id, false, false))
return true;
}
} () && keyboard_multicheck_pressed(0)) |
| 2 |
{ |
| 3 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 4 |
with (msg) |
| 5 |
{ |
| 6 |
if (global.route == 3) |
| 7 |
{ |
| 8 |
message[0] = "* (A cork board with several# unimportant notes on it.)"; |
| 9 |
exit; |
| 10 |
} |
| 11 |
switch (other.waiter) |
| 12 |
{ |
| 13 |
case 0: |
| 14 |
message[0] = "* (A few sticky notes are pinned# to the cork board.)\t"; |
| 15 |
message[1] = "* Will someone tell Dr. Fish to# stop using the lab to create# colored slime?\t"; |
| 16 |
message[2] = "* I don't care if it makes funny# noises, it does not count as# work."; |
| 17 |
other.waiter = 1; |
| 18 |
break; |
| 19 |
case 1: |
| 20 |
message[0] = "* (A few sticky notes are pinned# to the cork board.)\t"; |
| 21 |
message[1] = "* Todo: -Try new things -Fail# miserably -Quit my job."; |
| 22 |
other.waiter = 2; |
| 23 |
break; |
| 24 |
case 2: |
| 25 |
message[0] = "* (A few sticky notes are pinned# to the cork board.)"; |
| 26 |
message[1] = "* (This one consists of all 31# trillion numbers of pi written# in crayon.)"; |
| 27 |
other.waiter = 3; |
| 28 |
break; |
| 29 |
case 3: |
| 30 |
message[0] = "* (A few sticky notes are pinned# to the cork board.)"; |
| 31 |
message[1] = "* (This one points to the note# with the pi numbers.)\t"; |
| 32 |
message[2] = "* What a showoff."; |
| 33 |
message[3] = "* Check it: pi x infinity.\t"; |
| 34 |
message[4] = "* Owned B)"; |
| 35 |
other.waiter = 0; |
| 36 |
break; |
| 37 |
} |
| 38 |
} |
| 39 |
} |