print("NPC_Bodi init") require "lua/entity.lua" require "lua/utilities.lua" require "lua/level_hub/npc_base.lua" require "lua/level_hub/ruinsstate.lua" npcname = "bodi" ruins["npcPointers"][npcname] = get_object() doFacing = true doGreetAnim = true doTalkAnim = true saidFirst2PDeny = false function selectConversation() --Bodi's normal prompt prompt() end function prompt() activeConversation = "RuinsBodiPrompt" conversationResultYes = function() if player_obj(0) and player_obj(1) then if not saidFirst2PDeny then activeConversation = "RuinsBodiPrompt_2PDeny01" saidFirst2PDeny = true else activeConversation = "RuinsBodiPrompt_2PDeny02" end else activeConversation = "RuinsBodiPrompt_Accept" conversationResultAll = function() if player_obj(0) and player_obj(1) then if not saidFirst2PDeny then activeConversation = "RuinsBodiPrompt_2PDeny01" saidFirst2PDeny = true talk() else activeConversation = "RuinsBodiPrompt_2PDeny02" talk() end conversationResultNo = function() end conversationResultAll = function() end else open_challenge_menu() conversationResultNo = function() end conversationResultAll = function() end end end end conversationResultYes = function() end talk() end conversationResultNo = function() activeConversation = "RuinsBodiPrompt_Refuse" talk() conversationResultNo = function() end end end while tick() do npctick(dt) end