XP 스크립트

캐릭터별, 또는 클래스별로 전투명령을 부여할 수 있는 스크립트입니다.  스크립트와 작동은 첨부된 데모를 참조하세요.  SDK용과 비SDK용이 있고, 사용할 전투명령은 BattleCommands.rxdata란 이름의 파일을 만들어 거기서 정의하면 됩니다(아래는 예제):

#This text is not parsed by the script
#Remember Here Are the Default Values
#
#id Must be declared
#name Must be declared
#name_set {}
#kind Must be declared
#type 0
#rating 10
#icon_name nil
#color [normal_color, disabled_color]
#skill_id nil
#common_event nil
#ammo [false, false]
#ammo_heal nil
#ammo_inc nil *NOT IMPLEMENTED*
#level nil *NOT IMPLEMENTED*
#exp_to_next nil *NOT IMPLEMENTED*
#weapon_ids nil
#armor_ids nil
#skill_set nil
#skills nil
#class_level nil
#actor_level nil
#description nil
#special_cond false
#hidden false
#parameters {} *BAG OF BATTLE COMMANDS* *NOT IMPLEMENTED*
#skill_parameters {} *BAG OF BATTLE COMMANDS*
#item_parameters {} *BAG OF BATTLE COMMANDS*
#actor_parameters {} *BAG OF BATTLE COMMANDS*
#enemy_parameters {} *BAG OF BATTLE COMMANDS* *NOT IMPLEMENTED*
#script nil
#next_method phase3_next_actor
#
#
# The command's id
#
# The command's name
# Do not enclose the name in " "
#
# The command's other names
# How you define the names determines the priority of the name chosen
# example
# {'actor' => {1 => 'Smile', 2 => 'Frown'},'class' => {1 => 'Anger'}}
# Now here are the heros
# Actor id 1 class 1 resulting name Smile
# Actor id 2 class 1 resulting name Frown
# Actor id 1 class 2 resulting name Anger
# Actor id 3 class 1 resulting name Anger
# Actor id 3 class 4 resulting name Default Name
# Actor id 2 class 2 Resulting name Frown
#
# parameters can include actor, class, weapon, shield, helmet, body, accessory, and level
#
# The command's kind
# note set to three if a command links to a skill or a skill_set
#
# The command's type
# see method make_basic_action_result
#
# The command's rating
# higher rated commands will appear on the top
# if the ratings are the same then the id is compared and lower ids have higher priority
#
# The command's icon name
# from Graphics/Icons
#
# The command's color in battle
# Use Color.new(red, green, blue) or Color.new(red, green, blue, alpha)
#
# The command's skill id
# If using you must set the kind to 3
# the skills common event will not be ran
#
# The command's common event
# If using you must set the kind to 3
#
# The on switch for ammo
# set to [true,false, maximum amount] if this command points
# set to [true, true, item id] for the points to depend on an item
# note if you are using an icon The ammo amount will most likely get cut off
#
# How the ammo regains its sp
# ignore this if the points depend on an item choices
# Heal is an Integer + Float where integer is the amount healed and float is the percentage healed
# ex 3.10 heals 10% + 3
# {0 => Heal} Heals float % + int at end of battle or nil for Full Heal after battle
# {1 => Heal} Heal at actor level up
# {2 => [Heal, a, b]} Heals float % + int or nil for full heal at ax+b turns
# {3 => Heal} Heals when Defending
# {4 => Heal} Heals when Doing Nothing
# {5 => Heal} Heals only with the Full Recovery Event Command
#
# The weapon ids
# you can have multiple ids use an array if just one id then you can just put an integer here
#
# The armor ids same as weapon ids
#
# The skill set for use in categorizing the skill list
# for example all fire skills will be skill.element_set.include?(1)
# You may also use this to work for items
#
# The usable skill list see OTHER STUFF section for more stuff on this
#
# The class level set
# must be an array set up like this [class_id,level,class2_id,level2]
#
# The actor level set same as above
#
# The Description of the command as with all words do not enclose in ""
#
# The special condition must be a boolean expression
# for example if you want the Arshes to learn this in battle while he has less than 100 hp
# then the condition will be (actor.id == 1 and actor.hp <= 100)
#
# Hidden
# if the command is hidden set this to true
#
# Parameters
# forget about this now
#
# Skill Parameters
# If you added the addon Bag of battle commands then you may edit its parameters
# You may edit sp_cost, power, atk_f, eva_f, str_f, dex_f, agi_f, int_f, hit
# pdef_f, mdef_f, variance, element_set, and plus(minus)_state_set
# The format is {'parameter' => [plus amount, times amount]}
# Where plus amount is the amount added and times amount is the percentage to add
# for example {'power' => [20, 3], 'sp_cost' => [0, 0.33]}
# would be skills power * 3 + 20 and 1/3 the sp_cost which is pretty nifty
#
# element_set and plus(minus)_state_set work differently
# The format is {'parameter' => [bool, int1, int2,... intn]}
# if bool is true then the whole set is replaced if false then add to the set
# int1-intn are values of ids to put/add to the parameter
# for example {'element_set' => [false, 1]}
# would be add a fire attribute to the skill
#
# Item Parameters
# Same as Skill Parameters except it is for items instead of skills
# You may edit recover_hp(sp)(_rate),hit,pdef_f,mdef_f,variance,e lement_set,
# and plus(minus)_state_set and same format as for the skill parameters
#
# Actor Parameters
# Same as Skill and Item Parameters except it affects the actor using the command
# You many edit str, dex, agi, int, hit, atk, pdef, mdef, eva, and damage
#
# Enemy Parameters
# Not implemented yet but affects the enemy the player is attacking
#
# Script
# Enter a script here separating lines by using a semicolon ( ; )
# you may replace @active_battler with just actor
# example heal 100 sp when using the command is actor.sp += 100; @status_window.refresh
#
# Next Method the next method called after selecting the command
#
#
#
#
#
#
#The Skills Parameter
#You may enter a string an array or a hash here (You must use kind = 3 for these)
#
#Array
#This array contains all of the skill ids the command can use great for if you want certain skills for a command
#
#String
#Example skill.element_set.include?(1) will make the command contain all fire skills
#the string holds a condition that is passed through each skill if true then the skill will be on the list
#
#Hash
#a bit more complicated but alot more powerful
# Integer value case 1 { skill.id => value, skill.id => value}
# in this case value is the minimum level required to use the skill
#
# Array for value case 2 {skill.id => [v1,v2]}
# in this case v1 is the minumum level required to use the skill and v2 is the actor id that can use the skill
#
# String for value case 3 {skill.id => "condition"}
# in this case the string condition is evaluated and if true then the skill can be used for more advanced effects


