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