This script allows you to discard items from your inventory and onto the map.
You can then pick it up later.
- Drop an item onto the map, either manually or using script calls
- Dropped items can disappear overtime (decay time)
- Customize decay times for individual items and equips
- Dropped items are displayed using their icons
- Add map drops using script calls
Go to your item menu and press the A key (game "X") to drop an item
Then see it on the map.
To add a map drop using script calls, use
add_map_drop('w23', amount) add_map_drop('a12', amount) add_map_drop('i1', amount)Where the "w" means weapon, "a" means armor, and "i" means item.
You can specify a specific x,y position on some map.
By default, the position is your player's current position, and the map ID is the current map's ID.
add_map_drop(string, amount, x, y, map_id) add_map_drop('a3', 1, 4, 5, 2) #create item in map 2 at position (4,5) add_map_drop('i1', 2, 3, 3) #map_id is omitted add_map_drop('w2', 1) # x, y, and map_id omitted)If decay time is not 0, it will disappear after that many seconds.
You can choose whether dropped items will disappear or not.
To specify decay times for individual items or equips, tag them with
<drop-decay: n>Some configuration options available:
Default_Disable - dropping items from inventory is disabled by default. Access this through $game_system.mapdrop_disabled through script calls if you need to change this throughout the game.
Enable_Maps - you can only drop items in certain maps
Enable_All - you can drop items on any map (overrides Enable_Maps options)
Script: Download here
Does someone want to improve the script by providing a nice confirmation window as well as a number input when discarding?
Also, creating the chest opening animation is kind of tedious. Someone want to do that? It's basically printing out the page list for an existing chest event and then copying all of that in script.
Edited by Tsukihime, 31 October 2016 - 09:36 AM.