Hi Guys,
I am using Yanfly's SaveEventLocations script and I noticed that the reset function does not reset the self switches of the events. I compiled a script call manually, I asked a question but after some going back and forth it seems that it worked out as I want.
Two questions:
1) It seems that I can drop the ; signs after each of the variable definitions and nothing breaks. How come?
2) Is it an okay script call in general? Do you anticipate issues?
I am using Yanfly's SaveEventLocations script and I noticed that the reset function does not reset the self switches of the events. I compiled a script call manually, I asked a question but after some going back and forth it seems that it worked out as I want.
Two questions:
1) It seems that I can drop the ; signs after each of the variable definitions and nothing breaks. How come?
2) Is it an okay script call in general? Do you anticipate issues?
Code:
var mapId = $gameVariables.value(3);
var events = $gameMap.events();
for (var i = 1; i <= events.length; ++i)
{var key = [mapId, i, "A"]
$gameSelfSwitches.setValue(key, false);}