Hi, everyone. New here. Been working on a module for Neverwinter Nights (absolutely wonderful game).
There's just a problem I've run into.
I'm trying to make an NPC take a certain potion from my player at a certain point in the game. Now as you know potions are stackable items, meaning you can have a batch of say up to 10 of the same potion grouped together in the same space in your inventory. This seems to lead to an interesting problem: during the game the NPC grabs all of the potions I have in the same batch, as if treating the entire batch as one single thing, rather than just deduct 1 from the batch. So if I have 3 bottles of ale at first -- all grouped together in one batch -- I'm not left with 2 but 0. This sort of thing didn't happen with non-stackable items.
Question: how do you script the thing so that the NPC will take only one potion, leaving you with still 2? Tried searching online for some tutorial or hints; no luck. Any help will be greatly appreciated, thanks!





Retour en haut







