Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,920
First Language
English
Map Drops

Author: Tsukihime

hRoeD.jpg


Overview

This script allows you to discard items from your inventory and onto the map.

You can then pick it up later.

Features

  • 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

Usage

Go to your item menu and press the A key (game "X") to drop an item.

Then see it on the map. The key is customizable in the configuration.

To add a map drop using script calls, use



Code:
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. The number corresponds to the database ID of the selected 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.



Code:
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)
You can also use script calls to drop items from your inventory



Code:
drop_item(string, amount)
Items will be dropped where you're standing though.

You can set decay times for map drops.

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



Code:
<drop-decay: n>
There are also some configuration options.

Download

Script: http://db.tt/6wJQYmqV

Notes

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.
 
Last edited by a moderator:

RyanA

Happy Cat
Veteran
Joined
Jun 28, 2012
Messages
2,423
Reaction score
230
First Language
English
Primarily Uses
Wow, that's pretty nifty, nice one ;D
 

ShinGamix

DS Style 4Ever!
Veteran
Joined
Mar 18, 2012
Messages
3,927
Reaction score
494
First Language
April Fools
Primarily Uses
N/A
*dumb question

Can this be used with on map battles to do enemy drops?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,920
First Language
English
This script provides a way to create drops, but you need to figure out how to make the script calls yourself in your battle system.
 
Joined
Oct 9, 2018
Messages
354
Reaction score
233
First Language
Greek
Primarily Uses
RMVXA
Hello i don't know if this script is still supported but when i put it in my game it drops the FPS to 0 and it lags heavily.. Does anyone have the same issue?
 

Latest Threads

Latest Posts

Latest Profile Posts

Made this sign for a you-know-what type of business, completely from scratch.
Gotta admit, i'm extremely proud of it.

image.png
After 7 months of really hard work and then 6 months of lazing around and procrastinating with adding the final touches my game is finally complete! Not bad considering that a year ago I didn't really even know about variables. Thanks to everyone who helped with questions and assets! Feels good to have a game under my belt! Ep2 (also self contained) may possibly come in the future!
I just made a breakthrough in my Battlecore problem where the Abort Battle command wouldn't work after using a Custom Action Sequence skill. It seems that Abort Battle can't be the last command in the event.
Before, the event was ordered (Dialogue -> Abort Battle). But having the message appear LAST fixed it.
(Abort Battle -> Dialogue)
"Does anyone remember the new year 2022? yeah, that was like yesterday. Wait, what do you mean by '2022 is almost over'?"
kuestsdynamisxp001.jpg


Just a glimpse of how Kuests Dynamis XP would look like.

Forum statistics

Threads
126,887
Messages
1,182,085
Members
166,675
Latest member
OPOPOP
Top