XP 스크립트

http://www.gamebaker.com/rmxp/scripts/escape-only-items.htm
  도주전용 아이템을 만드는 스크립트입니다.  전투 도중에 연막탄을 던지고 도망치기...


#=============================================================================
# ** SG Escape Only Items
#=============================================================================
# sandgolem
# Version 1
# 22.06.06
#=============================================================================

Scene_Battle::SG_EscapeOnly_Items = [#]
# Place item numbers like this: [1,2,3,4]
# This check only happens at the start of a battle.
# Modify it to use start_phase2 instead of main if you want it every turn.

#=============================================================================
#
# To check for updates or find more scripts, visit:
#      http://www.gamebaker.com/rmxp/scripts/
#
# To use this script, copy it and insert it in a new section above "Main",
# under the default scripts and the SDK if you're using it.
#
# Have problems? You can leave me a message at:
# http://www.gamebaker.com/users/sandgolem
#
#=============================================================================

#--------------------------------------------------------------------------
# * SDK Log Script
#--------------------------------------------------------------------------
begin
  SDK.log("SG Escape Only Items", "sandgolem", 1, "22.06.06")
  if SDK.state("SG Escape Only Items") != true
    @sg_escapeonlyitems_disabled = true
  end
  rescue
end

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if !@sg_escapeonlyitems_disabled

class Scene_Battle
  alias sandgolem_escapeitems_battle_main main
  def main
    for i in 0...SG_EscapeOnly_Items.size
      sg_temp = $data_items[SG_EscapeOnly_Items[i]].occasion
      if $game_temp.battle_can_escape
        if sg_temp == 0 or sg_temp == 2
          $data_items[SG_EscapeOnly_Items[i]].occasion = 0
        else
          $data_items[SG_EscapeOnly_Items[i]].occasion = 1
        end
      else
        if sg_temp == 0 or sg_temp == 2
          $data_items[SG_EscapeOnly_Items[i]].occasion = 2
        else
          $data_items[SG_EscapeOnly_Items[i]].occasion = 3
        end
      end
    end
    sandgolem_escapeitems_battle_main
  end
end

#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end


**도주전용 아이템은
Scene_Battle::SG_EscapeOnly_Items = [(아이템ID)]

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
61 타이틀/게임오버 타이틀 화면 커스터마이즈 (타이틀 메뉴 바꾸는 스크립트) 9 file №1 2012.08.04 4392
60 메뉴 메뉴를 바꾸는 스크립트 14 №1 2012.08.04 4214
59 전투 Minkoff's Animated Battlers - Enhanced 13.8 by DerVVulfman 1 Alkaid 2012.08.26 1832
58 스킬 Miriam's Handicrafts! 1.3 by DerVVulfman Alkaid 2012.08.26 1207
57 그래픽 Composite Window Skins by PK8 (XP/VX/VXA) Alkaid 2012.08.26 1563
56 전투 Mr.Mo's ABS Ultimate 7.0 by DerVVulfman 4 Alkaid 2012.08.26 2587
55 전투 Etude87_Custom_Slip_Damage_XP ver.1.0 5 습작 2012.08.26 1857
54 그래픽 Event Transparency by DerVVulfman (XP/VX/VXA) Alkaid 2012.09.01 1488
53 그래픽 Pictures below Characters by PK8 (XP/VXA) Alkaid 2012.09.07 1643
52 메뉴 Leidy's Ring Command Window 1.2 by DerVVulfman Alkaid 2012.09.09 1433
51 장비 Auto Equipment Optimization for Guillaume777's Multi Slot Script by DerVVulfman Alkaid 2012.09.09 1498
50 맵/타일 Editor Tiles by PK8 (XP/VX/VXA) Alkaid 2012.09.11 1868
49 그래픽 부드럽게 화면이 움직이는 스크립트 입니다. 16 GangSin 2012.09.12 4594
48 변수/스위치 The Self Data Suite by PK8 (XP/VX/VXA) Alkaid 2012.09.14 1237
47 변수/스위치 Initial Switches and Variables by PK8 (XP/VX/VXA) Alkaid 2012.09.14 1298
46 변수/스위치 Switchless Common Events by PK8(XP/VX/VXA) Alkaid 2012.09.15 1202
45 스킬 Trickster's Bag of Skill Effects (SDK 필요) Alkaid 2012.09.17 1291
44 전투 Trickster씨의 전투 시스템 (SDK 필수?) Alkaid 2012.09.18 3261
43 오디오 Audio Module Rewrite mciSendString 1.1 by DerVVulfman Alkaid 2012.09.18 1371
42 그래픽 WhiteFlute - BitmapEX 4 file JACKY 2012.12.10 2955
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52