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
117 오디오 사운드테스트 스크립트 13 file 카르와푸딩의아틀리에 2009.08.19 2106
116 전투 Animated Battlers VX 3.7 by DerVVulfman Alkaid 2012.09.07 2102
115 전투 Team_Ilias's_Old_Project_Demo 4 습작 2012.07.11 2101
114 기타 이벤트 위치 저장 스크립트 10 Tofuman 2008.12.11 2096
113 기타 적 선택시 스킬창 비표시 + 타겟 플래쉬 7 훈덕 2009.06.14 2094
112 기타 앞에있는 이벤트 아이디 찾기 6 허걱 2009.08.21 2091
111 기타 스크린샷 기능 14 비극ㆍ 2010.04.19 2090
110 장비 카드 슬롯 장비 스크립트[수정] 2 빙하 2012.11.11 2058
109 전투 VX_SRPG2 by tomoaky 1 습작 2013.05.13 2053
108 스킬 Learn Skills By Use 10 비극ㆍ 2010.04.19 2037
107 기타 Lock Screen 3 비극ㆍ 2010.04.19 2012
106 전투 Requiem ABS Hero Edition by Falcao 습작 2013.05.13 2009
105 기타 みんと씨의 RMVX 샘플 프로젝트 1.11 (2009-11-05) 6 Alkaid 2010.09.13 2005
104 장비 Equipment Constraints 2.5b by Modern Algebra 3 Alkaid 2010.09.17 2001
103 기타 TagNote v2.0 5 Man... 2008.10.28 1996
102 변수/스위치 맵에 변수와 스위치 설정하기.. 5 정의로운녀석 2008.07.22 1984
101 기타 Modified Advanced Weather Script VX 1.1 3 file Alkaid 2010.10.08 1967
100 이동 및 탈것 장소이동시 효과 없애기 10 file 허걱 2013.05.05 1963
99 스킬 Grid Inventory 1.0f by Modern Algebra 2 Alkaid 2010.09.05 1960
98 이름입력 Etude87_HG_Hangul_Name_Scene file 습작 2012.06.14 1948
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32