Release 0.0.1.8.8.7
This commit is contained in:
1 parent
3c8a17aa78
commit
c7beab414c
16283 files changed
+768761
-2
No files matched your search
@@ -0,0 +1,46 @@
|
||||
$game_map.interpreter.screen.start_shake(1,7,20)
|
||||
SndLib.sound_FlameCast(60,70)
|
||||
SndLib.sound_equip_armor(60,70)
|
||||
$game_player.animation = $game_player.animation_mc_pick_up
|
||||
# switch1_id по умолчанию nil — после реконнекта/первого клика += падает
|
||||
ev = get_character(0)
|
||||
ev.switch1_id = 0 if ev.switch1_id.nil?
|
||||
ev.switch1_id += 1
|
||||
ev.switch1_id = 1 if ev.switch1_id > 4
|
||||
set_this_event_force_page(ev.switch1_id)
|
||||
$game_player.actor.sta -= 1
|
||||
|
||||
|
||||
pts = ["Stone1B","Stone2B","Stone3B","Stone4B","Swirl2","StoneTar1B","StoneTar2B","StoneTar3B","StoneTar4B"].map{|n|
|
||||
$game_map.get_storypoint(n) rescue nil
|
||||
}
|
||||
return if pts.any?{|pt| !pt.is_a?(Array) || pt.length < 3}
|
||||
s1ID,s2ID,s3ID,s4ID,g2ID,st1ID,st2ID,st3ID,st4ID = pts.map{|pt| pt[2]}
|
||||
|
||||
# Эффективное значение грани: switch1_id, иначе custom_page (1..4)
|
||||
_fk3_face = lambda{|ch|
|
||||
next nil unless ch
|
||||
sw = ch.switch1_id
|
||||
next sw.to_i if !sw.nil? && sw.to_i >= 1 && sw.to_i <= 4
|
||||
cp = ch.custom_page rescue nil
|
||||
next cp.to_i if !cp.nil? && cp.to_i >= 1 && cp.to_i <= 4
|
||||
nil
|
||||
}
|
||||
# Подтянуть switch1_id у ответов Stone*B из custom_page после init/restore
|
||||
[s1ID,s2ID,s3ID,s4ID,st1ID,st2ID,st3ID,st4ID].each{|id|
|
||||
ch = get_character(id)
|
||||
next unless ch
|
||||
face = _fk3_face.call(ch)
|
||||
ch.switch1_id = face if !face.nil? && ch.switch1_id.nil?
|
||||
}
|
||||
|
||||
chk1 = _fk3_face.call(get_character(s1ID)) == _fk3_face.call(get_character(st1ID))
|
||||
chk2 = _fk3_face.call(get_character(s2ID)) == _fk3_face.call(get_character(st2ID))
|
||||
chk3 = _fk3_face.call(get_character(s3ID)) == _fk3_face.call(get_character(st3ID))
|
||||
chk4 = _fk3_face.call(get_character(s4ID)) == _fk3_face.call(get_character(st4ID))
|
||||
chk5 = (get_character(g2ID).switch1_id || 0) == 0
|
||||
if chk1 && chk2 && chk3 && chk4 && chk5
|
||||
get_character(g2ID).switch1_id = 1
|
||||
set_event_force_page(g2ID,2)
|
||||
get_character(g2ID).animation = get_character(g2ID).animation_swirl
|
||||
end
|
||||
Reference in new issue
Block a user