Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if talking_1=true
  2. {
  3.     obj_player.stop=true;
  4.     global.talk=true;
  5.     var currentletter_1;
  6.     txtlength_1=string_length(txt_1);
  7.     repeat(txtspeed_1)
  8.     {
  9.         if (txtcount_1<txtlength_1)
  10.         {
  11.             scr_sound("text");
  12.             txtcount_1+=1;
  13.             currentletter_1=string_char_at(txt_1,floor(txtcount_1));
  14.             displaytxt_1=displaytxt_1+string(currentletter_1);
  15.         }
  16.         else
  17.         {
  18.             if keyboard_check_pressed(ord("X"))
  19.             {
  20.                 global.talk=false;
  21.                 talking_1=false;
  22.                 obj_player.stop=false;
  23.                 txtcount_1=0;
  24.                 txtlength_1=0;
  25.                 displaytxt_1="";
  26.                 txtspeed_1=1;
  27.             }
  28.         }
  29.     }                
  30. }
  31. if talking_2=true
  32. {
  33.     obj_player.stop=true;
  34.     global.talk=true;
  35.     var currentletter_2;
  36.     txtlength_2=string_length(txt_2);
  37.     repeat(txtspeed_2)
  38.     {
  39.         if (txtcount_2<txtlength_2)
  40.         {
  41.             scr_sound("text");
  42.             txtcount_2+=1;
  43.             currentletter_2=string_char_at(txt_2,floor(txtcount_2));
  44.             displaytxt_2=displaytxt_2+string(currentletter_2);
  45.         }
  46.         else
  47.         {
  48.             if keyboard_check_pressed(ord("X"))
  49.             {
  50.                 global.talk=false;
  51.                 talking_2=false;
  52.                 obj_player.stop=false;
  53.                 txtcount_2=0;
  54.                 txtlength_2=0;
  55.                 displaytxt_2="";
  56.                 txtspeed_2=1;
  57.             }
  58.         }
  59.     }
  60. }
  61. if talking_3=true
  62. {
  63.     obj_player.stop=true;
  64.     global.talk=true;
  65.     var currentletter_3;
  66.     txtlength_3=string_length(txt_3);
  67.     repeat(txtspeed_3)
  68.     {
  69.         if (txtcount_3<txtlength_3)
  70.         {
  71.             scr_sound("text");
  72.             txtcount_3+=1;
  73.             currentletter_3=string_char_at(txt_3,floor(txtcount_3));
  74.             displaytxt_3=displaytxt_3+string(currentletter_3);
  75.         }
  76.         else
  77.         {
  78.             if keyboard_check_pressed(ord("X"))
  79.             {
  80.                 global.talk=false;
  81.                 talking_3=false;
  82.                 obj_player.stop=false;
  83.                 txtcount_3=0;
  84.                 txtlength_3=0;
  85.                 displaytxt_3="";
  86.                 txtspeed_3=1;
  87.             }
  88.         }
  89.     }
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement