RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Individual Tile Swapping - Event or Script? [Resolved]

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 81
I'm trying to figure out how, using an event (one that fires off a script if need be) I can change a specific tile on a given map.  The scenario is this: Player is standing on the world map, below a lighthouse tile.  The lighthouse is not lit.  An event is placed on the light house tile, to transition the player to the interior, where I want the player to press the action button next to another event in order to light the lighthouse.  When the player returns to the world map, I want the lighthouse tile to be replaced with the "On" tile.  I've attached both tiles below for reference.

I've looked all over and so far the best I can find is to swap tilesets.  I'd rather not have to swap in a whole tileset just to change a single tile, so I'd like to know if there is a better option.  Thank you.
« Last Edit: April 10, 2010, 06:14:35 PM by BDMarvel »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
RMVX doesn't inherently have the functionality to change one tile to another in a given map. But it's easy enough to do simply by making it a charset instead. Have the event graphic be the OFF one first, then when the lighthouse switch is ON you just make a new page for it and have the graphic be ON instead.

**
Rep:
Level 81
Thank you modern algebra!  I knew there had to be a simple way to accomplish this, and it works perfectly.  Much kudos to you.

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
Like MA said, you can simply make a character sheet and do it like that. I thought I'd let you know that you can also set event graphics as anything from your tileset. So if, for instance, you had both of those pieces from your first post placed on your TileE, you can set an event as one of those graphics then swap it like you would a character sheet to the other. I would go with the character sheet in this instance, but just saying.

**
Rep:
Level 81
Thanks grafikal, using the tileset actually works better for me in this case.  I didn't realize I could choose event graphics from tileset since I had no reason to scroll down before.  I appreciate the further tip on the resolved issue.  Works like a charm. :)