Event System Support (expert users only)

So you want a system where you have to step on every tile once, and only once?

Personally, I would write a script to do this, rather than putting an event on every single floor tile, just for the lag issue.

But evented ...

Create a variable called "Tiles Crossed"

Create an event with 2 pages, both set to 'below characters' and 'player touch'.

On page 1, turn on self switch A and add 1 to the Tiles Crossed variable.

On page 2, set the condition to be self switch A, and add your trap (this might include a Set Move Route that changes the event graphic - try to avoid another page with another self switch if possible). The second page would probably have a different floor tile graphic, or <something> that would indicate to the player that they'd already crossed it.

Copy your event and paste it onto every floor tile.

Now create your "win" event - this could be a door that only opens once the puzzle is done, or just "something" that happens when the puzzle is done - the former would require the player to start and end on a specific spot (otherwise they'd have to walk over other tiles to reach the door, triggering the trap); the latter would happen no matter where the player ended up. If it's a door and you want it to open, create a first page with a closed door image, and a second page with an open door image, conditioned by the Tiles Crossed variable being equal to the number of tiles they have to walk over. If it's an event that just does something, but you don't see it, just create a single page and condition it by the variable.

Finally create your 'reset' event - a parallel process event that will turn off all the self switches that have previously been turned on. If you have 20 floor events and they're named sequentially as EV001 - EV020, your 'reset' event will have the following in a script call:

(1..20).each do |evt| $game_self_switches[[$game_map.map_id, evt, 'A']] = falseendThen add commands to set the Tiles Crossed variable back to 0, and Erase Event as the last command.It will reset the self switches on all your floor events every time you walk into the room.

Note - you'll have to test whether the tile you land on when you transfer INTO the room changes automatically. I have a feeling it won't. So you might want to add a "landing" tile that has no event on it and isn't counted, or in the 'reset' event above, set self switch A for the 'landing tile' to true instead of false, and set the Tiles Crossed variable to 1.
I'm not sure if this counts as a complex event or not but I've tried everything with this new event I'm trying to make it ALMOST  works but:

When selecting a location on the world map I have a graphic that shows up on the screen as a parallel process when the player approaches the event via event touch/above players.  The graphic shows up fine and disappears when the player leaves the area via a switch.

I have two paraell processes for this when the player reaches the destination and leaves it.

Process #1 Cond Branch If "Name of Area" = ON

Loop

Name of picture/position etc

tint X color with wait 35

Repeat

Otherwise Erase Picture 1  (See * down below)

break Loop

* This didn't work originally and I've tried keeping this in and or out and didn't work so I added a second event upon event touch when the player leaves the area.

Process #2  :  Cond Branch "Name of Area" = OFF

Same Picture/info but the opacity is set to 0

Break Loop

This works and graphic disappears however here is my issue.

When the player goes to the area or event investigates something lets say a signpost.  The loop is still going in the background even if I tell it to break loop.  The graphic will show up if a message box or choice box shows up i.e. "Do you want to enter this area?" or if the player is done reading the message box, the graphic will disappear the start working again.  My question is there a way to get a parallel process with a loop to continue going while viewing a message box rather than the loop being "paused"?
 

Thanks!
It's not really an event "system".


Your two events MAY be conflicting with each other, but I think the REAL problem is that your showing of the picture happens when the first condition is met, then you go into a never-ending loop of showing the picture - it never comes up for air to see if it should STOP showing the picture.


You don't need the show picture command inside a loop - you show it once, then that's it.


Can you explain more of WHAT you're trying to achieve, rather than HOW you're trying to achieve it? When you say the graphic shows up as a parallel process when selecting a location from the world map ... how does the player "select a location" from the world map? What IS the graphic? Is it visible while/before the location is being selected, or after selection? Is it simply an event that monitors the player's location, and when the player gets close it shows a picture and when the player moves away it removes the picture? How are you telling it whether the player is near or not?
I'll take some screenshots and report back to you.

I can almost get this to work effectively it's really frustrating Seeing how the switch is turned on and off respectfully you'd think Ok this switch is ON do this but when turned off Do this and bam.

Something so simple yet being stupidly complex I have a feeling I"m overlooking something dumb

I'll get back and post screen shots.

Thanks

The reason why I'm making a loop with the picture is because I want the picture to be animated (like a cursor).  For towns it goes light green to dark green (via Tint) and for dungeons light red to dark red (with Tint) and with a wait 35 frames to make it run smoothly.
I made my own fast travel with Event, not only Fast Travel

Day Night, Planting

I did it with event 😀
mmm ... I don't see a support question in there anywhere.
Thanks Shaz. Though one way to go about it is to make it so that they can only cross over a tile they've already steped on after the puzzle is completed.
That would simply be turning on a "puzzle solved" switch in the checking event, and having an additional page on all events with that as a condition, and no event commands.
Ok here's what I'm trying to accomplished (and the video for effect).

In a nutshell when the player approaches an area the name of the area will appear via graphic.  I put a loop in there because I want to be animated with a tint function to make it more sassy.  However the project some recongizes the 'switch' is off as I show in the video BUT when you encounter something to look at like a sign post the graphic appears again even though the switch is turned off.  The switched turned off is activated when the graphic disappears via event touch and when the player enters the area again the switch is turned on.

Course once done reading the sign post the switch turns off but some whats stupid.

I'm pretty sure it's something STUPID I'm overlooking.

This may not appear complex...but it is to me.

Spoiler
Spoiler
http://youtu.be/Chd0JRW_Eqk

When encountering the sign post the loop is 'stopped' or not breaking at all.  I've tried remove picture which didn't work at all, so I had to set the opacey to 0 which did work,  but the loop still goes even when the switch is turned off (see pic 1).  The condtions aren't being met, I've tried remove picture as well when the switch is turned off but for some reason the project isn't registering the switch (I've checked via F9 it is turned off otherwise the graphic would still be there when the player leaves the area).

