Hello, there. I have a quick question that is simply; I want to call a common event with the ID of a common event.
Here's how you call a common event in case anyone needs it https://forums.rpgmakerweb.com/index.php?threads/call-common-event-script-call.47559/
Also, I came up with this but it doesn't seem to work:
$game_temp.reserve_common_event($gameVariables.value(78)], 1)
(78 being my common even ID)
Any help?
Call common event with the value of a variable
● ARCHIVED · READ-ONLY
-
-
There is only one ] and not any [ ], maybe that's the problem?
-
In the thread that you have linked, the answer was given by Hudell.
He wrote:
Code:You wrote:$gameTemp.reserveCommonEvent(ID)
Code:Note that these are not the same ($game_temp is not the same as $gameTemp), and in programming, that is very important.$game_temp.reserve_common_event($gameVariables.value(78)], 1)
ID refers to the ID# of the common event, and this can be a number or an expression. So, it could be "41", or it could be "$gameVariables.value(78)", as examples.
Code:$gameTemp.reserveCommonEvent($gameVariables.value(78)) -
Yes, that might be a problem too. Cause well: I never worked in Javascript only C# and C++.There is only one ] and not any [ ], maybe that's the problem?
Also, Aloe, thank you so much, it worked wonders! I'll even give you some credit up in there if you want :pIn the thread that you have linked, the answer was given by Hudell.
He wrote:
Code:You wrote:$gameTemp.reserveCommonEvent(ID)
Code:Note that these are not the same ($game_temp is not the same as $gameTemp), and in programming, that is very important.$game_temp.reserve_common_event($gameVariables.value(78)], 1)
ID refers to the ID# of the common event, and this can be a number or an expression. So, it could be "41", or it could be "$gameVariables.value(78)", as examples.
Code:$gameTemp.reserveCommonEvent($gameVariables.value(78))