Is it possible to add some minor changes after a random encounter on the same spot such as, leaving a trace of a defeated/killed enemy (like blood trace) in the editor without a plugin? Since I am using random encounter with invisible monsters, I thought it'd be a nice touch.
Help with random encounter aftermath
RPG Maker MV SupportYou could make all troops have troop events turn on a switch at start of battle, and have a parallel process event on the map which checks that switch, if it is ON, make the effect and turn it off..
how would you do that without a plugin?
You would need a dummy event with the same event id on every map, or an event spawner (depending on how long you wanted the effect to hang around), or a way to change the map itself and redraw it.
@Engr. Adiktuzmiko This seem like a simple method without the plugin.
@Shaz I want the trace hang around through out entire game supposedly if the player decided go back in the same spot later on. Isn't event spawner one of Yanfly's plugin?
@Shaz I want the trace hang around through out entire game supposedly if the player decided go back in the same spot later on. Isn't event spawner one of Yanfly's plugin?
Yes, Yanfly has an event spawner plugin. But you'd still need a way to save the number of random encounters defeated on each map and their locations, if you want the blood patch to stay around for the entire game.
And you said you preferred a non-plugin approach 🙂
In that case, may I suggest you check out my Change/Copy Tiles plugin? You could use the switch in battle and parallel process to get the map id, x and y location of the player, then use the Change Tiles command to set an unused layer at that location to a specific tile id for the blood patch. That is saved and will be there for the rest of the game, or until you deliberately remove it. You'd just have to be careful to make sure you're not replacing something that already exists on a layer, which could be tricky if all layers are already used.
And you said you preferred a non-plugin approach 🙂
In that case, may I suggest you check out my Change/Copy Tiles plugin? You could use the switch in battle and parallel process to get the map id, x and y location of the player, then use the Change Tiles command to set an unused layer at that location to a specific tile id for the blood patch. That is saved and will be there for the rest of the game, or until you deliberately remove it. You'd just have to be careful to make sure you're not replacing something that already exists on a layer, which could be tricky if all layers are already used.
Omg. How can I be this forgetful---👋 I'm so sorry, I forgot to ask if it will work with parallax maps 😐 I'm sorry--
You can use animations and such for the bleed effect as long as you have the graphics for it.
Oh? That's all I need?
animations are temporary. If you want them to stay for the duration of the game, you'll need to use something else.
My plugin should work with parallax maps. You will still set the X and Y location where the blood is meant to appear, and you'll still need the blood image in a tileset. It will be drawn on top of the parallax.
My plugin should work with parallax maps. You will still set the X and Y location where the blood is meant to appear, and you'll still need the blood image in a tileset. It will be drawn on top of the parallax.
That's neat! May I know which plugin, please? You can add the link to the plugin if you want (I know it's the opposite from what I need but I have no choice
)
)You could find it by searching, which is exactly what I would have to do to provide the link.
https://forums.rpgmakerweb.com/index.php?threads/tile-changer-copy-tiles-and-change-tiles.90437/
https://forums.rpgmakerweb.com/index.php?threads/tile-changer-copy-tiles-and-change-tiles.90437/
Sorry about that- Thank you, ma'am.
Okay, I've figured out how to use the plugin command as a switch in a parallel process after a battle but, what confused me is the tile ID in change tile command. How do I figure this out?
You need to have a tile in your tileset with the image you want to show.
If you are completely parallaxing, and all of your tilesets are blank, you can put it in one of the early B tiles (not the first one, and not any that you're using for passage settings). Then when you want to change a tile, you need to get the x and y locations using the Control Variables command, then call the plugin command to change the tile. You can pass in the variables as the coordinates, the correct tile ID to change it to, and I'd probably go with layer 2 to start with, and see how it goes.
If you want more assistance than that, you'll have to show a screenshot of the event you've set up, and show us where the blood stain tile is in the Tilesets tab.
I'm not sure what you mean by "use the plugin command as a switch in a parallel process" - this plugin has nothing to do with switches. That might influence whether the plugin call works for you.
If you are completely parallaxing, and all of your tilesets are blank, you can put it in one of the early B tiles (not the first one, and not any that you're using for passage settings). Then when you want to change a tile, you need to get the x and y locations using the Control Variables command, then call the plugin command to change the tile. You can pass in the variables as the coordinates, the correct tile ID to change it to, and I'd probably go with layer 2 to start with, and see how it goes.
If you want more assistance than that, you'll have to show a screenshot of the event you've set up, and show us where the blood stain tile is in the Tilesets tab.
I'm not sure what you mean by "use the plugin command as a switch in a parallel process" - this plugin has nothing to do with switches. That might influence whether the plugin call works for you.
For now, I am experimenting it with default tiles.
This is what I did in the troops (I forgot to change the battle background
):
And this what I did in the map:
I couldn't figure out what to type for the tile ID
This is what I did in the troops (I forgot to change the battle background
):There is a thread around somewhere that talks about how to determine your tile ID. I think it'll be in the Tutorials forum (maybe General, or MV, and I'm pretty sure there's one in the Ace tutorials, and the info is exactly the same for Ace and MV). The top left B tile is 0, and it works from left to right, then down all the rows. B contains 256 tiles, so that makes the top left C tile #256. So to just test it out, I suggest using tile ID 1, which will be top row, second column in the B tileset. When you switch to your parallax tileset or if the blood stain is a different tile, you'll have to figure that out.
I wouldn't set up the event like that. The plugin command is what's going to change the tile, not any sprite on any event. And because this can happen on any map, you really want it to be a common event, not a map event. So ditch that event, and create a common event that's set to parallel process and conditioned by that same switch. Then make it do this (use different variable numbers - whatever you have available):
So it's getting the location of the player, then passing those variables through to the plugin, which will change the tile at those coordinates, on layer 2 (which is the first upper layer), to id 1, which is the second tile in the B tileset. Then it's turning off the switch as it only needs to run once. The location and tile ID are saved, so if you leave that map and come back, it will still be there.
If that doesn't work, it could be something with your battle conditions - the condition and span need to be set "just right". Or it could be something about the event. So if you still have problems, please post a screenshot of your new common event, and show us what's on that tileset.
Oh - and if this can be run on any map, the blood splatter needs to be in exactly the same place on every tileset. Otherwise you could end up with a blood splatter on one map, and a teddy bear on another, if that's what you have in that location in the tileset. 🙂
edit: actually, you can avoid using variables altogether and just put this in the common event:
I wouldn't set up the event like that. The plugin command is what's going to change the tile, not any sprite on any event. And because this can happen on any map, you really want it to be a common event, not a map event. So ditch that event, and create a common event that's set to parallel process and conditioned by that same switch. Then make it do this (use different variable numbers - whatever you have available):
Code:
Control Variables: 15: Player X = Game Data > Character > Player's Map X
Control Variables: 16: Player Y = Game Data > Character > Player's Y Map Y
Plugin Command: ChangeTile $gameVariables.value(15), $gameVariables.value(16), 2, 1
Control Switches: 50 Random Encounter OFF
So it's getting the location of the player, then passing those variables through to the plugin, which will change the tile at those coordinates, on layer 2 (which is the first upper layer), to id 1, which is the second tile in the B tileset. Then it's turning off the switch as it only needs to run once. The location and tile ID are saved, so if you leave that map and come back, it will still be there.
If that doesn't work, it could be something with your battle conditions - the condition and span need to be set "just right". Or it could be something about the event. So if you still have problems, please post a screenshot of your new common event, and show us what's on that tileset.
Oh - and if this can be run on any map, the blood splatter needs to be in exactly the same place on every tileset. Otherwise you could end up with a blood splatter on one map, and a teddy bear on another, if that's what you have in that location in the tileset. 🙂
edit: actually, you can avoid using variables altogether and just put this in the common event:
Code:
Plugin Command: ChangeTile $gamePlayer.x $gamePlayer.y 2 1
Control Switches: 50: Random Encounter OFF
Okay, I've found that thread about the TileId identification(?). It will take awhile for me to figure out the tile id I'm after so, I'll keep you updated soon.
And thank you for the tips and codes, ma'am @Shaz
Edit: so, I can keep the Troops Conditional Branch?
And thank you for the tips and codes, ma'am @Shaz
Edit: so, I can keep the Troops Conditional Branch?
I tried doing both codes (I have figured the Tile ID), but nothing happens 😅
Is there a mistake in Troops condition?
EDIT: Where should I have placed the plugin? I wonder if it's because I've misplaced it.
Is there a mistake in Troops condition?
EDIT: Where should I have placed the plugin? I wonder if it's because I've misplaced it.
Please also give a screenshot of the plugin manager.
Okay. Here are the Screenshots:
And this is the Tile I am using (It's marked with the green square):
And this is the Tile I am using (It's marked with the green square):
Original thread: https://forums.rpgmakerweb.com/threads/help-with-random-encounter-aftermath.108538/