[SCRIPTING] [RMMV] HOW-TO: SECRET DOORS
Posts
Pages:
1
Nijineko again.
For my second question regarding my current project, I'd like to focus on secret doors.
In the rogue-like i'm basing my project off of, secret doors are invisible and cannot be discovered until you cast a LIGHT spell. Once cast, all secret doors on the map which are not covered by fog-of-war will be revealed. (Just fyi, every map fits on a single screen, though I doubt I can pull that off in RMMV.)
I've been attempting to make certain wall tiles have the THROUGH quality, but that doesn't seem to be working like I expected.
Next, I tried making an event that turns the character THROUGH quality on if they are facing a certain direction, and off if they are facing another direction, but then they can't walk on that tile.
Finally, I tried making the event have the THROUGH quality, but then the event would not trigger no matter what.
I plan on making a magic skill called REVEALING LIGHT which will have a character level based or footstep-based timer. For the duration of this skill, the secret doors need to be revealed and passable, and once the skill expires, it needs to revert.
So, in any case I'm rather stuck. Any advice on how to pull this off would be appreciated.
For my second question regarding my current project, I'd like to focus on secret doors.
In the rogue-like i'm basing my project off of, secret doors are invisible and cannot be discovered until you cast a LIGHT spell. Once cast, all secret doors on the map which are not covered by fog-of-war will be revealed. (Just fyi, every map fits on a single screen, though I doubt I can pull that off in RMMV.)
I've been attempting to make certain wall tiles have the THROUGH quality, but that doesn't seem to be working like I expected.
Next, I tried making an event that turns the character THROUGH quality on if they are facing a certain direction, and off if they are facing another direction, but then they can't walk on that tile.
Finally, I tried making the event have the THROUGH quality, but then the event would not trigger no matter what.
I plan on making a magic skill called REVEALING LIGHT which will have a character level based or footstep-based timer. For the duration of this skill, the secret doors need to be revealed and passable, and once the skill expires, it needs to revert.
So, in any case I'm rather stuck. Any advice on how to pull this off would be appreciated.
1. Have the skill call a common event.
2. Make the common event set a timer, turn a switch on, then turn it off when timer runs out.
3. Make "secret doors" events. Have a second page that triggers when switch from common event is on. Make it "below player" and give it "THROUGH" quality.
Take baby steps. Try to make it without the timer first, then add a regular timer, then base it on level or steps. No need for scripting.
For help implementing a specific element, you can ask in the Help Me forum.
2. Make the common event set a timer, turn a switch on, then turn it off when timer runs out.
3. Make "secret doors" events. Have a second page that triggers when switch from common event is on. Make it "below player" and give it "THROUGH" quality.
Take baby steps. Try to make it without the timer first, then add a regular timer, then base it on level or steps. No need for scripting.
For help implementing a specific element, you can ask in the Help Me forum.
Pages:
1














