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 6153
61 오디오 Audio Module Rewrite mciSendString 1.1 by DerVVulfman Alkaid 2012.09.18 1367
60 기타 ATS-Advanced Time System 1 file 백호 2009.02.21 964
59 전투 ATB전투 형식 스크랩트 [ 어디서 퍼왔는..] 7 WMN 2008.03.17 2545
58 전투 ATB전투 5 백호 2009.02.22 3369
57 전투 ATB시스템 입니다. [스샷 첨부] 17 백호 2009.02.22 4182
56 저장 ASM - Advanced Save Menu 3 file 백호 2009.02.21 1639
55 기타 appletree님 요청) 화면 명암 주기 3 file 뮤바보 2013.01.31 2724
54 메뉴 AP 올리기 8 알피지GM 2010.02.15 1490
53 기타 Anti Event Lag Script 3 백호 2009.02.21 1057
52 메시지 Animated Window Skin by Tana 1 백호 2009.02.22 1338
51 장비 Angie's Equipment Sets 2.3 by DerVVulfman 7 Alkaid 2010.12.31 1869
50 기타 AMS___Advanced_Message_Script 1 file 백호 2009.02.22 889
49 기타 AMS-Advanced Message Script Edited by Dubleax 3 file 백호 2009.02.21 765
48 키입력 Aleworks Input Module 1.21 by vgvgf (SDK호환) 8 WMN 2008.04.06 2145
47 키입력 AInput Module 3.10 by vgvgf (전체키, 마우스 입력) 6 file Alkaid 2010.09.01 3029
46 기타 Advanced Weather System (AWS) 3 file 백호 2009.02.22 1272
45 상점 Advanced Shop System by Alexis Hiemis 1 file Alkaid 2010.10.08 1872
44 저장 Advanced Save System Edit (현재 맵을 보여주지 않음) file 백호 2009.02.22 1557
43 저장 Advanced Save Menu 편집한 것. (SDK2용) Alkaid 2010.09.11 1219
42 저장 Advanced Save Menu 편집 20101006 Edition (SDK2용) 1 Alkaid 2010.10.06 1217
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