Page 1 of 1

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

Posted: Thu Nov 05, 2020 6:33 pm
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.

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

Posted: Fri Nov 06, 2020 7:27 am
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...

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

Posted: Fri Nov 06, 2020 1:11 pm
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.