eliasdaler

Cutscene script

Jan 30th, 2016
1,207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1. -- cutscene from Re:creation by Elias Daler
  2. -- see it here: http://i.imgur.com/yB0Hw90.gif
  3.  
  4. local cat = getEntityByTag("CAT")
  5.  
  6. local cutscene =  {
  7.     {
  8.         type = ActionType.Dialogue,
  9.         dialogue = {
  10.             {
  11.                 entity = cat,
  12.                 text = { "meow_meow_pop_quiz", "pop_quiz" },
  13.                 choices = {
  14.                     {
  15.                         text = "yes",
  16.                         f = function()
  17.                             cutsceneGoTo("ANSWERED_YES")
  18.                         end
  19.                     },
  20.                     {
  21.                         text = "no",
  22.                         f = function()
  23.                             cutsceneGoTo("ANSWERED_NO")
  24.                         end
  25.                     }
  26.                 }
  27.             }
  28.         }
  29.     },
  30.     {
  31.         tag = "ANSWERED_YES",
  32.         type = ActionType.Dialogue,
  33.         dialogue = {
  34.             {
  35.                 entity = cat,
  36.                 text = { "incorrect" },
  37.             }
  38.         }
  39.     },
  40.     {
  41.         tag = "ANSWERED_NO",
  42.         type = ActionType.Dialogue,
  43.         dialogue = {
  44.             {
  45.                 entity = cat,
  46.                 text = { "i_thought_you_would" },
  47.                 portraitName = "sad"
  48.             },
  49.             {
  50.                 entity = cat,
  51.                 text = { "silly_me" },
  52.                 portraitName = "shrug"
  53.             }
  54.         }
  55.     }
  56. }
  57.  
  58. return cutscene
Advertisement
Add Comment
Please, Sign In to add comment