106 lines
3.9 KiB
Ruby
106 lines
3.9 KiB
Ruby
$story_stats["OverMapEvent_enemy"] = rand(2)
|
|
$story_stats["StepStoryCount"] = 0
|
|
|
|
call_msg("OvermapEvents:World/ThingHappen_begin")
|
|
SndLib.sound_equip_armor(100)
|
|
chcg_background_color(0,0,0,255,-15) if @chcg_background_color
|
|
call_msg("OvermapEvents:World/ThingHappen_who_unknow_AbandonedCropses")
|
|
|
|
hidden_event = [
|
|
[70,"NFL_OrkindPlayGround.rb"],
|
|
[70,"NFL_OrkindGroup.rb"],
|
|
[40,"UndeadWalking.rb"]
|
|
]
|
|
loop_is_over = 0
|
|
tmpOptions_Leave_able= true
|
|
tmpOptions_Observe_able= true
|
|
until loop_is_over ==1
|
|
SndLib.sound_equip_armor(100)
|
|
$game_player.actor.sta > 0 ? tmpOptions_Leave = true : tmpOptions_Leave = false
|
|
$game_player.actor.sta > 0 ? tmpOptions_Observe = true : tmpOptions_Observe = false
|
|
|
|
tmpPicked = ""
|
|
tmpQuestList = []
|
|
tmpQuestList << [$game_text["OvermapEvents:Lona/Options_Leave"] ,"Options_Leave"] if tmpOptions_Leave && tmpOptions_Leave_able
|
|
tmpQuestList << [$game_text["OvermapEvents:Lona/Options_Observe"] ,"Options_Observe"] if tmpOptions_Observe && tmpOptions_Observe_able
|
|
tmpQuestList << [$game_text["OvermapEvents:Lona/Options_Approach"] ,"Options_Approach"]
|
|
tmpQuestList << [$game_text["OvermapEvents:Lona/Options_Kyaaah"] ,"Options_Kyaaah"]
|
|
cmd_sheet = tmpQuestList
|
|
cmd_text =""
|
|
for i in 0...cmd_sheet.length
|
|
cmd_text.concat(cmd_sheet[i].first+",")
|
|
p cmd_text
|
|
end
|
|
$game_player.actor.prtmood("confused")
|
|
call_msg("#{$game_text["OvermapEvents:Lona/Options"]}\\optD[#{cmd_text}]")
|
|
|
|
$game_temp.choice == -1 ? tmpPicked = false : tmpPicked = cmd_sheet[$game_temp.choice][1]
|
|
$game_temp.choice = -1
|
|
|
|
case tmpPicked
|
|
when "Options_Leave"
|
|
tmpOptions_Leave_able = false
|
|
call_msg("OvermapEvents:Lona/Options_sneakpass_SneakWin") #不是敵人
|
|
loop_is_over =1
|
|
|
|
when "Options_Observe"
|
|
tmpOptions_Observe_able = false
|
|
sneak_result = overmap_event_sneak_check(0)
|
|
$game_player.actor.sta -= 2
|
|
$story_stats["HiddenOPT2"] = 0
|
|
if $story_stats["OverMapEvent_enemy"] == 1
|
|
call_msg("OvermapEvents:World/Check_Enemy_SneakWin") if sneak_result == "_SneakWin"
|
|
call_msg("OvermapEvents:World/Check_SneakFailed") if sneak_result == "_SneakFailed"
|
|
else
|
|
call_msg("OvermapEvents:World/Check_NoEnemy_SneakWin") if sneak_result == "_SneakWin"
|
|
call_msg("OvermapEvents:World/Check_SneakFailed") if sneak_result == "_SneakFailed"
|
|
end
|
|
|
|
when "Options_Approach"
|
|
if $story_stats["OverMapEvent_enemy"] ==1
|
|
call_msg("OvermapEvents:World/Ambush_begin")
|
|
return overmap_random_event_trigger(hidden_event,true,"AbandonedCropses")
|
|
else
|
|
$story_stats["RegionMap_Background"] = "AbandonedCropses"
|
|
enter_tag_map = 1
|
|
loop_is_over =1
|
|
end
|
|
|
|
when "Options_Kyaaah"
|
|
$story_stats["OverMapEvent_saw"] =1
|
|
$game_player.actor.sta = -99
|
|
call_msg("OvermapEvents:Lona/OvermapSlip")
|
|
if $story_stats["OverMapEvent_enemy"] ==1
|
|
call_msg("OvermapEvents:World/Ambush_begin")
|
|
return overmap_random_event_trigger(hidden_event,true,"AbandonedCropses")
|
|
else
|
|
$story_stats["RegionMap_Background"] = "AbandonedCropses"
|
|
enter_tag_map = 1
|
|
loop_is_over =1
|
|
end
|
|
end
|
|
end
|
|
$cg.erase
|
|
portrait_hide
|
|
chcg_background_color_off
|
|
#todo 建構個事件獨立之RB
|
|
#下列三筆資料 在TAG MAP鐘用AUTO BEGIN 還原
|
|
#todo add OverMapEvent_race
|
|
p "OverMapEvent_name #{$story_stats["OverMapEvent_name"]}"
|
|
p "OverMapEvent_saw #{$story_stats["OverMapEvent_saw"]}"
|
|
p "OverMapEvent_enemy #{$story_stats["OverMapEvent_enemy"]}"
|
|
#收尾 關閉複寫
|
|
$game_temp.choice = -1
|
|
if enter_tag_map == 1
|
|
#overmap_gen_WildDangerous
|
|
p "WildDangerous = #{$story_stats["WildDangerous"]}"
|
|
change_map_enter_region
|
|
else
|
|
$story_stats["WildDangerous"] =0
|
|
$story_stats["OverMapEvent_name"] =0
|
|
$story_stats["OverMapEvent_saw"] =0
|
|
$story_stats["OverMapEvent_enemy"] =0
|
|
$story_stats["RegionMap_Background"] = 0
|
|
end
|
|
|