Event System Support (expert users only)

Hi, I was wanting to make a vehicle that can run over pedestrians, specificallty I found this, event location. I specifically want them to get run over if their within 3x3 of the player. The bottom part says it can check for event location. I'm pretty noob here, how would I translate this as a conditional branch?

# X and Y's
# ----------------------------------------------
$game_player.x
$game_player.y

$game_map.events[n].x
$game_map.events[n].y
# n = Event ID


# Check Terrain Tag
# ----------------------------------------------
$game_map.terrain_tag(x, y)
$game_player.terrain_tag
$game_map.events[event_id].terrain_tag

# Check Region ID
# ----------------------------------------------
$game_map.region_id(x, y)
$game_player.region_id == n
$game_map.events[event_id].region_id == n

# Check Map Name and Map ID
# ----------------------------------------------
$game_map.name
$game_map.map_id

# Check if Event is Near Player
# ----------------------------------------------
$game_map.events[n].near_the_player?

# True/False. Distance for detection is 20 squares.
# n = Event ID
That script will only be able to check if the event is within 20 tiles of the player. You want it to be 3, so ...


You need to use the distance formula, and use a lot of variables. Each event needs its own unique variable to store the location.


Just copy this formula (it requires a script call):


event_distance_zpsc0184ced.png



Change the conditional branch to 3 instead of 5, and if true, the event is within the range of the player.
Ehrrr... I wanted to know how I can make an animation for an status, like: Your character has the "In flames" status, and it would have an animation with it, a looping fire animation above the character. Sorry for my bad english...
That is not an "event system".


Please start a new thread, and specify if you're talking about something you want only in battle, or only on the map, or both. It should probably go into RGSS3 Script Requests, as you'll likely need a script to do it.
That is not an "event system".

Please start a new thread, and specify if you're talking about something you want only in battle, or only on the map, or both. It should probably go into RGSS3 Script Requests, as you'll likely need a script to do it.
Oh, ok! I would only use it in battle, thanks anyway!
Been churning out revisions of AI for interesting combatants for XAS all with event pages. I have an issue where they get stuck at the bottom of the screen after moving over there. Often times these events are larger than 32x32. While I'm fairly certain they still have their original hitboxes. I have nothing to tweak them. 

There are 7ish pages in total. Here is a sample: 
I8xppxC.jpg


0yYtTzS.jpg

The scripts I'm using to make this work is 1, A script that enables me to use more names self switches. 2, A script by Tsukihime that extends conditions by making a comment box and below it put a conditional branch block. Works like a condition for the page to activate 3, XAS - Action battle system with a few small script adds to give access to things like the stamina bar, if the player is hitting or if he is healing/using item. 4, Galv's Move Route to play animations on top of specific events. 5, a script that can detect the range between player and the event in question, or even event to event. 

Any idea what could cause this odd behavior of the event getting stuck at the lower edge of the screen? Any questions?
Tab 6 has no conditions. So the engine will NEVER check any of the lower-numbered tabs to see if they should be active. It checks from right to left (highest number to lowest), and stops as soon as it finds one whose conditions are met (which includes any with no conditions).


Also, this is not an event system, nor an advanced one. It is a single event not behaving as you expect. If you have further problems with this, please start a new thread in VX Ace Support, or if you think it's related to the script, in RGSSx Script Support - with links to the script(s).
Noted, I imagined "advanced" could also classify as a system that had a lot of background scripts that played into the system as arguably they do add to the complexity of an event. If you had read my post a bit more thoroughly I did explain that the comment on the pages sets up a condition for that page along with the conditional branch.

In any case I won't pursue the point further. The actual event flow is, I guess, simplistic even if to me the underlying mechanics of it is not. Sorry that I misplaced and thanks for pointing me in the right direction ^-^
Hi! I am new to RPG Maker and although I get most of it and are doing quite well something is confusing me and really annoying me. I am trying to open the game with a cutscene. However I do not want the player to be there so I set player position to another map. But whenever I try to do the cutscene it never works and I have found out my events are only running when the player is on the same map as the event. Is there a way to get past this because I have been trying for ages to no avail.
But whenever I try to do the cutscene it never works and I have found out my events are only running
This topic is for event systems, not for basic cutscenes.
From the sound of it, you need to learn how to use switches from the basic tutorials, and look at the sample games to learn how cutscenes are done.


Follow the link in my signature, it will guide you to those tutorials and sample games.
Yes, the events only run when the player is on the same map. Only a single map (and its events) are loaded at a time. Events on other maps are never in memory.


Look for the Change Transparency command (third page, I think). Also if you want one of these cutscenes to begin the game, look for the Transparency checkbox in the System tab.
So I have a simple issue (I hope!). So in one area I'm having it so you have to activate 5 crystals to move through a platform. However, I just can't seem to get this to work!

