Props can be 'used' on items in inventory and disappear

It Does What It Says on the Tin: Resolved Issues

Moderators: Moderator, Developer, DM

Post Reply
User avatar
Kitunenotsume
Posts: 631
Joined: Sun May 17, 2020 10:57 pm
Location: UTC -7

Props can be 'used' on items in inventory and disappear

Unread post by Kitunenotsume »

As noted in the title, I have noticed that, due to a missclick, that props have the ability to "activate" while targeting inventory items.

Unfortunately, as they only spawn when used as a ground-target, this means that the item disappeared entirely.
I suspect that this has to do with the target selection of the activate ability being capable of targeting both ground and single target, when really it should only be ground.

I'm not sure if props use a individualised script for their ability, or if it is properly managed in the spells.2da, but the target selection should probably be adjusted.
I play a baker. Sometimes she provides counseling or treatment.
Ask about our Breadflower daily special to save five coppers off a purchase of five pastries.
She seems unusually interested in cursed items.
She has also been seeking a variety of gems and stones.
Cinnamon
Posts: 140
Joined: Sun Sep 01, 2019 1:25 pm

Re: Props can be 'used' on items in inventory and disappear

Unread post by Cinnamon »

Unsure how anyone would "fix" this interaction, as this is something any activate item can accomplish.

It's how people scribe scrolls without generating a chaos flurry, amongst other things.

I shall be hawking this thread for a curious answer... My vote's on Wand System...
Main Four
Bar, Thayvian Slumdog // Stunraraeliyra, Idealistic Blackheart // Chalk Hart, Sorceress of Amaunator // Joel, Emerald Commoner

Noa,
Laslow,
Gruum,
Truffles, Underdark
Chalice, Underdark
Caspar,
Tracey,
Penelope
User avatar
Kitunenotsume
Posts: 631
Joined: Sun May 17, 2020 10:57 pm
Location: UTC -7

Re: Props can be 'used' on items in inventory and disappear

Unread post by Kitunenotsume »

Proper activate item resolution would be to move the script off the item and into an NSS, and bind the NSS to the spells .2da where target parameters can be refined.

Depending on the implementation of the "activate item", this could be simple if they share the same code aside from the item reference, or tedious and lengthy if each prop has it's own code.


It's early, sorry.
On rereading you mean to point out that targeting an item is necessary for the function of spells, as required in the generation of wands and scrolls.

Which is true, but the script itself will have an inventory item as it's oTarget then, and a conditional could be applied to shortcut the appropriate of the script.
I play a baker. Sometimes she provides counseling or treatment.
Ask about our Breadflower daily special to save five coppers off a purchase of five pastries.
She seems unusually interested in cursed items.
She has also been seeking a variety of gems and stones.
Post Reply

Return to “Solved Problems”