Run common event for another event.

vectorinox

Airport Luggage
Veteran
Joined
Jun 20, 2016
Messages
45
Reaction score
9
First Language
Singlish
Primarily Uses
Is there a way to make an event cause another event to run a common event?


Something like putting a script call: "run.event( common event id, event id)" inside an event, which cause the event to make the event with the id runs the common event with the id.


Sorry for the eventception.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
In the event you want to initiate the common event, on the first tab of the Event Command Menu, left side, towards the bottom, select 'Call Common Event' and choose which one you want to run.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Why would you want one event to tell another event to run a common event?  What's the scenario?
 

vectorinox

Airport Luggage
Veteran
Joined
Jun 20, 2016
Messages
45
Reaction score
9
First Language
Singlish
Primarily Uses
It's a complicated one. I was using Galv event spawner to spawn some random events. And another  event to pick a random event to run a common event. That's why I needed a script. Because the event is chosen at random.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You haven't explained why you want one event to tell another event to run a common event.  Why not run it from the first event?  Why not make the second event run it without being told to by another event?


Scenario = context = what is it you're trying to do.  Not how you're trying to do it.  Unless we know what it is you want to accomplish by getting one event to tell another to run a common event, we're a bit in the dark.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
Is there a way to make an event cause another event to run a common event?


Something like putting a script call: "run.event( common event id, event id)" inside an event, which cause the event to make the event with the id runs the common event with the id.


Sorry for the eventception.
to run common event with script.
Use this


// ? = ID CommonEvent
$gameTemp.reserveCommonEvent(?);

// And for run this with the event id
var tempID = $dataMap.events[this._eventId].id
$gameTemp.reserveCommonEvent(tempID);


but like say @Shaz


Am not understant your scenario.
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top