Storing the number of the Event ID into a variable

Sanguine

Hoot
Member
Joined
Oct 18, 2012
Messages
27
Reaction score
53
First Language
English
Primarily Uses
The title of the post says it. Is there a script call that I can use to do this? Or can I achieve this with events?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
1,483
Reaction score
987
First Language
English
Primarily Uses
You can reference an event's ID using a "script" event command by simply writing @event_id
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,230
Reaction score
6,776
First Language
German
Primarily Uses
RMMV
just remember that the events are map-based - on each map, the events have their ID numbers starting from 1 again.
 

Sanguine

Hoot
Member
Joined
Oct 18, 2012
Messages
27
Reaction score
53
First Language
English
Primarily Uses
But is there anyway I can get the actual number? Like the actual integer?
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
858
First Language
German
Primarily Uses
As i currently don't have access to RM, i don't know if there are any event commands you could use, but this snippet would do it:

$game_variables[<variable>] = event_idWhere "<variable>" is the id of the variable you want to set.
 

Sanguine

Hoot
Member
Joined
Oct 18, 2012
Messages
27
Reaction score
53
First Language
English
Primarily Uses
Thank you very much, it worked like a charm!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I just noticed the minigame challenge. Now considering...
My project just started lagging during battle and I haven't been able to figure out why...
Oh, Google is now warning users against installing extensions on Edge Chromium
on my plate today- animation.
"Your service has been identified as part of an outage. This is expected to be restored by 7pm IN SEVEN DAYS!!!" Guess I won't be around as much over the next week :(

Forum statistics

Threads
94,464
Messages
921,127
Members
124,302
Latest member
isjfjkakal418
Top