Need help with Eventing issue

I have 2 swirling laser/flame "source" whatever you want to call them... I have vert/horizontal events around them that get the direction the "source" is facing.. this indicates to me that the tile should be active(displayed and harmful to the player).  This works great with one issue I cannot seem to get the flames where they cross(shared event) each other to work one source always has top priority... 


Source 1 top left, source 2 bottom right


When I execute source 2's flames show as expected but source 1's flames do not show up on this crossing tiles(shared event) at all.. 


Lets take the bottom left crossing shared event below you can see how each event page is setup...


Page 1 if source 1 direction=2, turn on flame. 


Page 2 if source 1 direction=4, do nothing


Page 3 if source 1 direction=6, do nothing


Page 4 if source 1 direction=8, do nothing


Page 5 if source 2 direction=2, do nothing


Page 6 if source 2 direction=4, turn on flame.


Page 7 if source 2 direction=6,  do nothing


Page 8 if source 2 direction=8,  do nothing


I think the issue is because I have pages 5-8 looking at a different variable which is overwriting the earlier checked event pages?  So the fact that page 1 is true gets over written because page 8 is also true, thus displaying no image. 


Is there anyway to handle this logic without installing plugins?  


--Please and thank you. 


room.png


eventPage1.png


eventPage2.png


eventPage3.png


eventPage4.png


eventPage5.png


eventPage6.png


eventPage7.png


eventPage8.png
The only way to handle this is you *must* order your page events in the proper order. No plug-in is going to fix that. The page events always run the highest numbered page that is valid, so you have to reorder them in such a way that what you want is always the highest numbered page. No other method is going to work.
The issue with re-ordering the pages is the variable direction can only be greater-equal to... I cannot have it equal to the exact value.   What would the correct order be? I swear I have tried all combos and I just get crazier and crazier results.


Page 1 if source 1 direction=2, turn on flame.


Page 2 if source 1 direction=4, do nothing


Page 3 if source 1 direction=6, do nothing


Page 4 if source 1 direction=8, do nothing


Page 5 if source 2 direction=2, do nothing


Page 7 if source 2 direction=6,  do nothing


Page 8 if source 2 direction=8,  do nothing


Page 6 if source 2 direction=4, turn on flame.
Maybe Tsukihime's Custom Page Conditions plugin might help? It allows for more conditions than what's on the sidebar.
No, but you can handle exactly equal to with some creativity. Say you want a page that is to run only when a variable is equal to 7. Here's how you do it:


Page 1: >= 7


Page 2: >= 8


Page 1 will only run when the variable is exactly 7 now.
@amess...


You don't actually need all of those empty Event Pages. If flameless Page 1 was without any condition, a Flamed Page 2 checking to see the direction faced would suffice.


To solve your problem, I would not use Variables here, but Switches, one for each direction and for each Source, so 8 in total. As the Source rotates, so the Switches are turned On and Off. The ordinary Flame Tiles could detect the Switch concerning them, and their Page 2 would react to that Condition. The troublesome 'crossroads' Tile would have extra Pages, one for each Source, and another for the 2 Source Switches together. In that way, if either Source, or both, were facing the crossroad Tile, the flames would appear.


There may be other methods, of course, but that's how I would do it.


Hope this helps.
Thanks Dad3353 your solution works and was much easier then what I was doing.
R91KekF.gif

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-eventing-issue.70217/