Advertisement
Guest User

Corpse Party Blood Drive Chapter 3 030_0160.lua

a guest
Aug 31st, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.39 KB | None | 0 0
  1. --[[
  2.     030_0160.lua
  3. ]]
  4.  
  5. --■痴話喧嘩の末、理科室に閉じ込められ死んでしまった男の亡霊
  6. --■ほんの些細なスレ違いで、不幸な最後を遂げた事を悔やんでいる
  7.  
  8.  
  9. --メイン処理
  10. do
  11.  
  12.  
  13. return function()
  14.  
  15.    
  16.  
  17.     --フラグを取得
  18.     local flag32 = Adventure:GetFlag('32')
  19.     local flag9 = Adventure:GetFlag('9')
  20.     --ミストからの電話(1回目)が着たかどうか
  21.     if flag9 == false then
  22.         --着てないなら何もしない
  23.         return
  24.     end -- if
  25.     --女幽霊から鍵をもらったなら
  26.     if flag32 then
  27.  
  28.         --何もしないことになりました(部屋に入った時点でいなくなっているので)
  29.         --「32」のフラグが立っているとイベントは終了しているので、NPC_Ghostを消す
  30.         --local obj = GameObject.Find('Event/NPC_Ghost')
  31.         --obj:set_Active(false)
  32.  
  33.     else
  34.  
  35.         Adventure:SetName('Phantom')
  36.         Adventure:SetMessage('*moan*\n  *moan*')
  37.         Adventure:SetMessage('Daaaamm...nnn...it...\n...Don\'t...have...keeeeeey...')
  38.         Adventure:SetMessage('My...body\'s in...the science lab...\n...He...has...the key...')
  39.         Adventure:SetMessage('Find...him...and...get it...back...')
  40.         Adventure:SetMessage('...Sc...science...lab...\n...Key... Keeeey...')
  41.        
  42.         --030_0170のフラグを立ててイベントが発生するようにする
  43.         Adventure:SetFlag('11')
  44.  
  45.     end
  46.  
  47.  
  48. end -- function
  49. end -- do
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement