ゲーム中にカスタムアクターの管理プラグイン – HIME_InstanceActors.js

タイトル
- Manage custom actors during the game
作者名
ヘルプ
-------------------------------------------------------------------------------
== Description ==

By default, RPG Maker does not support the creation of new actors during the
game.

When you create your game, you would set up actors in the database, and then
during the game, those actors will be used.

With this plugin, the possibility of creating completely new actors during
the game is open for you.

For example, you could create a mechanic where you capture enemies during
battle, which are converted to actors before they are added to the party.
These actors did not exist when you first created your project, nor do they
exist in other save files.

This plugin provides the functionality for managing custom actors that are
generated at run-time.

== Terms of Use ==

- Free for use in non-commercial projects with credits
- Contact me for commercial use

== Change Log ==

1.1 - Feb 23, 2016
read plugin parameters
1.0 - Jan 23, 2016
initial release

== Usage ==

-- Setup --

In the plugin parameters, choose the "Template Actor ID". This is the
"default" actor that all newly created actors will be based on.

Then set the "Start ID", which represents how the custom actors will be
identified. Once the game starts, you have no way to change these ID's, so
if you are expecting to add more actors to your project, you should take that
into consideration when choosing the the start ID. I would go with something
like 1000 just to be safe.

-- Creating Actors --

To create a new actor, use the script call

var newActor = InstanceManager.addActor()

The game would create a new actor for you, using the template actor as the
base. It would basically be a copy of it with a new ID.

If you wanted to base it on a different template, you can specify that in
the script call like this

var newActor = InstanceManager.addActor( 2 )

Which will use actor 2 as the template.
The actor creation process simply creates an actor. It doesn't automatically
add it to your party, because you might not want to do that.

If you want to add it to your party, you could write

var newActor = InstanceManager.addActor()
$gameParty.addActor(newActor.id)

-- Deleting Actors --

This plugin does not provide support for deleting actors, because that actor
might be in use by other objects. It is safer to simply not use the actor.

-------------------------------------------------------------------------------
パラメータ
title Instance Actors
version 1.1
date Feb 23, 2016
filename HIME_InstanceActors.js
url http://himeworks.com/2016/01/instance-actors/

If you enjoy my work, consider supporting me on Patreon!

https://www.patreon.com/himeworks

If you have any questions or concerns, you can contact me at any of
the following sites:

Main Website: http://himeworks.com
Facebook: https://www.facebook.com/himeworkscom/
Twitter: https://twitter.com/HimeWorks
Youtube: https://www.youtube.com/c/HimeWorks
Tumblr: http://himeworks.tumblr.com/

-------------------------------------------------------------------------------
param Template Actor ID
desc The default actor to base all newly created actors on
default 1

param Start ID
desc The ID that the game should assign to new actors. This cannot be changed
once a game begins, so a larger value is recommended.
default 1000
-------------------------------------------------------------------------------
ライセンス表記
- Free for use in non-commercial projects with credits
- Contact me for commercial use

紹介ページ http://himeworks.com/2016/01/instance-actors/