XP 스크립트




적에게 대데미지를 주어 사용자가 전투 불능이 되는 스킬입니다.
자신을 희생해 아군을 소생…등도 가능합니다.


#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
#_/  ◆自爆スキル - KGC_CrashSkill◆
#_/----------------------------------------------------------------------------
#_/ 自爆スキル(使用後に戦闘不能となるスキル)を作成します。
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

$imported = {} if $imported == nil
$imported["CrashSkill"] = true

if $game_special_elements == nil
  $game_special_elements = {}
  $data_system = load_data("Data/System.rxdata")
end
# 自爆属性
$game_special_elements["crash_skill"] = $data_system.elements.index("自爆")

#==============================================================================
# ■ Scene_Battle (分割定義 4)
#==============================================================================

class Scene_Battle
  #--------------------------------------------------------------------------
  # ● フレーム更新 (メインフェーズ ステップ 4 : 対象側アニメーション)
  #--------------------------------------------------------------------------
  alias update_phase4_step4_KGC_CrashSkill update_phase4_step4
  def update_phase4_step4
    # 元の処理を実行
    update_phase4_step4_KGC_CrashSkill

    # 自爆スキルを発動した場合
    if @active_battler.current_action.kind == 1 &&
        $data_skills[@active_battler.current_action.skill_id].element_set.include?($game_special_elements["crash_skill"])
      # 使用者のHPを 0 にする
      @active_battler.hp = 0
    end
  end
end


스크립트를 도입하면, 속성[자폭]을 만들어, 스킬에 세트 합니다.
이것으로, 사용자가 전투 불능이 되는 스킬을 만들 수 있습니다.

Who's 백호

?

이상혁입니다.

http://elab.kr

Atachment
첨부 '1'
Comment '4'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
701 전투 SG_Batte Retry ver.4 by sandgolem 2 백호 2009.02.22 1460
700 저장 SG_Broken Save File Fix by sandgolem (SDK호환) 1 백호 2009.02.22 1068
699 기타 SG_Call Script Fix by sandgolem (SDK호환) 백호 2009.02.22 804
698 아이템 SG_Escape Only Items by sandgolem (SDK호환) 백호 2009.02.22 850
697 스킬 SG_Escape Only Skills by sandgolem (SDK호환) 백호 2009.02.22 753
696 변수/스위치 SG_Gold Window Variables v2 by sandgolem (SDK호환) 백호 2009.02.22 899
695 아이템 SG_Hide free item cose by sandgolem (SDK호환) 백호 2009.02.22 935
694 메뉴 SG_Hide zero SP cost by sandgolem (SDK호환) 백호 2009.02.22 1066
693 아이템 SG_Item Break by sandgolem (SDK호환) 백호 2009.02.22 898
692 맵/타일 SG_Map Pause ver.1 by sandgolem 2 백호 2009.02.22 1290
691 기타 SG_Multiple Currencies v3 by sandgolem (SDK호환) 백호 2009.02.22 803
690 변수/스위치 SG_Self Variables by sandgolem 백호 2009.02.22 1275
689 기타 SG_Settings Control by sandgolem 백호 2009.02.22 884
688 스킬 SG_Skill Break by sandgolem (SDK호환) 백호 2009.02.22 772
687 스킬 SG_Skill Invoking Battle Items by sandgolem (SDK호환) 백호 2009.02.22 894
686 상태/속성 SG_State Immunity Message by sandgolem (SDK 호환) 백호 2009.02.22 1057
685 기타 SG_Transfer Player Music Fix v2 by sandgolem (SDK호환) 1 백호 2009.02.22 824
684 이동 및 탈것 SG_Wait for Move Completion Fix by sandgolem (SDK호환) 백호 2009.02.22 860
683 기타 SG_Window Control v2 by sandgolem 백호 2009.02.22 823
682 기타 Shift Puzzles by SephirothSpawn (SDK호환) 1 file 백호 2009.02.22 1390
Board Pagination Prev 1 ... 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ... 52 Next
/ 52