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
537 키입력 Key Simulator by Fantasist 습작 2013.05.01 1176
536 메뉴 kgc 파라미터 배분 09/07/25 13 시트르산 2010.09.24 2327
535 메뉴 KGC - 커스텀 메뉴 커멘드 (번역) 1 듀란테 2015.07.27 1080
534 기타 KGC counter 스크립트. 반격기 추가스크립트입니다. 4 우켈킁 2011.03.31 1812
533 기타 KGC 리버스 데미지! 28 루시페르 2009.04.13 2979
532 미니맵 KGC 미니 맵 22 file RPGbooster 2008.10.08 4036
531 미니맵 KGC 미니맵 스크립트 (한글번역) 45 file 레오 2009.02.01 6555
530 기타 KGC 스크립트 라이브러리 7 훈덕 2009.05.31 2611
529 장비 KGC 확장 장비 화면 2009/02/15 13 시트르산 2010.09.25 3113
528 아이템 KGC]아이템 합성 29 file 찌나 2008.03.08 5123
527 전투 KGC]전투형태 오버드라이브(턴알) 13 찌나 2008.03.08 5656
526 그래픽 KGC_BitmapExtension : 비트맵 클래스 확장 8 file soleone 2010.07.18 3177
525 타이틀/게임오버 KGC_TitleDirection 알기쉽게 설명추가 5 파이어 2011.01.03 2662
524 장비 KGC장비종류 추가 스크립트. 36 file 루시페르 2009.03.28 4674
523 기타 KGC파라미터배분 2 (VX전용) 20 file 카르와푸딩의아틀리에 2009.07.21 3269
522 기타 KGC패시브 스크립트 30 카르와푸딩의아틀리에 2009.10.07 3551
521 장비 KGC확장장비창 스크립트 15 file 티라엘 2009.03.27 3622
520 HUD KH HUD (HP MP 게이지바 스크립트) 41 아방스 2010.12.17 6422
519 Khai's Window Helper 1.4 1 Man... 2008.10.28 1272
518 KID's Luck Systems(무슨 뜻?) 4 Man... 2008.10.27 1378
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