Orange Custom Event Creator

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,544
Reaction score
3,714
First Language
Java's Crypt
Primarily Uses
RMMZ
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
 
Last edited by a moderator:

Joronjo

Veteran
Veteran
Joined
Sep 17, 2015
Messages
155
Reaction score
29
First Language
English Spanish
Primarily Uses
I just want to be sure i'm understanding what the script does, but essentially i would be able to, for example, in a non saveable map, make a save point?
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,544
Reaction score
3,714
First Language
Java's Crypt
Primarily Uses
RMMZ
I just want to be sure i'm understanding what the script does, but essentially i would be able to, for example, in a non saveable map, make a save point?
This plugin is used to add new events to the map on the middle of the game.
 

Joronjo

Veteran
Veteran
Joined
Sep 17, 2015
Messages
155
Reaction score
29
First Language
English Spanish
Primarily Uses
I would not need to make a template event for it to work?

Nevermind! I get now! This is awesome!
 
Last edited by a moderator:

Fox536

Veteran
Veteran
Joined
Nov 5, 2015
Messages
173
Reaction score
60
Primarily Uses
Bug: The file is missing the comment tags at the beginning so nothing is commented out like it should be.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,544
Reaction score
3,714
First Language
Java's Crypt
Primarily Uses
RMMZ
Bug: The file is missing the comment tags at the beginning so nothing is commented out like it should be.
Can you send a screenshot? Everything is alright here.
 

Fox536

Veteran
Veteran
Joined
Nov 5, 2015
Messages
173
Reaction score
60
Primarily Uses
Ya let me get off work, and I'll get a screenshot of it. It looks like the header conment tags are just missing from the download file. As soon as I get off I'll post it.
 

Fox536

Veteran
Veteran
Joined
Nov 5, 2015
Messages
173
Reaction score
60
Primarily Uses
Sorry for the delay but this is whats in the download file...

Code:
=============================================================================  Orange - Custom Event Creator  By Hudell - www.hudell.com  OrangeCustomEventCreator.js  Version 1.0  Free for commercial and non commercial use. =============================================================================  @plugindesc This plugin Will let you create virtual events with script calls                @author Hudell  @help  ============================================================================  Latest Version  ============================================================================    Get the latest version of this script on  httplink.hudell.comcustom-event-creator   =============================================================================
Im not sure how it happened lol, but im i figured you might wanna know lol

 

but it seems fixed when i just downloaded it again
 
Last edited by a moderator:

Fox536

Veteran
Veteran
Joined
Nov 5, 2015
Messages
173
Reaction score
60
Primarily Uses
Ya that's how they were after I redownloaded them I dont know what happened, but the plugins works great.
 

Jarinity

Warper
Member
Joined
Feb 9, 2016
Messages
2
Reaction score
1
First Language
English
Primarily Uses
This is a great script. I struggled for hours trying to achieve this on a smaller and simpler scale.


I have a suggestion for future updates. If this is already a feature then I missed it. A boolean parameter for _stepAnime.


What do you think the cleanest way is to obtain the new event's ID? Right now, to set _stepAnime = false I have to do this:


$gameMap.createNormalEventAt('Actor2', 2, data.start_x, data.start_y, 2, 1, true);

new_event_id = $gameMap._events.length;

$gameMap._events[new_event_id]._stepAnime = false;


It seems a bit rough to me, but, it works.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,544
Reaction score
3,714
First Language
Java's Crypt
Primarily Uses
RMMZ
That would occasionally work on luck. If you have a map where you deleted any event, it won't work.


I just changed the creator plugin to return the created event, so you can do this:


var event = $gameMap.createNormalEventAt('Actor2', 2, data.start_x, data.start_y, 2, 1, true);
event._stepAnime = false;


There's also the manual way of creating events:

Code:
var eventData = new CustomEventData();
eventData.page.image.direction = 2;
eventData.page.image.characterName = 'Actor2';
eventData.page.image.characterIndex = 2;
eventData.page.stepAnime = false;
eventData.page.callScriptOrCommonEvent(1);

$gameMap.addEventAt(eventData, data.start_x, data.start_y, true);
 

ThePotatoOfFire

8-bit Obsessed
Veteran
Joined
Jan 15, 2016
Messages
157
Reaction score
58
First Language
English
Primarily Uses
RMMV
Any way to add an event on top of a player, and have that event use a distance sensor?
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,544
Reaction score
3,714
First Language
Java's Crypt
Primarily Uses
RMMZ
You can set any position to the event, if you want to put it on top of the player, simply pick the player position and use it as the event's position.


What is a distance sensor?
 

ThePotatoOfFire

8-bit Obsessed
Veteran
Joined
Jan 15, 2016
Messages
157
Reaction score
58
First Language
English
Primarily Uses
RMMV
You can set any position to the event, if you want to put it on top of the player, simply pick the player position and use it as the event's position.


What is a distance sensor?
I was designing a real time battle system, and one of my ideas was to spawn an attack event on the player. Moghunter's Event Sensor plugin allows an event to sense when the player is within x tiles of the event, and can perform actions only if the player is in range of the sensor. I found a different way of doing it, though.
 

johanes

Hobo
Veteran
Joined
Oct 13, 2016
Messages
97
Reaction score
9
First Language
Filipino
Primarily Uses
N/A
I want to use the plugin but it doesnt seems to work on my project
upload_2017-6-21_20-12-13.png
upload_2017-6-21_20-13-27.png
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,544
Reaction score
3,714
First Language
Java's Crypt
Primarily Uses
RMMZ
The core OrangeCustomEvents needs to be added first, with the Creator plugin after it.
 
Last edited:

fizzly

Veteran
Veteran
Joined
Mar 23, 2012
Messages
740
Reaction score
468
First Language
Polish
Primarily Uses
RMMV
@Hudell , can I set x and y position to actual event position?
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,544
Reaction score
3,714
First Language
Java's Crypt
Primarily Uses
RMMZ
You can try using this as the X position inside the script call:

this.character().x

same thing for the y position.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People1.png & SF_People1.png added!!!!

Adventurer:
"Why your body looks like a bird?"

Stranger:
"Because I'm harpy"

Adventurer:
"Clap along if you feel like a room without a roof"

*Both dancing to Pharrell Williams song*
Stream will be live shortly with a make-up session of the Interactive Text Adventure! Feel free to drop by!
Pootscooter wrote on Pharonix's profile.
Hey @Pharonix, just wondering what you're up to lately and if you've had an opportunity to check out the LTBS thread in the past few days...(a couple of us could really use your expertise). Hope you are well and Happy Thanksgiving!

Forum statistics

Threads
105,506
Messages
1,014,263
Members
137,173
Latest member
zoetsoi
Top