I know how to get a tileID, but what do I do with that information to get the image of that tile?
For example, if a player steps on a tile of wheat, they'll walk OVER it. However, I want them to be able to hit a button and hide in the wheat, and using Yanfly's Event Spawner, will spawn an event on top of the player (Above Priority) and want to change the event image to that of the wheat tile.
You could make some wheat events there, with priority 'below character'.
When the player pressed the button, use $gameMap.event(x).setPriorityType(2) to make them 'above character' so the player can't be seen.
Or just turn player transparent ON.
You don't need to make stuff that complicated.
I'm trying to avoid saturating my maps with events. Yes, it would be "easier" but I'm trying to be more optimal about this. Hence 1 event that I can spawn in from the template map (yanfly's event spawner).
* Then despawn that event when they're no longer hiding
If I can get the tile image via a script, it would solve the problem 😛
Edit: Also that last sentence is a bit.. unnecessary. I mean you don't need to do anything in RPG Maker, but it is by doing those things that make a game what it is 😛 In games like Assassins Creed and Ghost of Tsushima, you have the character hide in plain sight (bench, tall grass, etc), so I might have in mind to do something of the same line of thinking here. Hence why I want to optimize the way it is done.
How about using regions? If the player is in the region with the wheat tiles, then spawn the wheat event at the player position.
That still leaves the question on how to get the image though. Whether it is tile ID terrain ID, or region ID, I don't know how to get the image of said location.
I mean, you have to check if player is in region x. It's where all the wheat tiles are. So you don't need to get the wheat image. I suppose the event you want to spawn already has the wheat graphic? If it does (I hope it does), If the player is in that region x, then you just spawn that event where the player is. I don't understand why you'd need to get the tile's image...
No the wheat tile is on the map (below player). What I want to do, is by using 1 event (no image, on a template map to spawn from, via plugin), is to put that event on top of the player and change its graphic to the wheat, so it looks like the player is behind the wheat.
The thing is.. it might be applicable to more than just the wheat (otherwise I'd just have the 1 event and all would be hunky dory). Hence, why I need to know how to grab the image of the tile a player is on, so it can then be applied to the event image.
Just knowing what region they're on won't help with the image itself. 1 Event with image changes is more optimal than 100 events with fixed images. Plus it could be handy to know how to get the tile image for other stuff later.
*Bump* Still checking in to see if anyone can help me on this issue (or if it's even possible)?
Well... uhhh.. that would actually work (for up to 20 different tiles/pages, but.. it would still work). Yeah... alright I'll do that then 😀 Thanks (and I feel stupid for not thinking of that)