VX 스크립트

Version: 1.0
Author: Cmpsr2000
Release Date: September 10, 2008

Introduction
This script allows for the definition of Ammunitions and weapons that can consume them.


Features
  • Create an unlimited number of ammo "types."
  • Fire more than one type of ammo per weapon.
  • Deplete ammunition with skills as well as attacking.
  • Limit the amount of ammo equipable for each weapon (clip size)
  • Reload ammo automatically or by using a skill.


 


Customization
General customization:
#-------------------------------------------------------------------------------
#
# This script allows for the definition of Ammunitions and weapons that can
# consume them. To build an ammunition type, first add the name to the Ammo
# Vocab entry in the redefinitions section of the script.
#
# To declare a weapon in the database as an ammunition:
# Include the name of the ammo type surrounded by <> in the notes field.
# for example: <arrow>
#
# To declare a weapon that consumes ammunition:
# Include the term uses: followed by the ammo type surrounded by <> in the
# notes field. for example: <uses:arrow>
#
# NOTE: Weapons can use more than one type of ammo! Include multiple tags
# for each ammo type you wish to be equipable.
# For example: <uses:bullet> <uses:grenade>
#
# To restrict the maximum equipable ammo for a weapon:
# Include the max: attribute in the uses tag followed by the amount.
# For example: <uses:bullet max:30>
#
# NOTE: If you include max: for one ammo type on a weapon, you must include
# it for ALL ammo types for that weapon!
#
# To reload ammunition when using ammo-restricted weapons:
# Include the reload tag in the notes of the skill.
# For example: <reloads>
#
# To use ammo with skills:
# Include the spendsAmmo tag followed by the amount to spend in the notes
# field of the skill.
# For example: <spendsAmmo:3>
#
#-------------------------------------------------------------------------------

In Redefinitions::

Set ammo type names and the generic ammo term here:
또 시작
module Vocab
#-----------------------------------------------------------------------------
# You can define the names of your ammo types here. These are the terms used
# in the notes field to delcare items as part of the system
#-----------------------------------------------------------------------------
Ammo = [ #Ammo1 Name
"Arrow",

#Ammo2 Name
"Bullet",

#Ammo3 Name
"Grenade"
]
AmmoGeneric = "Ammo"
end
또!
To add your own damage calculations for ranged weapons:
또 시작!
#-----------------------------------------------------------------------------
# includes the calculations for weapons that use ammunition
#-----------------------------------------------------------------------------
def hit
if two_swords_style
n1 = weapons[0] == nil ? 95 : weapons[0].hit
n2 = weapons[1] == nil ? 95 : weapons[1].hit
n = [n1, n2].min
elsif weapons[0] != nil and weapons[0].usesAmmo?
n1 = weapons[0].hit
n2 = weapons[1] == nil ? 95 : weapons[1].hit
case $game_ammo.hitRateCalcType
when 0 #addative
n = n1 + n2
when 1 # average (rounds up)
n = ((n1 + n2).to_f / 2).ceil
when 2 #average (rounds down)
n = (n1+ n2) / 2
when 3 #min
n = [n1, n2].min
when 4 #max
n = [n1, n2].max
#-------------------------------------------------------------------------
# scripters can add their own damage calulation for ranged weapons here
# by adding additional "when" statements to the case
#-------------------------------------------------------------------------
end
else
n = weapons[0] == nil ? 95 : weapons[0].hit
end
return n
end

In Game_Ammo:

Select which damage formula to use:


 #---------------------------------------------------------------------------
# set the type of hit calculation for ammos here
# 0: Addative (weapon dmg + ammo dmg)
# 1: Average (rounds up)
# 2: Average (rounds down)
# 3: Min
# 4: Max
#---------------------------------------------------------------------------
@hitRateCalcType = 0

Set auto-reloading behaviors:

#---------------------------------------------------------------------------
# Set this to true if you would like the characters to automatically
# reload their weapons when they expend equiped ammunition.
#---------------------------------------------------------------------------
@autoReload = false
and
 #---------------------------------------------------------------------------
# Set this to true to enable the system to search for the first available
# equipable ammo. Set to false to disable this capability.
#---------------------------------------------------------------------------
@allowBlindReload = true

Comment '2'
  • ?
    찌그만앙마 2008.12.03 01:31
    내용을 보니 탄약을 소비하는 무기에 대한 스크립트이네요.
    무한총알, 한 무기에 따라 여러 타입의 총알 사용, 스킬에 따라 데미지도 오르고, 스킬 또는 자동으로 탄약 충전..등등.. 뭐 이런 내용이네요.
  • ?
    EuclidE 2010.05.03 19:12

    문제는 안된다는거


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
437 상태/속성 상태 메뉴 변경 스크립트 45 죄송해욧! 2008.03.01 4284
436 상점 상점의 자세한 표시 32 file RPGbooster 2008.10.11 4008
435 상점 상점을 색다르게 바꿔주는 스크립트 34 file 할렘 2009.02.02 6301
434 상점 상점에서 아이템 분류 5 file 파이어 2011.01.23 3510
433 상점 상점 할인 스크립트(변수를 이용한 물건 가격 조정) 9 달표범 2009.09.04 3185
432 상점 상점 아이템 목록 정리 14 정의로운녀석 2008.07.22 3771
431 상점 상점 무기, 방어구 능력치 비교 스크립트! 18 불독 2008.12.25 3611
430 기타 사이드뷰배틀에서 찌르기 공격 가능하게(Upgrade!) 6 078656577er 2009.10.15 2838
429 전투 사이드뷰배틀에서 찌르기 공격 가능하게 7 078656577er 2009.09.16 3223
428 전투 사이드뷰배틀에서 시각적으로 위치 지정하기 9 file 078656577er 2009.10.14 4910
427 전투 사이드뷰배틀3.3 + ATB1.1 스크립트. 65 할렘 2009.02.01 10946
426 전투 사이드뷰 애드온 7 비극ㆍ 2010.08.21 6758
425 전투 사이드뷰 스크립트 [2003 전투 방식] 39 아방스 2008.03.09 8406
424 전투 사이드 뷰 시스템 [시트르산님 제공] 56 아방스 2010.11.29 7499
423 오디오 사운드테스트 스크립트 13 file 카르와푸딩의아틀리에 2009.08.19 2106
422 오디오 사운드 자동 변환 설정 rukan 2009.07.01 1461
421 빠른 스킬사용 6 file RPGbooster 2008.10.08 2814
420 기타 빛 이펙트 71 file DEVIL<Li Patanis Roni Kraudus> 2008.06.06 5861
419 기타 블록 미니게임 11 file 사람이라면? 2010.08.15 2269
418 기타 블랙잭, 룰렛, 포커 스크립트 종합 9 file 도심 2010.08.22 2643
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32