VX 스크립트

#module SSS의 바로 아래쪽에 25, 25로 지정된 값을 수정해주면 됩니다.
#===============================================================================
# 
# Shanghai Simple Script - Heal After Battle
# Last Date Updated: 2010.06.03
# Level: Normal
# 
# This causes the party to be healed after battle by a percentage. Options are
# adjustable in the module.
#===============================================================================
# Instructions
# -----------------------------------------------------------------------------
# To install this script, open up your script editor and copy/paste this script
# to an open slot below ▼ Materials but above ▼ Main. Remember to save.
# 
# This script occurs automatically.
#===============================================================================
 
$imported = {} if $imported == nil
$imported["HealAfterBattle"] = true
 
module SSS
  # Change these constants to adjust what percentage of HP or MP is healed
  # after battle and whether or not states will be cleared, too.
  AFTER_BATTLE_HEAL_HP = 25
  AFTER_BATTLE_HEAL_MP = 25
  AFTER_BATTLE_RECOVER = true
end
 
#==============================================================================
# ** Game_Actor
#==============================================================================
 
class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Heal After Battle
  #--------------------------------------------------------------------------
  def heal_after_battle
    if SSS::AFTER_BATTLE_RECOVER
      for state in states do remove_state(state.id) end
    end
    return if dead?
    self.hp += maxhp * SSS::AFTER_BATTLE_HEAL_HP / 100
    self.mp += maxmp * SSS::AFTER_BATTLE_HEAL_MP / 100
  end
end
 
#==============================================================================
# ** Scene_Battle
#==============================================================================
 
class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * End Battle
  #--------------------------------------------------------------------------
  alias battle_end_sss_heal_after_battle battle_end unless $@
  def battle_end(result)
    battle_end_sss_heal_after_battle(result)
    if result != 2
      for member in $game_party.members
        member.heal_after_battle
      end
    end
  end
end
 
#===============================================================================
# 
# END OF FILE
# 
#===============================================================================

Who's 하얀슬픔

?

몰라, 뭐야 이거 무서워...

Comment '5'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5408
557 엄청 좋음(DEMO)클릭 하이퍼링크 걸려있음(누가 변혁좀 해 줬으면...) 4 Man... 2008.10.27 1745
556 기타 Wora's Christmas Giftbox 2008 4 file Alkaid 2010.09.18 1747
555 Repel Effect 1 Man... 2008.10.28 1753
554 기타 배틀신에서 곡 넘기기 2 rukan 2009.07.02 1757
553 스킬 SW_BookSkill && EchantScroll(상호충돌수정버전) 6 시옷전사 2011.08.22 1758
552 메시지 Etude87_Item_Choice ver.1.00 file 습작 2013.02.16 1771
551 Limit Break VX 3 Man... 2008.10.28 1777
550 제작도구 Windowskin generator VX by Aindra and Woratana 1 file Alkaid 2010.09.18 1791
549 기타 KGC counter 스크립트. 반격기 추가스크립트입니다. 4 우켈킁 2011.03.31 1812
548 ES Character Info 6 file RPGbooster 2008.10.08 1824
547 타이틀/게임오버 New Title Screen 3 Man... 2008.10.28 1832
546 장비 Equipment Set Bonus 6 Man... 2008.10.25 1849
545 파티 파티원의 첫번째 멤버로 추가하기 5 허걱 2012.12.04 1865
544 기타 장애물을 피하고 다가오게 하는 스크립트 5 file 박력남 2014.02.25 1877
543 전투 GTBS for 2d_iso_x3 by Clarabel 2 습작 2013.05.13 1884
542 기타 Etude87_GAGA_Chat 4 습작 2012.06.14 1916
541 스킬 미완성 구버전. 2칸 위에 있는 글을 이용해주세요. 7 Last H 2009.02.23 1925
540 이름입력 Etude87_HG_Hangul_Name_Scene file 습작 2012.06.14 1948
539 스킬 Grid Inventory 1.0f by Modern Algebra 2 Alkaid 2010.09.05 1960
538 이동 및 탈것 장소이동시 효과 없애기 10 file 허걱 2013.05.05 1963
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32