19 lines
840 B
Ruby
19 lines
840 B
Ruby
if $story_stats["QuProgScoutCampOrkind"] != 3 && $story_stats["GuildCompletedScoutCampOrkind"] < 1 && $story_stats["QuProgScoutCampOrkind"] != 0
|
|||
|
|
call_msg("TagMapScoutCampOrkind:Guide/QuestNotDone")
|
||
|
|
end
|
||
|
|
|
||
|
|
# HostageSaved обязан быть Hash.new(0); пропавший ключ через Story_Stats#[] = 0 → TypeError на выходе
|
||
|
|
hostage_saved = $story_stats["HostageSaved"]
|
||
|
|
unless hostage_saved.is_a?(Hash)
|
||
|
|
hostage_saved = Hash.new(0)
|
||
|
|
$story_stats["HostageSaved"] = hostage_saved
|
||
|
|
end
|
||
|
|
tmpQ1 = hostage_saved["HostageSavedRich"].to_i
|
||
|
|
tmpQ2 = hostage_saved["HostageSavedCommoner"].to_i
|
||
|
|
tmpQ3 = hostage_saved["HostageSavedMoot"].to_i
|
||
|
|
tmpResult = tmpQ1+tmpQ2+tmpQ3
|
||
|
|
if tmpResult >= get_character(0).summon_data[:HostageVal]+5
|
||
|
|
GabeSDK.getAchievement("SavedScoutCampOrkind_1")
|
||
|
|
end
|
||
|
|
|
||
|
|
change_map_tag_map_exit(true)
|