OBSE EventHandler

Post » Sat Feb 19, 2011 2:56 am

Hey all,

I'm not pretty sure if I'm right here but I'm experiencing a weird problem regarding EventHandlers. Its about the OnActorDrop event handler which I just cant get to work. I've been using this in my Quest-Script:

Begin GameModesetEventHandler "OnActorDrop" FnOnActorDropstopQuest BYCQuestEnd



And following is the Function code:
scn FnOnActorDropref dropperref droppedItembegin Function { dropper, droppedItem }        print $droppedItem + " dropped by " + $dropperend



This is just a test and of course I will add filters later on, but this message does never show in the console. Neither if I drop an item per shift + right click in the inventory nor if I force an actor to drop an item per "actorRef.drop item 1". I have copied the EventHandler examples from the http://obse.silverlock.org/obse_command_doc.html#Events and they all worked. But just the "OnActorDrop" doesnt work. I'm out of ideas.

Has anyone experienced similar problems?
Any help is appreciated.

Gildur

Ps.: Using OBSE v20 beta
User avatar
N3T4
 
Posts: 3428
Joined: Wed Aug 08, 2007 8:36 pm

Post » Fri Feb 18, 2011 8:11 pm

Nobody? I really cant get it to work so I'm guessing its a bug.
Maybe someone can test it on his system and check if its running? Otherwise I'd appreciate if an OBSE developer could check if the command really works and maybe fix it.
User avatar
Tasha Clifford
 
Posts: 3295
Joined: Fri Jul 21, 2006 7:08 am

Post » Sat Feb 19, 2011 9:04 am

Some quick tests with the player (usual way and per script) didn't work for me either.
Maybe only works for NPCs (don't have a save to test that) or doesn't work at all (i.e. bugged). Since there's currently no open OBSE-Rel-Thread, maybe you should inform http://www.gamesas.com/index.php?/user/53482-scruggsywuggsy-the-ferret/ via PN.
User avatar
Maeva
 
Posts: 3349
Joined: Mon Mar 26, 2007 11:27 pm

Post » Fri Feb 18, 2011 9:18 pm

Thanks a lot for testing and thanks for the conract, I'm going to send him a PN.

Btw.: I didnt know you were still active in TES forums, glad to see you in the community. :thumbsup:
User avatar
MARLON JOHNSON
 
Posts: 3377
Joined: Sun May 20, 2007 7:12 pm

Post » Sat Feb 19, 2011 8:18 am

What happens if you surround the SetEventHandler call with an if instead of doing the StopQuest? I would imagine the latter would undo it. Testing GetGameLoaded or GetGameRestarted would also make more sense, as the quest would no longer be able to run after a reload/restart.
User avatar
josie treuberg
 
Posts: 3572
Joined: Wed Feb 07, 2007 7:56 am

Post » Fri Feb 18, 2011 9:47 pm

Still active, but a lot less then before. Don't have that much free time anymore.
Therfore reduced my presence to 3 forums (this one here, elderscrollsgames.de and multimediaxis.de|theelderscrolls.info).
I still look up the other forums once in a while, but don't write that much. May be related to the fact that I'm not interested in most of the stuff discussed there. ;)
User avatar
Richard Dixon
 
Posts: 3461
Joined: Thu Jun 07, 2007 1:29 pm

Post » Fri Feb 18, 2011 8:28 pm

What happens if you surround the SetEventHandler call with an if instead of doing the StopQuest? I would imagine the latter would undo it. Testing GetGameLoaded or GetGameRestarted would also make more sense, as the quest would no longer be able to run after a reload/restart.

Those were just for testing issues.

scruggy just replied to my personal message I sent him and told me that the documentation is wrong, because the EventHandler ist called OnPlayerDrop and not OnActorDrop. Due to that it only works for the player. He said he will fix that mistake in the documentation on the next release. Unfortunately that doesnt help me, because I needed it for any actor badly. =(

@ Low Post: Missed you on Scharesoft. :D

EDIT.: With OBSE v020 Beta 6 the problem is solved. Its now OnActorDrop and works as it stands in the documentation
User avatar
JeSsy ArEllano
 
Posts: 3369
Joined: Fri Oct 20, 2006 10:51 am


Return to IV - Oblivion