1 | if (sb_con == 1) |
2 | { |
3 | if (update_word) |
4 | { |
5 | update_word = false; |
6 | sb_word_previous = sb_word_current; |
7 | if (!noelle_lose) |
8 | { |
9 | while (sb_word_current == sb_word_previous) |
10 | sb_word_current = sb_word[random_range(0, 5)]; |
11 | } |
12 | else |
13 | { |
14 | sb_word_current = stringsetloc( |
15 | } |
16 | wb_word_length = string_length(sb_word_current) + 1; |
17 | sb_noelle = ""; |
18 | sb_berdly = ""; |
19 | noelle_index = 0; |
20 | berdly_index = 0; |
21 | text_alpha = 1; |
22 | if (!noelle_lose) |
23 | alarm[0] = 30; |
24 | alarm[1] = 30; |
25 | } |
26 | if (noelle_spell) |
27 | { |
28 | noelle_spell = false; |
29 | alarm[0] = random_range(5, 10); |
30 | } |
31 | if (berdly_spell) |
32 | { |
33 | berdly_spell = false; |
34 | alarm[1] = noelle_lose ? 15 : random_range(10, 15); |
35 | } |
36 | if (noelle_finish && berdly_finish) |
37 | { |
38 | if (text_alpha > 0) |
39 | { |
40 | text_alpha -= 0.05; |
41 | } |
42 | else |
43 | { |
44 | noelle_finish = false; |
45 | berdly_finish = false; |
46 | alarm[2] = noelle_lose ? 60 : 30; |
47 | } |
48 | } |
49 | if (noelle_lose && berdly_finish) |
50 | { |
51 | if (text_alpha > 0) |
52 | { |
53 | text_alpha -= 0.05; |
54 | } |
55 | else |
56 | { |
57 | berdly_finish = false; |
58 | sb_con = 99; |
59 | if (i_ex(obj_ch2_scene19c)) |
60 | { |
61 | with (obj_ch2_scene19c) |
62 | con = 25; |
63 | } |
64 | } |
65 | } |
66 | } |
67 | if (berdly_smart) |
68 | { |
69 | if (berdly_show_word) |
70 | { |
71 | berdly_show_word = false; |
72 | berdly_word_previous = berdly_word_current; |
73 | while (berdly_word_current == berdly_word_previous) |
74 | berdly_word_current = sb_word[random_range(0, 5)]; |
75 | berdly_word_count++; |
76 | var x_pos = ((berdly_word_count % 2) == 1) ? 180 : 400; |
77 | var word = instance_create(camerax() + x_pos, cameray() + 150 + choose(20, 60, 80, 100), obj_ch2_scene19c_berdly_smart_word); |
78 | word.berdly_word = berdly_word_current; |
79 | alarm[3] = 15; |
80 | } |
81 | } |