everlast
2004-12-15 06:12:38 UTC
I have a 1 time use item that I want to only operate under certain
conditions. The thing is, I don't want the item to be consumed if the
conditions aren't right.
I've tried making it a 1 time use Unique Power and also a charged item
with 1 charge. I've tried:
(1) Use CopyItem to make a new copy of the item to replace the one being
consumed if the conditions aren't right. The CopyItem returns an Invalid
object - it must be being consumed before my ItemActivated code runs.
(2) For the charged item scenario, I've tried setting the charges back
to 1. This does nothing as well, probably for the same reason.
Suggestions?
conditions. The thing is, I don't want the item to be consumed if the
conditions aren't right.
I've tried making it a 1 time use Unique Power and also a charged item
with 1 charge. I've tried:
(1) Use CopyItem to make a new copy of the item to replace the one being
consumed if the conditions aren't right. The CopyItem returns an Invalid
object - it must be being consumed before my ItemActivated code runs.
(2) For the charged item scenario, I've tried setting the charges back
to 1. This does nothing as well, probably for the same reason.
Suggestions?
--
My NWN Work So Far: http://tinyurl.com/6xy2f
"Pits of red smoke and fog are usually bad."
- Tip from Doom3 Manual
My NWN Work So Far: http://tinyurl.com/6xy2f
"Pits of red smoke and fog are usually bad."
- Tip from Doom3 Manual