画像を使用して、プレーヤーの位置の周囲に可視範囲イメージを表示する – GALV_VisibilityRange.js

タイトル
Use an image to display a visibility range image around the player's position
作者名
ヘルプ
Galv's Visibility Range
----------------------------------------------------------------------------
This plugin allows you to display a solid colour above a character with an
image cut out in the middle.
The idea is to give the impression of visibility range. This image will
follow the player and can zoom and change opacity by setting the variable
ID's in the plugin config and then using the 'Control Variables' event
command to change them.

NOTE: VARIABLES ARE SET TO 0 BY DEFAULT. YOU WILL NEED TO CHANGE THEM IN
ORDER TO USE THIS FUNCTIONALITY.

The Zoom variable that controls the growing/shrinking works as follows:
Set the variable to the desired ID you will use.
The zoom level is 50% + variable%.
For this example, assuming we set the config to use Variable #1.
When variable #1 is equal or less than 0, the visibility range will be
displayed at 50% of it's normal size. This is the smallest size possible.
When variable is set to 50, it will be shown at 100% (50 + 50 = 100).

The opacity variable can be 0 - 255 and controls how transparent the
visibility range is.

The image used for the transparency is taken from:
YourProject/img/system/
And will only appear if the plugin command has created it. The visrange
image will persist across maps, so must be removed on maps you do not want
it to appear on.
This image must have transparency to show the map under it. You can change
the image during game with the plugin command found further below.

Advanced Info:
The top left pixel of the graphic specifies what colour the rest of the
'darkness' will be. The example image uses black with a blurred transparent
circle, the top left black pixel indicates the colour of the rest of the
surrounding.
----------------------------------------------------------------------------
PLUGIN COMMAND
----------------------------------------------------------------------------

VISRANGE imageName set the visrange image to a new image from
/img/system/ folder in your project.
Make sure to have correct capitalization
Use X for imageName to remove vis image

Example:
VISRANGE VisibilityRange2 add visrange using VisibilityRange2 image
VISRANGE X remove visibility range

----------------------------------------------------------------------------
SCRIPT
----------------------------------------------------------------------------

$gameSystem.galvVis returns the image name of the current vis range.
パラメータ
param Zoom Variable
desc In-Game variable ID used for zooming the visibility range in and out.
default 0

param Opacity Variable
desc In-Game variable ID used for opacity of the visibility range image.
default 0

param Z Position
desc The layer the visibility image displays at. Lower if it appears above objects you dont want it to.
default 10

ライセンス表記
Terms of Use
https://galvs-scripts.com/terms-of-use/

紹介ページ https://galvs-scripts.com/category/rmmv-plugins/mv-audiovisual-effects/#post-1614