Files
2026-10-29 21:59:06 +04:00

34 lines
1.0 KiB
Ruby

if $game_map.threat
SndLib.sys_buzzer
$game_map.popup(0,"QuickMsg:Lona/incombat#{rand(2)}",0,0)
return
end
$game_temp.choice = -1
tmpGotoTar = ""
tmpTarList = []
tmpTarList << [$game_text["commonNPC:commonNPC/Cancel"] ,"Cancel"]
tmpTarList << [$game_text["commonNPC:commonNPC/Barter"] ,"Barter"]
tmpTarList << [$game_text["commonNPC:commonNPC/About"] ,"About"]
tmpTarList << [$game_text["commonNPC:commonNPC/Work"] ,"Work"]
cmd_sheet = tmpTarList
cmd_text =""
for i in 0...cmd_sheet.length
cmd_text.concat(cmd_sheet[i].first+",")
end
call_msg("TagMapDoomFortress:InnKeeper/Begin",0,2,0)
call_msg("\\optB[#{cmd_text}]")
$game_temp.choice == -1 ? tmpPicked = false : tmpPicked = cmd_sheet[$game_temp.choice][1]
$game_temp.choice = -1
case tmpPicked
when "Barter"
manual_barters("DoomFortressInnKeeper")
when "About"
call_msg("TagMapDoomFortress:InnKeeper/About_here")
when "Work"
call_msg("TagMapDoomFortress:InnKeeper/About_work")
end
eventPlayEnd