Issue with scripting for book objects

Post » Tue Dec 08, 2009 8:25 pm

I have decided to add a "library" area to my project. It will include many of my favorite and not-so-favorite in-game books. However, I have a little problem. I want the player character to be able to read the books, but not take them. However, the default "NoPickup" script, which is the only code I know to make items not able to be taken, blocks the books from being read as well. Is there another way to do this? Thanks!
User avatar
Karl harris
 
Posts: 3423
Joined: Thu May 17, 2007 3:17 pm

Post » Tue Dec 08, 2009 8:02 pm

begin Read_but_nopickupif ( Onactivate == 1 )	if ( Menumode == 1 )		Messagebox "You are not permitted to take this book from the library."		return	else		activate	endifendifend

User avatar
Melung Chan
 
Posts: 3340
Joined: Sun Jun 24, 2007 4:15 am

Post » Wed Dec 09, 2009 10:28 am

Thanks! It worked!
User avatar
Jose ordaz
 
Posts: 3552
Joined: Mon Aug 27, 2007 10:14 pm


Return to III - Morrowind