Cannot display a message

Post » Mon Jun 18, 2012 11:43 pm

I'm having issues displaying a simple message box to the player after activating a dummy activator. I've created a new message object (with the option "Message Box" checked, title filled, and text filled) that will only display a message box with no options.

Here's the script attached to the activator. I've replaced the noItemMsg.show() with Debug.MessageBox("Testing") to check if it was a logic or OnActivate block issue and that worked:

Scriptname TestSCRIPT extends ObjectReference  ;;; Properties ;;;Form property item autoMessage property noItemMsg autoEvent OnActivate(ObjectReference akActionRef)	if (akActionRef == Game.getPlayer())		; Get item		item = getNthLinkedRef(2).getBaseObject()				; Item not present		if (getLinkedRef().isDisabled())			; PC has item			if (akActionRef.getItemCount(item) > 0)				akActionRef.removeItem(item)				getLinkedRef().enable()			; PC doesnt have item			else				noItemMsg.show()			endif		; Item is present		else			getLinkedRef().disable()			akActionRef.addItem(item)		endif	endifEndEvent
User avatar
willow
 
Posts: 3414
Joined: Wed Jul 26, 2006 9:43 pm

Post » Tue Jun 19, 2012 12:00 am

Did you make sure to set the property to your message?
User avatar
Amie Mccubbing
 
Posts: 3497
Joined: Thu Aug 31, 2006 11:33 pm

Post » Mon Jun 18, 2012 11:19 pm

Yes, the noItemMsg property was set to point to the base object message.

I went ahead and created a new script and message box and everything works now.
User avatar
Krystal Wilson
 
Posts: 3450
Joined: Wed Jan 17, 2007 9:40 am


Return to V - Skyrim