(要YEP_QuestJournal.js)アクティブなクエストを表示するために、マップシーンにウィンドウを追加するプラグイン – YEP_X_MapQuestWindow.js

タイトル
(Requires YEP_QuestJournal.js) Adds a window on themap scene to display an active quest.
作者名
ヘルプ
============================================================================
Introduction
============================================================================

This plugin requires YEP_QuestJournal. Make sure this plugin is located
under YEP_QuestJournal in the plugin list.

This plugin adds a new window to the map scene: a Quest Window to display
whatever quest is currently active and its unfinished objectives. This way,
the player can conveniently look at the needed quest objectives that are
needed to be completed. The player can also set or clear the currently
active quest from the Quest Journal System menu.

============================================================================
Instructions - Setting Up the Active Map Quest Window
============================================================================

The plugin parameter 'Window Settings' can also be left alone by default,
but should you wish to alter it to fit your game's settings, here's what you
need to know.

---

Word Wrap Objectives
- For those with YEP_MessageCore.js installed, you can set whether or not
you want the objectives to be word wrapped. Enabling this would set quest
objectives to become word wrapped and disabling it would not.

Default Show
- This will determine if you want this window to appear by default or not.
This will have no bearing on the player's Options menu command, but it will
allow you to disable the Active Map Quest Window from the mechanical-driven
side of the game.

---

Window Settings
- If you wish to customize the category window, you can adjust the various
settings here to adjust its properties. However, keep in mind that unless
you are familiar with JavaScript, you can make errors here that can make the
windows not work in your game.

X: Graphics.boxWidth - width
Y: 0
Scale: 0.50
Width: Graphics.boxWidth / 3
Line Height: 36
Font Face: GameFont
Font Size: 28
Standard Padding: 18
Text Padding: 6
Standard Opacity: 255
Back Opacity: 192
Window Skin: Window

============================================================================
Plugin Commands
============================================================================

You can use the following plugin commands to change the behavior of the
Map Quest Window.

Plugin Commands:

SetActiveQuest x
- Sets the active quest to x.

RefreshActiveQuestWindow
- Refreshes the map quest window.

ShowActiveQuestWindow
HideActiveQuestWindow
- Changes the Active Map Quest Window to be visible/hidden. This will not
override the player's Options Menu's setting to hide the window.

============================================================================
Options Core Settings - Adding the New Options
============================================================================

If you are using YEP_OptionsCore.js, you can add a new Option using this
plugin. Here's the following code/parameter settings you can use with it.

---------
Settings:
---------

Name:
\i[87]Quest Window

Help Description:
Show a window displaying the currently active
quest on the screen while exploring.

Symbol:
mapQuestWindow

Show/Hide:
show = Imported.YEP_X_MapQuestWindow;

Enable:
enabled = true;

Ext:
ext = 0;

----------
Functions:
----------

Make Option Code:
this.addCommand(name, symbol, enabled, ext);

Draw Option Code:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
this.drawOptionsOnOff(index);

Process OK Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);

Cursor Right Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, true);

Cursor Left Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, false);

Default Config Code:
Empty. Provided by this plugin.

Save Config Code:
Empty. Provided by this plugin.

Load Config Code:
Empty. Provided by this plugin.

============================================================================
Changelog
============================================================================

Version 1.01:
- Compatibility update for YEP_OptionsCore.js.

Version 1.00:
- Finished Plugin!

============================================================================
End of Helpfile
============================================================================

パラメータ
param ---Main---
default
param Window Settings
parent ---Main---
type struct<WindowSettings>
desc Adjust the properties for the map quest window here.
default {"---General---":"","Word Wrap Objectives":"true","Default Show":"true","---Window Settings---":"","X":"Graphics.boxWidth - width","Y":"0","Scale":"0.50","Width":"Graphics.boxWidth / 3","Line Height":"36","Font Face":"GameFont","Font Size":"28","Standard Padding":"18","Text Padding":"6","Standard Opacity":"255","Back Opacity":"192","Window Skin":"Window"}

param Set Active
parent ---Main---
desc Vocabulary used for the 'Set Active' option.
You can use text codes.
default \i[189]Set Active

param Currently Active
parent ---Main---
desc Vocabulary used for the 'Currently Active' option.
You can use text codes.
default \i[189]Currently Active

param Clear Active
parent ---Main---
desc Vocabulary used for the 'Clear Active' option.
You can use text codes.
default \i[186]Clear Active

param ---Options---
default
param Options Command
parent ---Options---
desc Options command for Active Quest Window.
default Active Quest Window

param Options Enable
parent ---Options---
type boolean
on Show
off Hide
desc Default options command option for Active Quest Window.
default true

param ---Automatic Updates---
default
param Quest Add
parent ---Automatic Updates---
type boolean
on YES
off NO
desc Update quest window when adding a new quest? This will set
the newest active quest to what was just added.
default true

param Quest Complete
parent ---Automatic Updates---
type boolean
on YES
off NO
desc If currently active quest is completed, the window will
set next available uncompleted quest.
default true

param Quest Failed
parent ---Automatic Updates---
type boolean
on YES
off NO
desc If currently active quest is failed, the window will
set next available uncompleted quest.
default true

param Change Objectives
parent ---Automatic Updates---
type boolean
on YES
off NO
desc Update window when quest objectives have been changed.
default true

param Event Update
parent ---Automatic Updates---
type boolean
on YES
off NO
desc Update window when switches, variables, party members,
and/or items, weapons, or armors change.
default true

ライセンス表記

紹介ページ http://yanfly.moe/