Orange Custom Event Creator 1.0
Hudell
Introduction
This plugin Will let you create new events on the current map using script calls
How to Use
Those are the useful methods you can call to use this plugin:
Creating normal events:
Code:
- $gameMap.createNormalEventAt(characterName, characterIndex, x, y, d, scriptOrCommonEventId, temporary)
复制代码
This method will create a regular event with the characterName and Index you specify
characterName = the name of the spriteset
characterIndex = the index inside the spriteset
x = the x position where you want the actor to be
y = the y position where you want the actor to be
d = the direction you want the event to be facing (2 = down, 4 = left, 6 = right, 8 = up)
scriptOrCommonEventId = a script call or the number of a common event id. It will be executed when the player activates the event
temporary = true or false, indicates if the event will be deleted when the player leaves the map
Example:
Code:
- $gameMap.createNormalEventAt('Actor1', 0, 15, 20, 2, 1, true);
复制代码
Creating events based on actors:
Code:
- $gameMap.createActorAt(actorId, x, y, d, scriptOrCommonEventId, temporary)
复制代码
This one will create an event using the graphics of an actor from the database:
actorId = The number of the actor you want to use
x, y, d, scriptOrCommonEventId and temporary = same as in createNormalEventAt
Example:
Code:
- $gameMap.createActorAt(1, 15, 20, 2, 1, true);
复制代码
Create trigger events:
Code:
- $gameMap.createTriggerEventAt(x, y, scriptOrCommonEventId, temporary)
复制代码
This one will create an event without graphics that will be triggered on player touch
Example:
Code:
- $gameMap.createTriggerEventAt(15, 20, 1, true);
复制代码
Create teleport events:
Code:
- $gameMap.createTeleportEventAt(x, y, newMapId, newX, newY, newDirection, fadeType, temporary)
复制代码
This one will create a trigger event to teleport the player to a new map.
Create Parallel Process events:
Code:
- $gameMap.createParallelProcess(scriptOrCommonEventId, temporary, autoErase)
复制代码
This one will create a parallel process event on the curent map.
Create any kind of event
Code:
- $gameMap.addEvent(eventData, temporary)$gameMap.addEventAt(eventData, x, y, temporary)
复制代码
You can create any event with those two methods. Check out the code of this plugin to find out how to use it.
Plugin
Get it from here
Dependencies
MVCommons
Orange Custom Events
FAQ
I'll keep a small FAQ here for easy reference.
Credit and Thanks
- Hudell
本贴来自国际rpgmaker官方论坛作者:Hudell处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/orange-custom-event-creator.46535/