I had a look at the link you gave me its a bit hard to follow iv only used rmvxace.
Event System Support (expert users only)
RPG Maker VXAce SupportDon't worry, just do the same thing with rmvxace and it should still work :3
Just replace all "Fork" With conditional branches and you'd be fine.
Just replace all "Fork" With conditional branches and you'd be fine.
Ok that helped a little but what is [dn]current state? iv never seen it.
Merged with event system support.
Time systems are actually some of the easiest things to make. I can help you out, but I need to see what you've got so far. If you could upload your project, that'd be great. If you don't want to, screenshots of all events involved is a must.
Time systems are actually some of the easiest things to make. I can help you out, but I need to see what you've got so far. If you could upload your project, that'd be great. If you don't want to, screenshots of all events involved is a must.
where is this?
Right, this is frustrating me to no end, it's probably really simple so sorry if it is D: but I haven't tried to do something like this and I'm wondering if it's possible without parallel processes.
Basically, I'm trying to get a picture to show up - just a little tooltip at the bottom of the screen that says 'EXAMINE BARREL', or whatever - when the player touches an event. So that's all set up fine. How do I make that darn picture disappear when the player's not touching the event? I have a feeling I'd need to use a parallel process but if there's an alternative to bogging down my maps with them then I'm all ears.
Basically, I'm trying to get a picture to show up - just a little tooltip at the bottom of the screen that says 'EXAMINE BARREL', or whatever - when the player touches an event. So that's all set up fine. How do I make that darn picture disappear when the player's not touching the event? I have a feeling I'd need to use a parallel process but if there's an alternative to bogging down my maps with them then I'm all ears.
I'm thinking you can use a common event, a switch and a variable to make this work.
Touching the barrel will set the variable to 1, or 4. The number corresponding to the type of message you want shown. Then it will turn on the switch we aptly call "show tooltip".
Common Event Parallel Process with condition of switch "show tooltip" set to on.
inside, bunch of conditional branches with the variable number being the condition. say 1 or 4 will make the picture 'EXAMINE BARREL' appear. 4 seconds later, or wait (240) frames, it turns off "show tooltip" switch.
This is the timed version. If you want it specifically for proximity, then you can switch the wait with a condition that checks the X and Y of that event plus the players. Then it will at least only lag the game while you're near that object instead of having a parallel process going all the time. If you're thinking of this, you'll also need to set a second variable as the ID of the event when the player touches it:
"$game_variables[##] = self.id"
i think that should work. Then you can use that to make sure its checking the player and the correct events location.
What's nice about this method is that you can have all of the notices in one place and change them appropriately.
edit: a third option if you don't want a common event with a parallel process waiting to be triggered, you can just have that common event be a non-triggered CE, and have the parallel process with the switch waiting on the map. Have that map call the common event when it's triggered. Then only those maps that require it will have to deal with it~
Touching the barrel will set the variable to 1, or 4. The number corresponding to the type of message you want shown. Then it will turn on the switch we aptly call "show tooltip".
Common Event Parallel Process with condition of switch "show tooltip" set to on.
inside, bunch of conditional branches with the variable number being the condition. say 1 or 4 will make the picture 'EXAMINE BARREL' appear. 4 seconds later, or wait (240) frames, it turns off "show tooltip" switch.
This is the timed version. If you want it specifically for proximity, then you can switch the wait with a condition that checks the X and Y of that event plus the players. Then it will at least only lag the game while you're near that object instead of having a parallel process going all the time. If you're thinking of this, you'll also need to set a second variable as the ID of the event when the player touches it:
"$game_variables[##] = self.id"
i think that should work. Then you can use that to make sure its checking the player and the correct events location.
What's nice about this method is that you can have all of the notices in one place and change them appropriately.
edit: a third option if you don't want a common event with a parallel process waiting to be triggered, you can just have that common event be a non-triggered CE, and have the parallel process with the switch waiting on the map. Have that map call the common event when it's triggered. Then only those maps that require it will have to deal with it~
If you really don't want to use a parallel process (common event or regular event), then you just need to surround that tooltip event with other events, that when you step on them, erase the picture.
Aha, I took your idea Cel and used a region effects script to save on loads of events. Just have one event that deletes the picture when you step on a region, which is surrounding each event. Woohoo~
I created a new event sprite to use for some floating platforms for a cave action puzzle I'm trying to create.
They're designed so that if the player is standing on the tile above them, it creates the illusion that they are in fact standing on top of it.
I've created a room that looks like this (unfinished map, just trying to get the puzzle functioning):
What I'd like to do is make it so that you can jump in any of the 4 directions to any platform that is currently "up," and you have to cross from one side of the room to the other. However, when you jump on a platform, all but one of the surrounding ones (in the 4 directions) will fall away after about 2 or 3 seconds. This effectively creates a "correct" path to follow through the room, but it's not apparent what the path is until you've started jumping across. If you are still standing on a platform when it disappears, then you fall and get sent back to the beginning of the room, resetting all the platforms to their original positions.
However, the implementation of this puzzle has so far stumped me. I started creating a parallel process event that would track your x and y coordinates and make the platforms disappear accordingly, but the size of the event would be so incredibly massive as to be impractical. I had conditional branches checking your x-y coordinate once the platform you were on and surrounding platforms disappeared, and if it matched any of them, you fell and were sent back.
In order to ensure you can't jump to empty spaces, I've created a series of switches for each platform to mark them as either "up" or "down." If the down switch is on, then you cannot jump to that platform's space.
I know I need to use a parallel process SOMEHOW, because any other kind of event will prevent you from using the jump action, but I just can't figure out how to write it in any kind of a logical manner. I tried using the switches to trigger smaller parallel process events so as not to make the entire room one gigantic parallel process event with tens if not over a hundred conditional branches in it, but I couldn't figure out how to manage that either.
I feel like I have all the pieces and I can kind of make them fit together - for example, I can get a couple platforms to function properly, but then trying to get more becomes too complicated and I lose track of what I'm doing and it becomes too jumbled and buggy. I just feel like there must be some method I haven't thought of that would greatly simplify the process.
Any thoughts?
EDIT: Got it figured out, though I'm still wondering if there is perhaps a better solution than the one I came up with. Basically each platform event has its own parallel process to do a series of conditional checks to see what platforms are still up next to it, using a series of about 20-25 switches. Seems to work just fine without any lag, though.
Here's a video of the whole process, including that jumping at an empty/flashing space drops you and taking too long to jump drops you.
http://www.youtube.com/watch?v=1IhTHHmRdQ8&feature=youtu.be%27
They're designed so that if the player is standing on the tile above them, it creates the illusion that they are in fact standing on top of it.
I've created a room that looks like this (unfinished map, just trying to get the puzzle functioning):
What I'd like to do is make it so that you can jump in any of the 4 directions to any platform that is currently "up," and you have to cross from one side of the room to the other. However, when you jump on a platform, all but one of the surrounding ones (in the 4 directions) will fall away after about 2 or 3 seconds. This effectively creates a "correct" path to follow through the room, but it's not apparent what the path is until you've started jumping across. If you are still standing on a platform when it disappears, then you fall and get sent back to the beginning of the room, resetting all the platforms to their original positions.
However, the implementation of this puzzle has so far stumped me. I started creating a parallel process event that would track your x and y coordinates and make the platforms disappear accordingly, but the size of the event would be so incredibly massive as to be impractical. I had conditional branches checking your x-y coordinate once the platform you were on and surrounding platforms disappeared, and if it matched any of them, you fell and were sent back.
In order to ensure you can't jump to empty spaces, I've created a series of switches for each platform to mark them as either "up" or "down." If the down switch is on, then you cannot jump to that platform's space.
I know I need to use a parallel process SOMEHOW, because any other kind of event will prevent you from using the jump action, but I just can't figure out how to write it in any kind of a logical manner. I tried using the switches to trigger smaller parallel process events so as not to make the entire room one gigantic parallel process event with tens if not over a hundred conditional branches in it, but I couldn't figure out how to manage that either.
I feel like I have all the pieces and I can kind of make them fit together - for example, I can get a couple platforms to function properly, but then trying to get more becomes too complicated and I lose track of what I'm doing and it becomes too jumbled and buggy. I just feel like there must be some method I haven't thought of that would greatly simplify the process.
Any thoughts?
EDIT: Got it figured out, though I'm still wondering if there is perhaps a better solution than the one I came up with. Basically each platform event has its own parallel process to do a series of conditional checks to see what platforms are still up next to it, using a series of about 20-25 switches. Seems to work just fine without any lag, though.
Here's a video of the whole process, including that jumping at an empty/flashing space drops you and taking too long to jump drops you.
http://www.youtube.com/watch?v=1IhTHHmRdQ8&feature=youtu.be%27
Merged with event system support. Help with complicated usage of events go in this thread.
I set up a custom day/night cycle common event a while back, and tweaked it to perfection pretty much. By itself, the day/night cycle common event works just fine. I recently started working on my weather system common event, but I had planned to make the day/night cycle event react to my weather system whenever the weather switched on.
I used a literal switch that would turn on inside of my weather event only when my random selection chose a weather event and once my timer counted down, would turn the weather switch off. Inside of my day/night event, I created nested conditional branches that checked if the weather switch was on, and if it was then it would continue running my day/night system, but use a slightly different screen tint for that time of day.
The system itself worked, I suppose, but way too slowly to keep up with my cycles. By the time the screen actually tinted to the correct color, the weather event was already tapering off, and then the weather would go off and my screen would stay gray for a long period after, THEN tint back to the correct color again. I tried everything to fix it, but I gave up, and decided I would try to post my common events on here and see if maybe I'm doing something wrong. If there isn't a way to make it work, I'll just have to deal with the screen being saturated with the regular day/night cycle screen tints whenever my weather event kicks on.
Anyway, these are my common event scripts in order of how they appear on my database screen. None of them have triggers aside from the weather timer event (I tried fiddling with it for my day/night cycle to see if it would make the screen tints behave different or faster, but it acted strangely, and I wasn't really sure what it was accomplishing in the first place so I turned it back to 'none' for all of the others besides the weather timer)
Time Track (For Day/Night Cycle)

Day/Night Cycle Event


Weather Tracker (for Weather Event)

Weather Event

Weather Timer (for Weather Event Timer countdown)

All I'm really trying to do is have my day/night cycle use a different tint whenever my weather system is active. I thought it would be a simple task, but either it isn't or I'm just not well-versed in using common events. Most likely the latter.
(p.s. sorry for the thumbnail pictures you have to click on - I'm relatively new to the forum and I'm not entirely sure how to use the [ spoiler ] tag command or whatever it is so you can see the full picture more easily)
I used a literal switch that would turn on inside of my weather event only when my random selection chose a weather event and once my timer counted down, would turn the weather switch off. Inside of my day/night event, I created nested conditional branches that checked if the weather switch was on, and if it was then it would continue running my day/night system, but use a slightly different screen tint for that time of day.
The system itself worked, I suppose, but way too slowly to keep up with my cycles. By the time the screen actually tinted to the correct color, the weather event was already tapering off, and then the weather would go off and my screen would stay gray for a long period after, THEN tint back to the correct color again. I tried everything to fix it, but I gave up, and decided I would try to post my common events on here and see if maybe I'm doing something wrong. If there isn't a way to make it work, I'll just have to deal with the screen being saturated with the regular day/night cycle screen tints whenever my weather event kicks on.
Anyway, these are my common event scripts in order of how they appear on my database screen. None of them have triggers aside from the weather timer event (I tried fiddling with it for my day/night cycle to see if it would make the screen tints behave different or faster, but it acted strangely, and I wasn't really sure what it was accomplishing in the first place so I turned it back to 'none' for all of the others besides the weather timer)
Time Track (For Day/Night Cycle)

Day/Night Cycle Event


Weather Tracker (for Weather Event)

Weather Event

Weather Timer (for Weather Event Timer countdown)

All I'm really trying to do is have my day/night cycle use a different tint whenever my weather system is active. I thought it would be a simple task, but either it isn't or I'm just not well-versed in using common events. Most likely the latter.
(p.s. sorry for the thumbnail pictures you have to click on - I'm relatively new to the forum and I'm not entirely sure how to use the [ spoiler ] tag command or whatever it is so you can see the full picture more easily)
Instead of tinting the screen for your weather effects (since it seems to be clashing with your day/night cycles) you might want to consider using the Show Picture command instead and lay a semi-transparent color over the top of your map depending on what weather effect is active. That way your weather effect screen tints would be independent and wouldn't interfere with the day and night screen tints.
I actually tried out another method, which SEEMS to work okay. The only downsides are a very minor attempt to tint the screen back to normal color whenever the weather event is active (barely noticeable) and a bit messier since it involves a few extra regular events per map.
The only common event I edited was my Day/Night cycle, which now looks like this:

And added a map event that looks like this:

What I changed to it: The Day/Night common event now checks each time of day according to a variable window of "greater than or equal to" the time-of-day number instead of previously only checking "equal to". That way whenever the new map event shut off, it would constantly check the day/night common event for those windows of time and change the tint back. The only side effect I noticed was during the actual weather events, the screen would attempt to tint back to the regular color from the day/night cycle (but it barely started tinting before it automatically switched back to the set weather tints for each time of day). It was barely noticeable and I can live with it I suppose.. I didn't want to try and mess with it again in fear I would screw it up - unless there is an easy way to manage that using conditional branches inside of my day/night common event again, I imagine? I'm not entirely sure.
p.s. I'm not entirely sure what the "wait until completion" command does on the tint screen option. I had assumed it pauses ALL other events until it completed (I had wanted the screen to completely tint first, THEN the weather actually kick on) but I also am wondering if that has anything to do with why the screen would keep trying to tint back to normal during a weather event.
The only common event I edited was my Day/Night cycle, which now looks like this:

And added a map event that looks like this:

What I changed to it: The Day/Night common event now checks each time of day according to a variable window of "greater than or equal to" the time-of-day number instead of previously only checking "equal to". That way whenever the new map event shut off, it would constantly check the day/night common event for those windows of time and change the tint back. The only side effect I noticed was during the actual weather events, the screen would attempt to tint back to the regular color from the day/night cycle (but it barely started tinting before it automatically switched back to the set weather tints for each time of day). It was barely noticeable and I can live with it I suppose.. I didn't want to try and mess with it again in fear I would screw it up - unless there is an easy way to manage that using conditional branches inside of my day/night common event again, I imagine? I'm not entirely sure.
p.s. I'm not entirely sure what the "wait until completion" command does on the tint screen option. I had assumed it pauses ALL other events until it completed (I had wanted the screen to completely tint first, THEN the weather actually kick on) but I also am wondering if that has anything to do with why the screen would keep trying to tint back to normal during a weather event.
Psst, your wait commands can go up to 999 frames. There's no need for 10 of the same 60 frame wait commands, just put in 600 frames in one of them.
Also, I'm merging this with event system support.
Also, I'm merging this with event system support.
So I'm fairly new to RPG Maker and I'm trying to make a semi customizable town (Like a building sim). I'm trying to set conditionals and I've hit a bit of a snag figuring out the exact code I'd need.
What I want to do is have the player transport to a map corresponding to the building type based off of a tile when they enter the building.
For example, if say the tile at xxx,xxx is B6, I want them to be transported to ROOM A when they enter the building.
If the tile at xxx,xxx is B7 instead of B6 however, I want them to be transported to ROOM B.
I'd also down the road like to set conditionals on my building options if a certain tile is present on the map if it's possible. Say for example B7 is on the map (Inn sign), I'd like a conditional on my building choices that takes away the choice to "build" an Inn to avoid the same building type being built on one map.
What I want to do is have the player transport to a map corresponding to the building type based off of a tile when they enter the building.
For example, if say the tile at xxx,xxx is B6, I want them to be transported to ROOM A when they enter the building.
If the tile at xxx,xxx is B7 instead of B6 however, I want them to be transported to ROOM B.
I'd also down the road like to set conditionals on my building options if a certain tile is present on the map if it's possible. Say for example B7 is on the map (Inn sign), I'd like a conditional on my building choices that takes away the choice to "build" an Inn to avoid the same building type being built on one map.
For a few of such variable transfer points, you can use the "get location info" command to find out what the tile is, and then make a conditional branch to transfer to different preselected maps.
However, a fully dynamic and variable map is very difficult to handle with events only, and it's difficult even with scripts depending on what exactly you want.
That said, I suggest you make a new topic explaining what exactly you want in your game, because it might be that you're thinking too complex. It might be that it can be done better with other approaches, or you might really need a script for that - in both cases this would be the wrong topic to ask in.
I am trying to make a taunt skill for the enemy to use.
Ideally the taunted party member would be unable to tarted any creature except the enemy who taunted him.
The player should still be able to use skills so force action is not an option.
My current solution (not implemented) would be to make several taunt states and taunt originator states than make a skill for every party member separately
and than make a common event that uses if statements(conditional switch events) to determine if the attack is valid and gets executed with every skill use. it would give the player a fail message upon executing the attack if it isn't valid.(the damage gets set to zero by making the target immune to dmg.)
I think an example would work like this:
I didn't implement this because this solution has at least 1 critical flaw. I don't know how to switch the attack command in the fighing menu and this means 1 command is used for all party members therefore making this system impossible to execute properly.
...the problem has been resolved.
Ideally the taunted party member would be unable to tarted any creature except the enemy who taunted him.
The player should still be able to use skills so force action is not an option.
My current solution (not implemented) would be to make several taunt states and taunt originator states than make a skill for every party member separately
and than make a common event that uses if statements(conditional switch events) to determine if the attack is valid and gets executed with every skill use. it would give the player a fail message upon executing the attack if it isn't valid.(the damage gets set to zero by making the target immune to dmg.)
I think an example would work like this:
enemy1 uses taunt:
Party member A is taunted
Party member A uses heavy attack at enemy2
the common event gets called by the attack.
inner workings (replicated in psoido C++ code):
If (taunted == true)
{
if (enemy1.state != taunt originator)set enemy1.state = imune;
[SIZE=small]if (enemy2.state != taunt originator)set enemy2.state = imune;[/SIZE]
[SIZE=small]if (enemy3.state != taunt originator)set enemy3.state = imune;[/SIZE]
};
psoido code end
enemy2 -> immune therfore dmg dealt = zero
Party member A is taunted
Party member A uses heavy attack at enemy2
the common event gets called by the attack.
inner workings (replicated in psoido C++ code):
If (taunted == true)
{
if (enemy1.state != taunt originator)set enemy1.state = imune;
[SIZE=small]if (enemy2.state != taunt originator)set enemy2.state = imune;[/SIZE]
[SIZE=small]if (enemy3.state != taunt originator)set enemy3.state = imune;[/SIZE]
};
psoido code end
enemy2 -> immune therfore dmg dealt = zero
...the problem has been resolved.
Hi, I'm currently attempting to do something I haven't seen in any other rpg maker game(that I've seen, so don't know if it IS in any other game yet)
The thing I'm attempting I'm trying to get to use a common event to trigger with a single event in the middle of my maps. it's basically a map rotation system, the map is at least double the width of the normal map, but also has buffer space in the middle so the rotated map doesn't show up to the player unless they are in it. I've already played around with getting such a system to work with just the common event, but I want to try to simplify it by having it detect the player's distance from the central event then flip the distances, so (+20, -15) from the event would become (-20, +15) and visa versa. I'm planning to use this system in some puzzles in my game, making it so the player might need to "rotate" their view to find something.
What I'm asking for is if there's a way to make the eventing system detect the player's location without cluttering the map with events, and if so will I be able to call it from and have a common event run the distance inversion. if not I'll just need to go back to my complex system involving manually setting up a series of conditional branches for every possible co-ordinate the player can rotate the map from(in which case I may restrict it to a central area of the map to avoid a 50 branch long common event per map)
The thing I'm attempting I'm trying to get to use a common event to trigger with a single event in the middle of my maps. it's basically a map rotation system, the map is at least double the width of the normal map, but also has buffer space in the middle so the rotated map doesn't show up to the player unless they are in it. I've already played around with getting such a system to work with just the common event, but I want to try to simplify it by having it detect the player's distance from the central event then flip the distances, so (+20, -15) from the event would become (-20, +15) and visa versa. I'm planning to use this system in some puzzles in my game, making it so the player might need to "rotate" their view to find something.
What I'm asking for is if there's a way to make the eventing system detect the player's location without cluttering the map with events, and if so will I be able to call it from and have a common event run the distance inversion. if not I'll just need to go back to my complex system involving manually setting up a series of conditional branches for every possible co-ordinate the player can rotate the map from(in which case I may restrict it to a central area of the map to avoid a 50 branch long common event per map)
Original thread: https://forums.rpgmakerweb.com/threads/event-system-support-expert-users-only.51/