71 lines
2.7 KiB
Ruby
71 lines
2.7 KiB
Ruby
if $game_map.threat
|
|||
|
|
SndLib.sys_buzzer
|
||
|
|
$game_map.popup(0,"QuickMsg:Lona/incombat#{rand(2)}",0,0)
|
||
|
|
return
|
||
|
|
end
|
||
|
|
if get_character(0).summon_data == nil
|
||
|
|
get_character(0).set_summon_data({:SexTradeble => true})
|
||
|
|
elsif get_character(0).summon_data[:SexTradeble] == nil
|
||
|
|
get_character(0).summon_data[:SexTradeble] = true
|
||
|
|
end
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
call_msg("commonComp:CompMusketeer/begin_nonInGroup")
|
||
|
|
tmpGotoTar = ""
|
||
|
|
tmpTarList = []
|
||
|
|
tmpTarList << [$game_text["commonNPC:commonNPC/Cancel"] ,"Cancel"]
|
||
|
|
tmpTarList << [$game_text["commonComp:Companion/TeamUp"] ,"TeamUp"] if $game_player.record_companion_name_back != "CompMusketeer"
|
||
|
|
tmpTarList << [$game_text["commonComp:Companion/Disband"] ,"Disband"] if $game_player.record_companion_name_back == "CompMusketeer"
|
||
|
|
cmd_sheet = tmpTarList
|
||
|
|
cmd_text =""
|
||
|
|
for i in 0...cmd_sheet.length
|
||
|
|
cmd_text.concat(cmd_sheet[i].first+",")
|
||
|
|
end
|
||
|
|
call_msg("commonNPC:MaleHumanRandomNpc/CommonHuman_CommonNpcOpt",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 "TeamUp"
|
||
|
|
get_character(0).animation = nil
|
||
|
|
$story_stats["HiddenOPT0"] = InputUtils.getKeyAndTranslateLong(:SHIFT)
|
||
|
|
$story_stats["HiddenOPT1"] = InputUtils.getKeyAndTranslateLong(:C)
|
||
|
|
call_msg("commonComp:CompMusketeer/CompData")
|
||
|
|
$story_stats["HiddenOPT0"] = "0"
|
||
|
|
$story_stats["HiddenOPT1"] = "0"
|
||
|
|
show_npc_info(get_character(0),extra_info=false,"commonComp:Companion/Accept") #\optD[算了,確定]
|
||
|
|
case $game_temp.choice
|
||
|
|
when 0,-1
|
||
|
|
when 1
|
||
|
|
if $game_player.actor.weak >= 100
|
||
|
|
call_msg("commonComp:CompMusketeer/Weak_failed")
|
||
|
|
return eventPlayEnd
|
||
|
|
elsif $game_party.item_number("ItemBottledBeer") >=4 #ItemBottledBeer 57
|
||
|
|
optain_lose_item("ItemBottledBeer",4) #ItemBottledBeer 57
|
||
|
|
#elsif $game_party.item_number($data_items[135]) >=1 #HolyWaterx1
|
||
|
|
# optain_lose_item($data_items[135],1)
|
||
|
|
get_character(0).set_this_event_companion_back("CompMusketeer",false,$game_date.dateAmt+10)
|
||
|
|
call_msg("commonComp:CompMusketeer/Comp_win")
|
||
|
|
return eventPlayEnd
|
||
|
|
else
|
||
|
|
call_msg("commonComp:CompMusketeer/Comp_failed")
|
||
|
|
return eventPlayEnd
|
||
|
|
end
|
||
|
|
end
|
||
|
|
when "Disband"
|
||
|
|
call_msg("commonComp:Companion/Accept") #\optD[算了,確定]
|
||
|
|
case $game_temp.choice
|
||
|
|
when 0,-1
|
||
|
|
when 1
|
||
|
|
call_msg("commonComp:CompMusketeer/Comp_disband")
|
||
|
|
get_character(0).set_this_companion_disband(false)
|
||
|
|
return eventPlayEnd
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
tmpData=[[1,0+get_character(0).direction_offset,35,0,0]]
|
||
|
|
get_character(0).animation = get_character(0).aniCustom(tmpData,1)
|
||
|
|
SndLib.sound_equip_armor(100,200)
|
||
|
|
eventPlayEnd
|