id 1
name Attack
name_set {'actor' => {2 => 'Hit', 7 => 'Tease', 8 => 'Poke'}}
kind 0
type 0
color [Color.new(0,0,255), Color.new(0,0,255,128)]
rating 10
ammo [true, false, 10]
ammo_heal {2 => [1.1,4,0]}
next_method start_enemy_select

id 2
name Skill
kind 1
rating 20
color [Color.new(128,0,0), Color.new(128,0,0,128)]
ammo [true, true, 2]
ammo_heal {3 => nil}
next_method start_skill_select

id 3
name Defend
kind 0
type 1

id 4
name Item
kind 2
next_method start_item_select

Who's 백호

?

이상혁입니다.

http://elab.kr

Atachment
첨부 '1'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
1021 키입력 한글입력스크립트 16 file 아방스 2007.11.09 11828
1020 온라인 채팅 가능 온라인 스크립트 배포 107 file 아방스 2009.01.03 10685
1019 온라인 RPG 만들기 xp 온라인 스크립트 33 아방스 2007.11.09 9601
1018 맵/타일 [유니크급] RPG XP 게임을 3D화로 보자! Neo Mode7 script / 52 file 쉴더 2009.02.28 9447
1017 온라인 온라인 스크립트 Unis Net RMXP 공식 배포! 25 file 뮤바보 2011.12.25 9403
1016 온라인 광넷[ 광땡 온라인 + 넷플레이 ] 62 - 하늘 - 2009.08.02 9003
1015 전투 [액알]neo_a-rpg_module_1[1][1].2 스크립트 83 file 은빛바람 2009.10.03 8307
1014 이름입력 대화창에 얼굴, 이름 띄우기 37 킬라롯 2008.11.09 7497
1013 온라인 넷플레이1.7.0+abs5.5+한챗 49 쀍뛝쒧 2009.01.24 7289
1012 메뉴 메이플스토리처럼 메뉴를^^ 57 file 딸기님 2010.07.13 7145
1011 메시지 대화창에 얼굴 그래픽 띠우기 73 아방스 2007.11.09 7119
1010 스킬 ABP액알 v1.2 스킬추가, 버그수정판 36 file 백호 2009.02.22 6920
1009 전투 [신기술 체험] 강회된 횡스크롤 액알 13 file 백호 2009.02.22 6841
1008 메뉴 온라인메뉴처럼!! 메이플 메뉴처럼!! 변신~스크립트 33 WMN 2008.03.17 6824
1007 그래픽 화면을 부드럽게 해주는스크립트[ 아주 유용] 56 file - 하늘 - 2009.08.05 6566
1006 온라인 Mr.Metring NPE 1.0 [RPG XP 온라인 스크립트] 35 아방스 2009.01.07 6535
1005 이름입력 케릭터 위에 또는 NPC 위에 이름 뛰우기 [헬악이님 제공] 49 file 아방스 2007.11.09 6414
1004 액터 시트르산의 XP용 감정 말풍선 표시 스크립트 37 file 시트르산 2011.01.25 6114
1003 HUD 주인공,NPC이름 머리 나타내기 49 file 송긔 2010.11.28 6067
1002 전투 액알 스크립트 24 백호 2009.02.22 6017
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52