Omega Wand doesn't work if you've possessed

Scripted ALFA systems & related tech discussions (ACR)

Moderators: ALFA Administrators, Staff - Technical

Locked
User avatar
JaydeMoon
Fionn In Disguise
Posts: 3164
Joined: Sun Jan 04, 2004 11:03 pm
Location: Paradise
Contact:

Omega Wand doesn't work if you've possessed

Post by JaydeMoon »

As title states:

Omega Wand won't work if you've possessed a creature in the area you are in. You have to jump elsewhere and return to use Omega Wand.
<Burt>: two dudes are better than one.

DMG v.3.5 p.6, 8, and 14

BEATZ
User avatar
Rotku
Iron Fist Tyrant
Posts: 6948
Joined: Tue Jan 06, 2004 1:09 am
Location: New Zealand (+13 GMT)

Re: Omega Wand doesn't work if you've possessed

Post by Rotku »

It's a well documented bug with NWN2. I believe the same applies for all of those sort of items. It's a bugger and can be annoying. Wynna use to suggest just avoiding possessing and using the various tools to control things, but that never really worked for me.
< Signature Free Zone >
User avatar
CloudDancing
Ancient Red Dragon
Posts: 2847
Joined: Sun Jan 03, 2010 6:31 am
Location: Oklahoma
Contact:

Re: Omega Wand doesn't work if you've possessed

Post by CloudDancing »

Also it crashes the server when you click on traps, set traps and/or set traps on triggers. As I figured out their are triggeres painted pretty much anywhere you want to place traps.

It's pretty much fun if you plan ahead to use it for various reasons, and no fun if you want to use it on spur-of-the moment, creative issues.
User avatar
AcadiusLost
Chosen of Forumamus, God of Forums
Posts: 5061
Joined: Tue Oct 19, 2004 8:38 am
Location: Montara, CA [GMT -8]
Contact:

Re: Omega Wand doesn't work if you've possessed

Post by AcadiusLost »

JaydeMoon wrote:As title states:

Omega Wand won't work if you've possessed a creature in the area you are in. You have to jump elsewhere and return to use Omega Wand.
I would guess that the wand is storing essential variables on an object which it's losing track of through the possession action, leading to an invalid or misdirected pointer. Should be fixable, I'll set aside some time to debug this.
User avatar
AcadiusLost
Chosen of Forumamus, God of Forums
Posts: 5061
Joined: Tue Oct 19, 2004 8:38 am
Location: Montara, CA [GMT -8]
Contact:

Re: Omega Wand doesn't work if you've possessed

Post by AcadiusLost »

Looked into the Omega wand scripts, and the news is a bit worse than expected; most of the option in the convo are setting variables on and looking for variables on OBJECT_SELF, which isn't a consistent deal across possession/unpossession. I should be able to get it working more reliably, but it'll require significant revamping of the existing scripts. I'll also want to talk to an Omega-using DM or two about how it's used in practice before I get too far into that.
User avatar
Swift
Mook
Posts: 4043
Joined: Sat Jan 03, 2004 12:59 pm
Location: Im somewhere where i dont know where i am
Contact:

Re: Omega Wand doesn't work if you've possessed

Post by Swift »

If it could be fixed, that would be grand. One of the most essential functions a DM uses ie making an NPC talk, is an absolute mess if you are not possessing the NPC. The chatbox lets you enter 1 single line of text, and it you type to much, it wraps around, ruining what you were typing.

The only way to make an NPC say more than "I think you had better knock that off" is possessing.

I mainly use the omega wand to check where people are, damage someone, or the odd validation or deity fix.
User avatar
AcadiusLost
Chosen of Forumamus, God of Forums
Posts: 5061
Joined: Tue Oct 19, 2004 8:38 am
Location: Montara, CA [GMT -8]
Contact:

Re: Omega Wand doesn't work if you've possessed

Post by AcadiusLost »

Did some initial troubleshooting with this, the item activation script still fires as it should before and after possession. After possession the GetItemActivator() still returns the DM avatar, and there is no change in what is seen as OBJECT_SELF by the script (in both cases it seems to be, oddly, the module itself).

So, as far as I can tell, we're not seeing a corruption/misdirection of the object references through the possess/unpossess dance. Next place to check will be the functions that handle opening the omega wand convo- I do see a "speak" action being added to the DM avatar's action queue on activating the wand after possession, but the dialog box isn't coming up. So, I'd say the AssignCommand(ActionStartConversation()) is being applied to the right object (DM avatar), but still failing somehow.

I may try checking with other PW scripters to find out if anything is known about this issue, it's possible others have discovered it and found a workaround. There may also be other ways to get that convo open via different functions which may not be subject to the same buggy behavior that we're experiencing with this current arrangement.
Locked