1 | function scr_blconskip |
2 | { |
3 | if (arg0 >= 0) |
4 | { |
5 | if (button1_p() && talktimer > arg0) |
6 | talktimer = talkmax; |
7 | talktimer += 1; |
8 | if (talktimer >= talkmax) |
9 | { |
10 | with (obj_writer) |
11 | instance_destroy(); |
12 | global.mnfight = 2; |
13 | } |
14 | } |
15 | else if (arg0 == -1) |
16 | { |
17 | if (instance_exists(obj_writer) == false) |
18 | global.mnfight = 2; |
19 | } |
20 | else if (arg0 == -2) |
21 | { |
22 | talktimer += 1; |
23 | if (talktimer > 15) |
24 | talktimer = talkmax; |
25 | if (talktimer >= talkmax) |
26 | { |
27 | with (obj_writer) |
28 | instance_destroy(); |
29 | global.mnfight = 2; |
30 | } |
31 | } |
32 | } |