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
986
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 was doing forge runs on D2 with my wife last night, and singing like a leprechaun to annoy her XD. I was calling it 'The Farge'
Is i possible too make a weapon have a chance of using a skill?
Can the Eternal Dreamers finish off the final boss? We'll see!
Fekken kill me. I unknowingly swapped out two important events's codes and saved the game to test it. I'm just doing this for fun and the fun has now been replaced with excruciating torture.
Is this how game developers feel all the time?

EDIT:
WAIT HOLY S***
MY LAST POST ASKING FOR HELP ON AN EVENT ACTUALLY SAVED IT
OH MY GOD
Coffee + Silk Coconut Milk + Splenda Zero = Not ..... awful :/ .

Forum statistics

Threads
94,448
Messages
921,010
Members
124,272
Latest member
lymeish
Top