- Joined
- Feb 9, 2016
- Messages
- 76
- Reaction score
- 23
- First Language
- English
- Primarily Uses
- RMMV
Hey guys,
So I followed along with SumRndmDde's javascript/event rock-pushing puzzle, and while complicating it for later rooms, I've hit a bit of a snag. This might be really simple, but I'm also a bit of a coding noob.
The event works when it comes to a single, specific event or "rock" arriving at a particular coordinate on the map. But if I have multiple possible rocks that could arrive at that particular coordinate, how do I express that using this script call?
So I followed along with SumRndmDde's javascript/event rock-pushing puzzle, and while complicating it for later rooms, I've hit a bit of a snag. This might be really simple, but I'm also a bit of a coding noob.
The event works when it comes to a single, specific event or "rock" arriving at a particular coordinate on the map. But if I have multiple possible rocks that could arrive at that particular coordinate, how do I express that using this script call?
My first instinct was to simply do:$gameMap.event(6).x === 11 && $gameMap.event(6).y === 39
But that didn't work. I've messed around a bit, but I realise I have no idea what I'm doing. So I thought it best to ask before I mess something up or arrive at a "solution" that will end up causing huge issues for me down the line.$gameMap.event(5, 6).x === 11 && $gameMap.event(5, 6).y === 39