Status
Not open for further replies.

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
233
Reaction score
98
First Language
spanish
Primarily Uses
N/A
Is there any way to know the current event id?
I mean, the event running the code.

For example, I have this code in an event

Code:
var this = $gameMap.event(this???);

And I want to know the id of the event itself to be able to copy/respawn the event later.
 

stramin

Veteran
Veteran
Joined
Nov 4, 2012
Messages
233
Reaction score
98
First Language
spanish
Primarily Uses
N/A
Ok, I got it!

Code:
var this = $gameMap.event(this._eventId);
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,047
Reaction score
8,905
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

What do you guys want to see for the new Jump into Javascript? A continuation of the rpg_objects, or would you prefer a "lesson 0" where I go back to the absolute basics of Javascript and cover the fundamentals of the language and its construction?
Hey RPG members!!

How do you finish projects? Some new game developers start off strong but end up losing momentum. What keeps you motivated while working on new projects?
Feeling wee sleepy.. ZzzZ
So many threads to move to the right place. My post count is awesome, but 95% of it is due to moving things.
So...I decided to make music for my game... Because i've never done anything musical in my life. I even failed music in school, you basically just had to show up to pass and I somehow failed xD

Forum statistics

Threads
112,448
Messages
1,068,355
Members
146,105
Latest member
Hibernate
Top