Files
LonaRPG-Online-Games/Data/HCGframes/Command_BasicNeeds.rb
T
2026-10-29 21:59:06 +04:00

34 lines
967 B
Ruby

if $game_map.threat
SndLib.sys_buzzer
$game_map.popup(0,"QuickMsg:Lona/incombat#{rand(2)}",0,0)
return
end
##################################################
###### load_script_empty("Command_BasicNeeds_Mod") # Load empty script without patch. Used only for $mod_load_script and using alias_method inside script for def above.
##################################################
$game_portraits.lprt.hide
tmpPicked = ""
cmd_sheet = basicNeed_create_tmpQuestList
cmd_text =""
for i in 0...cmd_sheet.length
cmd_text.concat(cmd_sheet[i].first+",")
end
call_msg("commonCommands:Lona/BasicNeeds_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
action_blocked = false
basicNeed_work_with_tmpPicked(tmpPicked)
if action_blocked
SndLib.sys_buzzer
$game_map.popup(0,"CompElise:tar/Failed_enter",0,0)
end
eventPlayEnd