じ☆ve冰风 发表于 3 天前

Start an Event with different page

idk if someone already made this and on the right forums

There might be a condition where you want to run an event but instead of latest page, you run on specific page
The first and last one show messages in the last content,



The 2nd page show animation blackhole




Normal behavior run the latest like this




To run specific page, it can be done by using Yanfly plugin or using script

for script it should be like this

                JavaScript:       
$gameMap.event(1)._pageIndex = 1;$gameMap.event(1).start();


Note: Index start from 0

The result should be like this (Running page 2)




Note that changing _pageIndex it will stuck on specific number you input. To revert it, simply use .refresh() like this
$gameMap.event(1).refresh()

Also, transfer to other map and return back it will revert to default settings

Edit: I test it with autorun, like this




While calling event id 8




The result is showing message from event id 7 until the event completely stops, and then run event id 8


本贴来自国际rpgmaker官方论坛作者:Vyndicate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/start-an-event-with-different-page.176732/
页: [1]
查看完整版本: Start an Event with different page