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 5430
81 전투 [RPG VX]기술에 쿨타임을 부여하는 스크립트 3 스리아씨 2013.12.05 2361
80 전투 SRPGコンバータ for VX by AD.Bank 습작 2013.05.13 2978
79 전투 GTBS for 2d_iso_x3 by Clarabel 2 습작 2013.05.13 1886
78 전투 VX_SRPG2 by tomoaky 1 습작 2013.05.13 2055
77 전투 Requiem ABS Hero Edition by Falcao 습작 2013.05.13 2011
76 전투 Verus Tempus Proelium by Vlad 습작 2013.05.13 1248
75 전투 Animated Battlers VX 3.7 by DerVVulfman Alkaid 2012.09.07 2102
74 전투 Slip_Damage_Ex - 슬립데미지 확장기능 (상태별 슬립데미지 적용) 7 허걱 2012.07.24 2199
73 전투 Team_Ilias's_Old_Project_Demo 4 습작 2012.07.11 2102
72 전투 Etude87_Tankentai_Addon ver.1.0 7 file 습작 2012.06.03 2884
71 전투 XAS Hero Edition VX Manual 번역 1 케이언 2012.01.02 3563
70 전투 XAS Hero Edition VX 15 Alkaid 2011.12.28 4234
69 전투 Animated Battlers VX 3.5 by DerVVulfman 2 Alkaid 2011.11.02 3101
68 전투 VX SRPG3d 수정본(1) 12 아이미르 2011.10.19 4620
67 전투 VX SRPG3d(한글번역) 8 file 아이미르 2011.10.15 5040
66 전투 VX SRPG 스크립트를 수정해봤습니다(8) - 누적수정 30 아이미르 2011.09.09 3917
65 전투 VX SRPG 스크립트를 살짝 손대봤습니다. 13 아이미르 2011.03.31 3433
64 전투 [덮어씌우기]Window_ActorCommand_EX 4 맛난호빵 2011.03.12 2349
63 전투 GTBS 1.5.1.4 - GubiD's Tactical Battle System 10 아방스 2010.12.11 4456
» 전투 전투후 HP/MP 퍼센테이지(지정) 회복 5 하얀슬픔 2010.12.06 2495
Board Pagination Prev 1 2 3 4 5 Next
/ 5