Help: How to create an event using Javascript.

Overclocked

Overclocked
Member
Joined
Feb 8, 2013
Messages
18
Reaction score
1
First Language
English
Hi everyone! How would I go about creating an event using a custom-made plugin? I understand the basics of OOP and have made a few really simple scripts with plugin commands but now I would like to try something a little harder. 

Goal: Create an event on the current map using a plugin command.

I find learning to script my own stuff is insanely fun but I'm still a bit new to everything. Thanks!

PS - Are there any objects besides Game_Event and Game_Map that I'd need to play with to make this work?
 

MuteDay

Mutation Engine
Veteran
Joined
Oct 19, 2015
Messages
253
Reaction score
39
First Language
English
not exactly sure what your trying to do, mind explaining what you want to do a bit more please
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,425
Reaction score
7,710
First Language
German
Primarily Uses
RMMV
The experience from Ace (where a script for exactly that was written) has shown that this is an extremely bad idea - it is much better if you create the event in the editor in a master-map, and simply clone/copy it to the current map if you need it.


That has a lot of reasons, because creating an event by script/plugin is NOT easy and requires dozens of complex lines to set everything up, and it is usually a lot easier to simply prepare and copy regular events.
 

Overclocked

Overclocked
Member
Joined
Feb 8, 2013
Messages
18
Reaction score
1
First Language
English
Ah ok, cool. That makes sense. How would I go about cloning an event and placing it on the map?

Thanks
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,425
Reaction score
7,710
First Language
German
Primarily Uses
RMMV
you need a script/plugin for that, just search for "clone event"
 

Overclocked

Overclocked
Member
Joined
Feb 8, 2013
Messages
18
Reaction score
1
First Language
English
Cool. I've found a script by Yanfly that's in ruby that does what I'm looking for. As a learning tool I'll try and convert it to be compatible with MV. Thanks everyone
 

Overclocked

Overclocked
Member
Joined
Feb 8, 2013
Messages
18
Reaction score
1
First Language
English
Thanks for the post Estriole. I've successfully made the architecture for a really robust ABS that relies critically on this idea. I'm pretty sure I'll end up just integrating your script as it has some really nice features.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top