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 5398
557 스킬 Grid Inventory 1.0f by Modern Algebra 2 Alkaid 2010.09.05 1960
556 전투 GTBS 1.0 [스크립트] 24 아방스 2009.02.05 6141
555 전투 GTBS 1.5.1.4 - GubiD's Tactical Battle System 10 아방스 2010.12.11 4452
554 전투 GTBS for 2d_iso_x3 by Clarabel 2 습작 2013.05.13 1880
553 전투 GTBS_VX 1.0 택틱컬rpg 14 file RPGbooster 2008.10.08 3352
552 맵/타일 GubiD's Isometric Maps for RPG Maker VX 1 Man... 2008.10.28 1681
551 전투 GubiD's Tactical Battle System 1.5.1.4 (RMVX용) 2 Alkaid 2010.09.03 2858
550 메뉴 GuiRPG menu시스템 13 file 할렘 2009.02.07 4849
549 메시지 HG_POP_TEXT (맵 화면에 문자 표시) 4 file 허걱 2011.09.16 3589
548 퀘스트 HG_QUEST_SYSTEM 29 file 허걱 2010.06.18 4130
547 변수/스위치 HG_SelfVariables 셀프 변수 8 file 허걱 2010.11.19 2341
546 기타 HG_SHOOT_ANIMATION 4 file 허걱 2010.11.17 2596
545 변수/스위치 HG_Variables : 변수 확장 시스템 11 file 허걱 2010.06.14 2957
544 스킬 hp소모스킬 31 file DH Games 2010.02.14 3141
543 HUD HUD HP / MP 게이지바 스크립트 29 file 아방스 2009.07.02 5677
542 HUD HUD 스크립트 모음 10 아방스 2010.12.11 3658
541 제작도구 Icon Preview Window by Woratana 8 file 허걱 2009.08.20 2891
540 기타 IEX - Script Library 1.0 by IceDragon 8 Alkaid 2011.01.11 2619
539 아이템 Item Price Changer 7 Man... 2008.10.28 1530
538 Jens009's Critical Flash 1.0 3 Man... 2008.10.27 1240
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