Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
How to make an empty bottle?
Main Menu
  • Welcome to The RPG Maker Resource Kit.

How to make an empty bottle?

Started by Prometheus, February 05, 2009, 09:09:51 PM

0 Members and 1 Guest are viewing this topic.

Prometheus

OK, for example if you have played a few of the Zelda games then you might know what I want to do. I want to make an empty bottle-like item that will let me store water, small items, potions, etc. So far I have not found an easy way to do this. Can someone help?

Kularian

Okay, before I get caught up in typing a rather long explanatory post, one question needs to be addressed first, which makes this situation kind of simple, or kind of annoying :P

Are you planning to have just one bottle?  Or several?  There may be an easier way to do it with Scripting, but I'm an Eventer, so I can do it with events fairly easily, it'll just be a little prepatory-intensive if there's more than one bottle.

Let me know, and I'll help how I can.  Thanks!

ShellShocked

Well, make an item called 'Empty Bottle', problem solved.

Now onto the next bit. Your best bet is just to use Conditional Branches.

Example;

@>Conditional Branch: [Empty Bottle] in inventory
  @>(What you want to happen when you've got an empty bottle, e.g. fill it up)
:  Else
  @>(What you want to happen when you've NOT got an empty bottle, e.g. nothing?)

That could be an event for a single-use empty bottle...Unless, not sure this'll work, but you could set up a common event so that when you use the potion, it removes the potion (obviously) and gives you an empty bottle back.

Example;

Set the common event on the potion item (under Database) to 001: Empty Bottle, then make the common event add an empty bottle to the player's inventory.

Hope that helped...If it's wrong, it's because I'm rusty.

Good luck.