XP 스크립트

http://www.dubealex.com/asylum/index.php?showtopic=10436
Final Fantasy Tactice Advance의 퀘스트 시스템과 유사합니다. 퀘스트 관련은 Missions.rxdata에 지정됩니다. 스크립트와 사용법은 데모를 참조하세요.




Instructions:
- Setting Up Rewards/Penalties

the format for these parameters is a hash setup like this
{type => parameter, type => parameter, ...}
where type is
'gold' for gold and parameter is the amount of gold to gain/lose
'items' are the items gained/lost parameter is an array of item_ids
'weapons' are the weapons gained/lost parameter is an array of item_ids
'armors' are the armors gained/lost parameter is an array of item_ids
alternatively if type is the name of a mission skill then parameter is the amount of exp to gain/lose in that skill

so from all of this If this was sent
{'gold' => 350, 'items' => [1,2,3], 'weapons' => 3, 'combat' => 100}
The player will lose or gain 350 gold, item ids 1, 2, and 3, weapon id 3, and 100 exp in the skill of combat


- Setting up Mission Skills (Adding/Deleting)

Located in the Script-x Data Structure located near the bottom is class Mission_Skill, just change/add/delete the attr_reader and the instance variables declared in the initialize method to get what you want


- Customizing

Located in the Script-x Constants/Windows is the list of Constants that affect how the script-x is ran what they do is self explanatory, but if not that's why those lines have been commented


- Calling the script-x

If you want the Mission shop just type using a call script-x event command
$scene = Scene_Mission.new(area)
where area is the mission area (affects which missions are shown if you defined it)

If you don't want the Mission shop just type
$game_party.missions.push(id)
where id is the id of the mission

Mission completion/failure
$game_missions[id].completed = true
$game_missions[id].failed = true

where id is the id of the mission

Giving Out Rewards
$game_missions[id].give_reward
$game_missions[id].give_failure

where id is the id of the mission be sure to place a wait count
before calling these lines
Comment '3'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6189
621 온라인 멀티넷 스크립트 수정본 (약간 한글화) 7 백호 2009.02.22 2315
620 HUD 머리위에 직업명을 표시해줍니다... 9 file 제로스S2 2009.08.03 2466
619 타이틀/게임오버 맵화면을 타이틀에 표시 백호 2009.02.21 1648
618 기타 맵처리를 가볍게 1 백호 2009.02.21 1147
617 HUD 맵이름표시 ps인간 2009.01.23 3441
616 HUD 맵이름표시 6 캉쿤 2011.09.14 2385
615 HUD 맵이름스크립트 52 file 이안 2010.01.17 3554
614 HUD 맵이름 스크립트 1 file 긔염둥이♥ 2012.05.19 2915
613 HUD 맵이름 넣기(bs님의 강의랑 다르게 스크립트로) 16 file 아방스 2007.11.09 2982
612 맵/타일 맵연결 스크립트 (데모첨부) file 게임애호가 2018.06.15 693
611 HUD 맵명을 표시하는 스크립트 한글로 번역한것 백호 2009.02.21 1257
610 HUD 맵 이름을 표시해주는 스크립트입니다. 25 임희성 2011.02.12 2940
609 HUD 맵 이름 표시와 미니맵을 같이하자 8 file 뮤리온。 2011.10.08 4194
608 HUD 맵 이름 표시 스크립트 수정하기 (계속 뜨게 하기, 위치 바꾸기 등) 3 뮤리온。 2011.10.08 2888
607 HUD 맵 이름 표시 by Slipknot@rmxp.net (SDK호환) 2 백호 2009.02.22 1463
606 HUD 맵 이름 뛰우기 10 WMN 2008.03.17 1966
605 기타 맵 이동시 로딩 그림 표시 14 file 백호 2009.02.21 2479
604 전투 맨손 공격력,속성 설정 스크립트 4 file 백호 2009.02.21 1294
603 전투 매턴 자동 회복이나 도트힐 3 file 백호 2009.02.22 1352
602 메시지 말풍선 표시 스크립트 48 file insertend 2010.06.06 5161
Board Pagination Prev 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ... 52 Next
/ 52