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
81 전투 2003식 사이드뷰 적들도 가까이와서 공격함 ㅇㅇ 51 배군 2008.05.02 6750
80 전투 ActBattle 전투 스크립트 13 file 사람이라면? 2010.08.16 5962
79 전투 Actor Battler Graphics 13 아방스 2008.03.07 3065
78 전투 Animated Battlers VX 3.4 by DerVVulfman 5 file Alkaid 2010.09.10 3117
77 전투 Animated Battlers VX 3.5 by DerVVulfman 2 Alkaid 2011.11.02 3101
76 전투 Animated Battlers VX 3.7 by DerVVulfman Alkaid 2012.09.07 2102
75 전투 ATB전투방식.(사이드뷰X 백발의카임전투방식O) 14 file 이피쿤 2009.06.24 9035
74 전투 Crissaegrim ABS 2.0.5 최신 48 file RPGbooster 2008.10.08 8768
73 전투 Etude87_Tankentai_Addon ver.1.0 7 file 습작 2012.06.03 2882
72 전투 Fomars indiviivdual battle 2 Man... 2008.10.28 1340
71 전투 GTBS 1.0 [스크립트] 24 아방스 2009.02.05 6141
70 전투 GTBS 1.5.1.4 - GubiD's Tactical Battle System 10 아방스 2010.12.11 4455
69 전투 GTBS for 2d_iso_x3 by Clarabel 2 습작 2013.05.13 1884
68 전투 GTBS_VX 1.0 택틱컬rpg 14 file RPGbooster 2008.10.08 3352
67 전투 GubiD's Tactical Battle System 1.5.1.4 (RMVX용) 2 Alkaid 2010.09.03 2858
66 전투 KGC]전투형태 오버드라이브(턴알) 13 찌나 2008.03.08 5656
65 전투 ORBS [새로운 전투 방식] 48 file 아방스 2009.03.04 10210
64 전투 ORBS_v1[1].06 전투시스템. 22 file 할렘 2009.02.06 7407
63 전투 PRABS 2.0 액션배틀시스템 58 file RPGbooster 2008.10.08 7575
62 전투 Requiem ABS 8 - 액션 배틀 시스템 8 36 아방스 2009.06.24 8540
Board Pagination Prev 1 2 3 4 5 Next
/ 5