MV + MZ Take control and play as any event! Make other events react based on who
You can take control of any event with a few script calls!https://www.youtube.com/embed/wBSsXwp2wQY
Put the following code in the event you want to control.
Code:
this.character(0)._characterName!=$gameParty.leader()._characterName
Code:
Code:
var e =this.character(0);$gamePlayer.swap(e);$gamePlayer.setImage(e._characterName,e._characterIndex);e.setImage($gameParty.leader()._characterName,$gameParty.leader()._characterIndex);
Code:
var e =this.character(0);$gamePlayer.swap(e);$gamePlayer.setImage(e._characterName,e._characterIndex);e.setImage($gameVariables.value(63),$gameVariables.value(63));
Change 63 to your variable number if not using 63
Code:
$gamePlayer.characterName()=="2k3_Animal"//change to your event's filename
Note: If you want to control an event other than the one you talk to, change the 0 in all the this.character(0) instances to the event number!
本贴来自国际rpgmaker官方论坛作者:AquaEcho处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/mv-mz-take-control-and-play-as-any-event-make-other-events-react-based-on-who-you-control-no-plugin-required.174863/
页:
[1]