solve
I create a function for it
.......................................................................
now I use
$gameMap.event(3).start();
to force start event from my custom window minigame
because I use show text and other thing from that event setting
but that is a bit annoying when every time
I have to check what number of the event I use
because I make many version of map and copy it around
the number change a lot
I want to call it by event name is it possible?
like I name it
water pump fail
so I specific call event name 'water pump fail' to start
thank you
I create a function for it
Code:
callEventbyName = function(name){
for (var i = $dataMap.events.length - 1; i > 0; i--) {
var event = $dataMap.events[i];
if (event.name === name) {
$gameMap.event(i).start();
break;
}
}
}
now I use
$gameMap.event(3).start();
to force start event from my custom window minigame
because I use show text and other thing from that event setting
but that is a bit annoying when every time
I have to check what number of the event I use
because I make many version of map and copy it around
the number change a lot
I want to call it by event name is it possible?
like I name it
water pump fail
so I specific call event name 'water pump fail' to start
thank you