Noirand

lua script test 02

May 10th, 2016
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. require 'MyLib'
  2.  
  3. KeyWait = function()
  4.    coroutine.yield(obj.keyWait())
  5. end
  6.  
  7. --[[
  8. return function()
  9.    obj.timeWait();
  10.    coroutine.yield("こんにちは");
  11.    obj.keyWait();
  12.    coroutine.yield("ADV の");
  13.    obj.noWait();
  14.    coroutine.yield("テストです");
  15. end
  16. ]]
  17.  
  18. return function()
  19.    Talk("太郎", "こんにちは")
  20.    KeyWait()
  21.    Talk("花子", "こんにちは")
  22.    KeyWait()
  23.    Talk("太郎", "いい天気ですね")
  24.    KeyWait()
  25.    Talk("花子", "そうですね\nいい天気です")
  26.    KeyWait()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment