Items on the ground using events

How can I add items on the ground using events? I know how to make the image appear, but I don't know where the item should be saved for it to look like a icon from the IconSet.

Skärmbild 2024-03-16 110916.png


Like here down by the beach, one of my NPC's somehow left a bikini behind, and I want a bikini to show up on the ground.
I would love to help, but I'm not 100% sure what you are asking.

Are you saying that you can make the Icon image appear as the Event image already or no?

Are you saying you don't know where the item details should be saved?

The item itself is saved in the same part of the Database as all the other items.

The Icon image needs to be placed in the same folder that you pull from for Event images. Which you can find by just going into the IMG folder and then the CHARACTER folder of your project. That would require you to use a program like GIMP or something to extract the Icon and make it the right size and give it the correct naming convention for the CHARACTER folder.

At least I think it does. I don't remember trying this, but I have extracted Icons before and used them for Show Picture event commands.

That is if you want to display the Icon through the Event.

There may be a plugin that also does this. I don't know because I have very little experience with plugins.

I don't know if this helps at all.

If not, maybe someone else can give better assistance or maybe you can clarify what you need a bit more.

Thanks and good luck!
So, when saving it to the characters folder, how should the image itself look like to work properly?

I want it to show up like a chest does kinda.

*EDIT* I saved the png as "Items.png" inside the "Characters" folder, but now when interacting with the item it disappears before I want it to disappear. It should disappear after the dialogue has ended, but it disappears before the dialogue, not sure why.
The Event size is the same size as a square. In MZ, that is 48x48 pixels. And you have to watch how the Character sheets/images are named in the CHARACTER folder.

For MZ, this link might help. It is from the Help file.

Which maker version are you using? Your profile doesn't say.

I'm using the latest version of RPG Maker MZ I guess, as I bought and installed it like 2-3 days ago.

But I think I got it working, but the issue now is that the bikini disappear before the dialogue has been shown.

Skärmbild 2024-03-16 112441.png
Skärmbild 2024-03-16 112557.png
Sorry, I was just asking the version meaning MZ, MV, VX Ace, etc. The maker versions have some differences.

If you look at my profile to the left, you can see there is a section you can update about Primarily Uses. That helps people when they are trying to answer your questions.

Please let us know if what I offered above for MZ doesn't help.

EDIT: Saw your edit above. The Item image shouldn't disappear until you change the Event page to a page without an Image.
So this is the second page of the event:

1710585108059.png


But as soon as I interact with the bikini it's just gone.
Please show Page 1 of that Event. I need to see when/how you are turning on that Self Switch A.
I change some things with the dialogue to see if it made any difference but nope. Here's page 1 though.

1710585483482.png


Ok, so I think I found where the issue was.. The items.png file should look like this
1710585972451.png


And not just be a single icon. Is there a way to use just a 48x48 square for my purpose to save space, or is this the only way to do it?
Sorry. I was experimenting in MZ because I haven't done this specifically before.

You can have just the one image on the Character sheet for the bikini. But you need to check the box for Direction Fix on the Event Page. That will keep the bikini from disappearing until you change to the next Event page.

I just tested it and it worked fine.

Give that a try.

EDIT: And you can uncheck Walking.
That works like a charm! Thank you! You're a life saver! 😀
Ok, so I think I found where the issue was.. The items.png file should look like this View attachment 298630

And not just be a single icon. Is there a way to use just a 48x48 square for my purpose to save space, or is this the only way to do it?
Yes, it's because it's for like "4 directions" for the event, and when you interacted the bikini, the character changed directions. Also, every direction has 3 frames of animations for walking. If the bikini is a static object, just the middle column would be fine for it to work. And like @ZombieKidzRule said, make sure to check the "direction fix" and uncheck "walking" in event properties.
Glad it helped! I always get a little messed up with the Character sheets. I have to experiment with the check boxes to make sure it is behaving the way I expect it too.
And how many items can a character png contain in total?
This is what the Help file says about the Characters:

Characters (img/characters)​


Images shown for the characters on the map.
The size for a character image can be changed freely (normally 48x48 pixels), and consist of 4 directions (up, down, left, right) and 3 patterns for a total of 12 patterns that will be arranged in the provided order. A file for 1 character will be arranged into 2 rows and 4 columns, totaling 8 images. The size of the character will be calculated using 1/12 of the width and 1/8 of the height of this file. Moreover, characters will be shown 6 pixels above a tile so they appear more natural when on top of buildings.

  • It is possible to treat 1 character as 1 file by including "$" at the beginning of the file name.
  • Including a "!" at the beginning of the file name will prevent the image from being shifted 6 pixels up, and bush elements will no longer make it appear half-transparent. This is primarily used for map objects such as doors and treasure chests.
  • It is also possible to use the "$" and "!" special characters together.
I could be wrong, but I think you could use 96 total single images on one sheet (12 x 8). But I haven't tested it. I just tested it with one image on the sheet.

@fizzly Might know immediately. I would have to experiment.
if you use a character sheet and as previous told with direct fix,
you can have up to 96 icons (non animated).

instead of "action button" make it "player touch" unless you want to
interact with it.
if you use a character sheet and as previous told with direct fix,
you can have up to 96 icons (non animated).

instead of "action button" make it "player touch" unless you want to
interact with it.
Yeah I know about the "Player touch" function, but this object is ment to be interacted with 🙂
Yeah, I don't know why this was so hard for me to test. I did something wrong with the transparency so when I tested the 96 images option, it wasn't working. So I kept fiddling with it and experimenting.

But I just did it correctly and used 9 different images in the first set of 3x3 squares and it worked fine.

Hope this helped you out and I definitely learned something in the process so it was valuable for me too.
I change some things with the dialogue to see if it made any difference but nope. Here's page 1 though.

View attachment 298629

Ok, so I think I found where the issue was.. The items.png file should look like this View attachment 298630

And not just be a single icon. Is there a way to use just a 48x48 square for my purpose to save space, or is this the only way to do it?
The problem is not that you need to copy it 9 times or the activation mode (touch/action/etc), the problem is just that you need to set it to "Direction Fix" so that when the player interacts with it, it doesnt change direction to "face the player" and loads an empty image.

please dont 9x images on simple item sheets, that will just make the image bigger (occupies more space when loaded into memory) for no reason 😅
Yeah, for instance. This is what I tested. It is just 9 out of 96 slots.

IconTest2.png

Original thread: https://forums.rpgmakerweb.com/threads/items-on-the-ground-using-events.166861/