Hey! usually i dont ask for alot of help but im really stuck on this one guys... if you guys could come up with a solution that would be AWESOME, if im smart enough to follow what you say. lol
So basically... im using a parallel to locate 4 different events using map x and y for "boulder 1 2 3 and 4"
so that if boulder 1 fills hole 1 then hole 1 will dissappear, but incase the player pushes boulder 1 to fill hole 2 then hole 2 will dissappear the problem im having is incase boulder 1 does go in hole 2 i want hole 1 to remain open for boulder 2 3 and 4 .
i cant figure out how to do this....
basically... i want all 4 boulders to fit in any of the 4 hole locations but only close the hole that 1 boulder is on and leave the rest open for the other boulders, if u know what i mean?
so the player can push any boulder in any hole but only 1 hole at a time close up.
if scripting isn't too scary this is how i would handle this.
◆Comment:events 4-7 are holes
◆If:Script:$gameMap.eventsXy($gameMap.event(4).x, $gameMap.event(4).y).length > 1 && !$gameMap.event(4)._erased
◆Play SE:Applause1 (90, 100, 0)
◆Wait:60 frames
◆Script:$gameMap.eraseEvent($gameMap.eventsXy($gameMap.event(4).x, $gameMap.event(4).y)[0]._eventId);
◆Script:$gameMap.eraseEvent($gameMap.eventsXy($gameMap.event(4).x, $gameMap.event(4).y)[1]._eventId);
◆
:End
◆If:Script:$gameMap.eventsXy($gameMap.event(5).x, $gameMap.event(5).y).length > 1 && !$gameMap.event(5)._erased
◆Play SE:Applause1 (90, 100, 0)
◆Wait:60 frames
◆Script:$gameMap.eraseEvent($gameMap.eventsXy($gameMap.event(5).x, $gameMap.event(5).y)[0]._eventId);
◆Script:$gameMap.eraseEvent($gameMap.eventsXy($gameMap.event(5).x, $gameMap.event(5).y)[1]._eventId);
◆
:End
◆If:Script:$gameMap.eventsXy($gameMap.event(6).x, $gameMap.event(6).y).length > 1 && !$gameMap.event(6)._erased
◆Play SE:Applause1 (90, 100, 0)
◆Wait:60 frames
◆Script:$gameMap.eraseEvent($gameMap.eventsXy($gameMap.event(6).x, $gameMap.event(6).y)[0]._eventId);
◆Script:$gameMap.eraseEvent($gameMap.eventsXy($gameMap.event(6).x, $gameMap.event(6).y)[1]._eventId);
◆
:End
◆If:Script:$gameMap.eventsXy($gameMap.event(7).x, $gameMap.event(7).y).length > 1 && !$gameMap.event(7)._erased
◆Play SE:Applause1 (90, 100, 0)
◆Wait:60 frames
◆Script:$gameMap.eraseEvent($gameMap.eventsXy($gameMap.event(7).x, $gameMap.event(7).y)[0]._eventId);
◆Script:$gameMap.eraseEvent($gameMap.eventsXy($gameMap.event(7).x, $gameMap.event(7).y)[1]._eventId);
◆
:End
Where the play SE line is you can do whatever else is needed change a variable or whatever, but essentially what this does is it'll check if there is more than 1 event located on the same tile as a hole, and if there is it will play a SE and wait 60 frames then erase both events it finds on that tile.
I'm sure theres a way to do it with pure eventing but I believe scripting it would be much easier.
if you go this route you would just need to replace every instance of $gameMap.event(number) you see there with your hole numbers, i used eventIds 4-7 for my holes in testing.
this does not have a catch for if you have other events that might wander into a hole, if that happens it would trigger and delete both, if you do have this i can edit the scripts to make sure its a boulder but i dont know why you'd have an event wander into a hole anyway :mrsatan:
mm just occurred to me you may only want to delete the hole and leave the boulder? if so this would need a slight edit xD