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 전투 VX 사이드 뷰 전투 (2003 방식) 16 드로드맨 2008.02.24 4996
116 깔끔한 링메뉴 45 file RPGbooster 2008.10.08 5000
115 메시지 얼굴표시 9 허걱 2009.09.23 5001
114 타이틀/게임오버 Rafidelis KaHh Box 타이틀화면 20 카르와푸딩의아틀리에 2009.08.23 5004
113 이동 및 탈것 피티원이 따라다니는 스크립트 38 file 아방스 2009.02.05 5024
112 전투 VX SRPG3d(한글번역) 8 file 아이미르 2011.10.15 5036
111 메시지 메시지를 빠르게 넘겨주는 스크립트 3 타카나시 소라 2012.07.23 5038
110 온라인 RPGVX 3D스크립트 11 file 고자몬 2011.07.10 5050
109 메뉴 확장 스테이터스 화면 - KGC 23 file 카르와푸딩의아틀리에 2009.08.19 5057
108 기타 몬스터 리얼한 효과 27 file 사람이라면? 2010.08.16 5074
107 메뉴 rpg 만들기 vx 정보창에 조금더 자세한 정보가 나오게 하는 스크립트 28 아방스 2008.01.25 5079
106 전투 새로운 전투돌입효과 29 file RPGbooster 2008.10.08 5079
105 전투 돌아가는 전투 메뉴 시스템 33 아방스 2008.08.29 5085
104 맵/타일 Final Fantasy IV 모든 완성된맵 47 RPGbooster 2008.10.11 5086
103 움직이는커서 11 file RPGbooster 2008.10.08 5090
102 아이템 편리한 디자인의 아이템메뉴 30 file RPGbooster 2008.10.11 5098
101 아이템 KGC]아이템 합성 29 file 찌나 2008.03.08 5123
100 Tankentai SBS 2.8 업데이트 [사이드뷰 배틀시스템 ] 42 file RPGbooster 2008.10.08 5140
99 VX 주석액알 PR코더즈의ABS보다 않좋다고생각할수있지만 더좋음 34 배군 2008.08.17 5145
98 상점 보관함 스크립트 43 file 허걱 2009.02.02 5161
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