On each crystal I have it so when you click it the Crystals activated variable is increased by 1 and the event that you need to walk through is set to make you transfer through it when the Crystals activated variable is 5 or greater. untitled.JPGuntitled1.JPG Regardless of what I do the platform just turns blue.
Event touch only works when the event moves on the player - you need player touch if you want the teleport to be triggered by the player.


That said, you can also optimize your logic with self-switches and variable conditions:


I assume that "crystal E activated" is one switch for each crystal to prevent the crystal from adding again?


You don't need to use up your general switches for this, that is what self-switches are for - just use self-switch A for every crystal and it will work the same.


In the transfer event, what is your second page?


If that page has no condition, it will take priority over the first and the first one will never be activated


If the player touch doesn't help, that page is where the problem lies.
Event touch only works when the event moves on the player - you need player touch if you want the teleport to be triggered by the player.

That said, you can also optimize your logic with self-switches and variable conditions:

I assume that "crystal E activated" is one switch for each crystal to prevent the crystal from adding again?

You don't need to use up your general switches for this, that is what self-switches are for - just use self-switch A for every crystal and it will work the same.

In the transfer event, what is your second page?

If that page has no condition, it will take priority over the first and the first one will never be activated

If the player touch doesn't help, that page is where the problem lies.
So should I have the transfer page have a list of condition branches that state if all 4 self switches are turned on it'll work? I'll go ahead and attempt this.

Edit: unfortunately the condional branch didn't work.
So should I have the transfer page have a list of condition branches that state if all 4 self switches are turned on it'll work? I'll go ahead and attempt this.


Edit: unfortunately the condional branch didn't work.
No, you misunderstood - the transfer page cannot check the self-switches of other events - nothing can check the self-switches of other events.
The transfer page should check the variables, same as it did above already - you should only use the self switches to prevent the crystal events from being accessed more than once.


Post a screenshot of the second page of the transfer event if changing that event page to player touch didn't work.
No, you misunderstood - the transfer page cannot check the self-switches of other events - nothing can check the self-switches of other events.

The transfer page should check the variables, same as it did above already - you should only use the self switches to prevent the crystal events from being accessed more than once.

Post a screenshot of the second page of the transfer event if changing that event page to player touch didn't work.
Ohhhhhhhh! Okay I went back. Deleted the 2nd event page for the transfer changed it so you could just walk through it and worked on the self switches and variables as you mentioned and now it works! Thank you so much! I feel rather dumb I didn't think of it.
Ok, so I've been trying to make a farming system, with growth by day and being able to plant whatever you want in whatever plot you want to plant it in. What I have come up with will result in me making 52 variables and 471 switches (52 plots, 22 plants, 3 seasons). I used the scripts and common events in the Rural Farm Tile Pack sample game, and used an event in the sample game as a guide of where to start.

And it works, at least on the small scale, but it should scale well...just need to make sure I don't mess something up...will take a lot of bug testing....anyway: I just want to get a few things out of the way before I start the process of actually making it completely work, don't want to get half way through and realize there was a better way to do something.

1. I noticed when play testing that when you change your equipped item on a plot that you can't used said item until you step off again. As in, you hoe the ground, then you have to step off and back on again to plant seeds, and then step off and on again to water the seeds. Could lead to annoyance for players and I'm hoping there is a way to chage that behavior that I'm not seeing.

2. I'm using a lot of parallel processes and I have heard that can lead to performance issues (which is logical) and I'm wondering if there was a way to make some of these parallel process....not. I'm not hopeful about that, but maybe I'm overlooking something with my lack of experience.

3. Am I missing something obvious that would make this easier to make?

The basic layout of the event, I think it will end up having 93 pages when all is said and done, and will be on the map, modified with different switches/variables 52 times.....yeah.

Thanks to anyone who takes a look.
I'm not sure if this would be considered a double post since I posted that a week ago, if so, sorry.

But I managed to solve all of my problems. I ran into another issue and in coming up with a solution to that I realized that I would essentially have to change the who way I approach the whole system, but in doing so I came upon some solutions to the problems with the earlier events I couldn't rectify.

Lost a few days worth of work...but that happens, it's going to end up better anyway.
Double post is posting after yourself within 72 hours (3 days). So no, not a double post.

 
I suppose this goes here: I need help with a Blackjack event I'm making.
 
I'm not very experienced with programming in RPG Maker, so I tried to do the best with what I do know, but it's not particuarly great. This is how I draw the first card in the game, for example.
 
p43WdAb.png

 
It goes on like that for all fifty-two cards, and that's how I draw every card in the game. Needless to say, it's incredibly inefficient. It's also tedious to make and has a tendency of bugging up when you play the game more than once for reasons I can not find out.
 
I've turned the Blackjack event into its own game which can be found and opened right here. If anyone could help me fix it, I would be very grateful.

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