Oi at my wits end here.
I suspect the switch is not being turned on/off at the correct time. And the only thing you haven't shown above is what's turning the switch on/off.
No need for loops, or conditional branches.


On your left hand side of the event, there's a condition for a switch, use that one. Then, in the event itself add your tint, wait command, and tint back to normal. Keep it on parallel process


In the event that you are turning the switch on: you must show the picture. And, when you are turning the switch off, erase the picture.


Since you haven't shown us a screenshot of where you are turning on the switch, I'm going to assume you do have one, and in that one, you can do the show/erase picture stuff, and keep the parallel process for the tinting.
Additionally to everything else, you have a problem in the editor - I suggest reinstalling the program.

Your screenshot shows all conditions as active, even with the checkboxes empty. That is NOT the regular display of the editor, and it might be that something else in the engine is also broken as a result.
@ Cel & Shaz My apologizes forgot to show you how the event is activated :

See the first two pictures for turning on and off

Basically when the player approaches the town or dungeon (all areas are covered respectfully) box this event goes off:

Spoiler
And when the player begins to leave the area (all events surrounding the town are same respectfully) goes off the square:

Spoiler
Using what Cel said I did the following:

Spoiler
I tried no conditional branches per Cel for the switch to be off but it wasn't working (the image would show briskly)  but disappeared quickly.  Adding the conditional branch for being when the switch turned off worked!

Spoiler
@ Andar I checked the file intergerity in Steam, it said 6 files were missing so I updated that, but I'm not sure what was missing, and I have no idea how that would happen.  Other than purchasing DLC.

The event now works and the player can interact with stuff and the graphic won't show up "pausing" the loop.

Which i still find somewhat odd, I mean Cond branch basically says If this is ON if not Do that.  I would think in layman's terms it would work (similar to like the old school IF statements in BASIC but I guess that's not the case.)  It just looks very black and white to me.

I'll let you know if I run into any problems.  In either case your posts shall receive likes, for this solved this brain buster on my end.

I would think a loop would work, because I had similar event that was a weather based one and every 200 frames it play a thunder sound emulating a thunderstorm/lighting strikes along with the rain.

Thanks again
That's exactly what a conditional branch does. I'm not sure where the confusion is coming from.


The issue you had before is that the loop was inside the conditional branch, and there was no way for it to ever get out of the loop. It wasn't coming up for air to see whether the conditions were still valid for it to be showing.
Ah ok, man that's stupid ok thanks jeesh because it's stuck in that particular loop it doesn't have a chance to get to the "else".  Makes sense how you explain but dang the way I was thinking ok Switch ON? Yes!  Continue loop.  Switch still ON? Continue!  Then when off hits, stops loop.  I also tried a break loop for a separate cond. branch and made it a new parallel process with a break loop but didn't work either.

Loops give me a headache now.....live and learn ...live and learn ;d
Question: is that entire ground covered in events that do the same thing; turn on a switch?
I think the ones on the inside turn the switch on, and the ones on the outside turn it off. As you stand on a tile next to the centre, the image is supposed to appear, and when you leave, it disappears.


There are proximity scripts out there, and I thought my region common events script would be helpful too (they'd both get rid of ALL those events).
@ Shaz Yeah I didn't know there was a script out there for it (honestly didn't search one because it's suppose to be a simple task of displaying an image of a location).

@ Cel The town itself is it's own event via press button ("Enter the town?")  The boxes north, south, east, and west turn each square turns the switch on as the player approaches the area.  The remaining outer squares (2 or more away from the town) turn it off, removing the image.  I wanted to cover each section so the player doesn't accidentally hit a tile that's not covered and the image just stays there.
Considering it's a narrow piece of land, you only need three events to turn the switch on, and I suggest making it go on a timer (well, a wait command, really) to make it go away. This way you can be sure it always erases.
How long of a wait?  Instant?  Currently set for 35 frames.

Original thread: https://forums.rpgmakerweb.com/threads/event-system-support-expert-users-only.51/