Date: Feb 21, 2020
Script Name:
Author: Harosata/Dramatic Lightning Co
Introduction:
This script will allow an event to "borrow" a party member (usually the leader). Using the script calls will turn on/off the D self-switch for that event.
Update:
Feb 22 - Added more functions. You can remove first or last follower. You can also see if event holds an actor, if any actor is missing on current/any map, and retrieving actors from current/any map.
How to Use:
1. Use the
party_steal(state_id = 0, actor_id = 0) in your Event's script call to take away your party member. By default, your leader will be captured, but you can add a "display state" and you can take away a specific actor instead.
2. Use the
party_return(state_id = 0) to return an actor to your party. The display state will be removed, but you can also add a new state upon their release. This does nothing if the event hasn't captured a party member. You can also use Add Party Member with similar results.
3. Use the
party_relocate(actor_id, state_id = -1) to transfer the party member from one event to another. You can set the state_id to replace (or 0 to erase) the display state. This does nothing if the actor is not in another event.
4. Comment
<ActorReplace> inside that event's page and the event can look like your borrowed party member. If you have a graphic-change script, it makes the state_ids above have more worth.
Additional:
-You can also script call
$game_map.events[id].party_***** should you feel like certain events on the map can use this.
-You should be able to use a follower-touch script like Himework's Follower Touch Event to have the event take your followers instead.
Terms and Credit:
Free to use, nice to credit.
Ruby:
Examples:
The classic "leave your party behind to watch" trick.
本贴来自国际rpgmaker官方论坛作者:Harosata处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/party-stealer.118462/