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,236
Reaction score
6,781
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

Out of sudden, snow. Everywhere.
Blech. I hate coming up with stories. Making gameplay is fun but coming up with lore and reasons for these areas/mechanics just makes me sleepy.
40 card deck size, the plugin seems more sluggish.
Village theme I composed for a commission!

Forum statistics

Threads
94,568
Messages
921,955
Members
124,435
Latest member
JamnRed1
Top