pete_smith1229 Posted April 22, 2023 Posted April 22, 2023 I've tested the "Drop item (264)" effect by adding it to a helmet and everytime I equip it, it would drop an equipped item in the following order: Amulet Armor Belt Boots Cloak Bracers Ring1 Ring2 Shield Is there a way to use this opcode (or another) to drop a specific equipped item? Is there also a resource similar to this where it shows the ordering as I am not sure if what I found is accurate. Quote
jmerry Posted April 22, 2023 Posted April 22, 2023 Is there a reason you're trying to do this with opcodes? The script action DropItem has you specify exactly which item to drop. Quote
jastey Posted April 23, 2023 Posted April 23, 2023 I'd assume that not a specific item (using the item name) should happen but "drop whatever armor you are wearing", which would be quite cool if it works, actually. With DropItem you need to specify the exact item in the slot which you maybe do not know. Quote
jmerry Posted April 23, 2023 Posted April 23, 2023 That does seem to be a functionality that's missing. Opcode 264 has a couple of modes (and what you wrote doesn't match the description of either in the IESDP, so maybe that needs an update?) that are slot-based but don't let you choose a specific slot, and the DropItem script action is based on specific ITMs. There's nothing currently that does "drop the item in this specific equipment slot". A DropItemSlot action or new mode for opcode 264 does sound cool ... though I have a feeling that forcing PCs to drop items would be a very unpopular mechanic. There's a reason it isn't used in the standard game. Quote
marchitek Posted April 23, 2023 Posted April 23, 2023 Scan all ITMs, build array of type that you need (e.g. armor). Based on array build script of blocks that check "IF equipped THEN drop it". Apply this script (e.g. with some invisible summoned creature or with cutscene). Quote
pete_smith1229 Posted April 29, 2023 Author Posted April 29, 2023 Interesting, thanks all for your comments. I'm getting more involved in scripting now so will tend to go down this route. Quote
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.