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
21 전투 사이드 뷰 시스템 [시트르산님 제공] 56 아방스 2010.11.29 7499
» 전투 전투후 HP/MP 퍼센테이지(지정) 회복 5 하얀슬픔 2010.12.06 2490
19 전투 GTBS 1.5.1.4 - GubiD's Tactical Battle System 10 아방스 2010.12.11 4450
18 전투 [덮어씌우기]Window_ActorCommand_EX 4 맛난호빵 2011.03.12 2341
17 전투 VX SRPG 스크립트를 살짝 손대봤습니다. 13 아이미르 2011.03.31 3428
16 전투 VX SRPG 스크립트를 수정해봤습니다(8) - 누적수정 30 아이미르 2011.09.09 3911
15 전투 VX SRPG3d(한글번역) 8 file 아이미르 2011.10.15 5033
14 전투 VX SRPG3d 수정본(1) 12 아이미르 2011.10.19 4617
13 전투 Animated Battlers VX 3.5 by DerVVulfman 2 Alkaid 2011.11.02 3097
12 전투 XAS Hero Edition VX 15 Alkaid 2011.12.28 4226
11 전투 XAS Hero Edition VX Manual 번역 1 케이언 2012.01.02 3554
10 전투 Etude87_Tankentai_Addon ver.1.0 7 file 습작 2012.06.03 2878
9 전투 Team_Ilias's_Old_Project_Demo 4 습작 2012.07.11 2099
8 전투 Slip_Damage_Ex - 슬립데미지 확장기능 (상태별 슬립데미지 적용) 7 허걱 2012.07.24 2194
7 전투 Animated Battlers VX 3.7 by DerVVulfman Alkaid 2012.09.07 2098
6 전투 Verus Tempus Proelium by Vlad 습작 2013.05.13 1242
5 전투 Requiem ABS Hero Edition by Falcao 습작 2013.05.13 2004
4 전투 VX_SRPG2 by tomoaky 1 습작 2013.05.13 2050
3 전투 GTBS for 2d_iso_x3 by Clarabel 2 습작 2013.05.13 1879
2 전투 SRPGコンバータ for VX by AD.Bank 습작 2013.05.13 2969
Board Pagination Prev 1 2 3 4 5 Next
/ 5