クエストを追跡し、それらを完了したプレイヤーに賞を授与するプラグイン – MrTS_QuestLog.js

タイトル
Tracks quests, awards players for completing them.
作者名
ヘルプ
--------------------------------------------------------------------------------
Terms of Use
--------------------------------------------------------------------------------
Don't remove the header or claim that you wrote this plugin.
Credit Mr. Trivel if using this plugin in your project.
Free for commercial and non-commercial projects.
--------------------------------------------------------------------------------
Version 1.0a
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
How to Set Up Quests
--------------------------------------------------------------------------------
Create a new file in Data folder:
Quests.json

Quests file will hold data regarding quests. I highly recommend checking sample
that file that is located in the demo of this plugin
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Quests.json
--------------------------------------------------------------------------------
Quest object looks like this:
{
"ID": 1337,
"Name": "Tutorial Island 1",
"IconID": 83,
"Description": "The island on a tutorial or the tutorial on an island.",
"Rewards": [Reward Object,
Reward Object,
Reward Object,
...],
"Steps": ["This is step 1",
"This shall be step II",
"And this is not the last step.",
...]
}

You can use special characters in Steps text, just add extra backslash.
E.g. "Collect rare weapons - \\V[20] from 100"

Reward object looks like this:
{
"Type": "weapon"
"ID": 99999,
"Amount": 99
"Text": "Text for text reward type"
}
Type being "weapon", "armor", "item", "gold", "exp", "text"
"gold", "exp" and "text" types don't need "ID".
If ID is specified for exp, actor of that ID will get the exp.


File itself should look like this:
[
null,
Quest Object,
Quest Object,
...
Quest Object
]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Plugin Commands
--------------------------------------------------------------------------------
QuestLog Start ID - Starts quest
QuestLog Advance ID - Advances quest by a single step
QuestLog SetStep ID STEP - Sets quest to a specific step
QuestLog Finish ID - Finishes quest and gives rewards
QuestLog Fail ID - Fails a quest
QuestLog Enter - Enters quest log scene
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Script Calls
--------------------------------------------------------------------------------
$gameSystem.getQuestStep(id) - returns step number of a quest
$gameSystem.isQuestStarted(id) - returns true/false is quest started
$gameSystem.isQuestFinished(id) - returns true/false is quest finished
$gameSystem.isQuestFailed(id) - returns true/false is quest failed
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Version History
--------------------------------------------------------------------------------
1.0 - Release
1.0a - Window size bug fix.
パラメータ
param --Icons--
default

param All Quests Icon
desc Icon ID for all quests tab.
Default: 93
default 93

param Ongoing Quests Icon
desc Icon ID for ongoing quests.
Default: 92
default 92

param Completed Quests Icon
desc Icon ID for completed quests tab.
Default: 90
default 90

param Failed Quests Icon
desc Icon ID for failed quests tab.
Default: 91
default 91

param Gold Icon
desc Icon ID for gold rewards.
Default: 313
default 313

param --Text--
default

param Description Text
desc Description text.
Default: Description
default Description

param Objective Text
desc Current Objective text.
Default: Current Objective
default Current Objective

param Rewards Text
desc Rewards Text
Default: Rewards
default Rewards

param Quest Log Text
desc Quest Log Text in menu.
Default: Quest Log
default Quest Log

param No Objective Text
desc Text to show in objectives when quest failed or finished.
Default: - No Objectives
default - No Objectives

param --Colors--
default
param Started Color
desc Started quest color.
Default: #FFFFFF
default #FFFFFF

param Completed Color
desc Completed quest color.
Default: #11FF11
default #11FF11

param Failed Color
desc Failed quest color.
Default: #FF1111
default #FF1111

param --Windows--
default

param Quest Log Menu
desc Is Quest log accessible from menu? True/False
Default: True
default True

param Quest Category X
desc X Position of Quest Category Window
Default: Graphics.boxWidth/2 - 816/2
default Graphics.boxWidth/2 - 816/2

param Quest Category Y
desc Y Position of Quest Category Window
Default: Graphics.boxHeight/2 - 624/2
default Graphics.boxHeight/2 - 624/2

param Quest Category Width
desc Quest Category Window's Width
Default: 266
default 266

param Quest Category Height
desc Quest Category Window's Height
Default: 72
default 72

param Quest List X
desc X Position of Quest List
Default: Graphics.boxWidth/2 - 816/2
default Graphics.boxWidth/2 - 816/2

param Quest List Y
desc Y Position of Quest List
Default: Graphics.boxHeight/2 - 624/2 + 72
default Graphics.boxHeight/2 - 624/2 + 72

param Quest List Width
desc Width of Quest List
Default: 266
default 266

param Quest List Height
desc Height of Quest List
Default: 624-72
default 624-72

param Description X
desc X Position of Description window.
Default: Graphics.boxWidth/2 - 816/2 + 266
default Graphics.boxWidth/2 - 816/2 + 266

param Description Y
desc Y Position of Description window.
Default: Graphics.boxHeight/2 - 624/2
default Graphics.boxHeight/2 - 624/2

param Description Width
desc Description window Width.
Default: 816-266
default 816-266

param Description Height
desc Description window Height.
Default: 624
default 624

ライセンス表記
Free for commercial and non-commercial projects.

紹介ページ https://github.com/Trivel/RMMV/blob/master/MrTS_QuestLog.js