Event to call when player has finished reading note

Post » Wed Jan 08, 2014 9:06 am

I want a message box to appear asking the player after he/she has read a note, if they want to keep it. The only event I can think of is OnUnequipped. Would I be correct with this script?

Additonal Question: When a player picks up a note it is automatically opened, does this count as equipped and likewise when player reads a note but chooses not to take the note is this classed as unequipped or does the note have to be in the inventory for the equip/unequip to be applicable?

Event OnUnequipped(Actor akActor)  if akActor == Game.GetPlayer()    Debug.Notification("The player put the note away"); do stuff  endIfendEvent
User avatar
vanuza
 
Posts: 3522
Joined: Fri Sep 22, 2006 11:14 pm

Post » Wed Jan 08, 2014 12:33 pm

You could probably do that with STATES.

And OnContainer change and OnRead

~

User avatar
Betsy Humpledink
 
Posts: 3443
Joined: Wed Jun 28, 2006 11:56 am

Post » Tue Jan 07, 2014 11:49 pm

I believe the OnRead event fires as soon as the note is opened. If you put a Utility.Wait(0) statement before any code you want to run, it should wait until the player is done reading (Wait() stops while in menu mode), then execute as soon as they either drop or take the note.

User avatar
Anthony Rand
 
Posts: 3439
Joined: Wed May 09, 2007 5:02 am


Return to V - Skyrim