Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_writer_Alarm_2

(view raw script w/o annotations or w/e)
1
if (firstnoise == 0)
2
{
3
    firstnoise = 1;
4
    scr_textsound
scr_textsound

function scr_textsound() { playtextsound = 1; if (button2_h() == 1) playtextsound = 0; if (skippable == 0) playtextsound = 1; if (playtextsound == 1) { if (rate <= 2) getchar = string_char_at(mystring, pos); else getchar = string_char_at(mystring, pos - 1); play = 1; playcheck = 0; if (getchar == "&") { if (rate < 3) { playcheck = 1; getchar = string_char_at(mystring, pos + 1); } else { play = 0; } } if (getchar == " ") play = 0; if (getchar == "^") play = 0; if (getchar == "!") play = 0; if (getchar == ".") play = 0; if (getchar == "?") play = 0; if (getchar == ",") play = 0; if (getchar == ":") play = 0; if (getchar == "/") play = 0; if (getchar == "\\") play = 0; if (getchar == "|") play = 0; if (getchar == "*") play = 0; if (play == 1) { snd_play(textsound); with (obj_face_parent) mouthmove = 1; } } }
();
5
}