I need help (A new modder's plea)

Post » Tue Aug 26, 2014 8:01 am

Heya folks!

I'm making a mod and I want a message to appear after reading a specific book and have that book used up after reading (the menu I'm thinking of is similar to the Standing Stone / Doomstone messages when they are activated).

I'm stumped. I have the messages written out, and all I need is a script to put it altogether. Can someone help me?

A Note: I am inexperienced in scripting, and I don't know what to do in this sort of situation.

User avatar
Gracie Dugdale
 
Posts: 3397
Joined: Wed Jun 14, 2006 11:02 pm

Post » Tue Aug 26, 2014 1:47 am

By used up I assume you mean removed?

Scriptname MyBookScript Extends ObjectReferenceMessage Property BookMessage AutoEvent OnRead()	BookMessage.Show()	Game.GetPlayer().RemoveItem(Self, 1)EndEvent

Attach this script to the book (replace the scriptname area with whatever your script's name is) and fill the property after compiling (Ctrl + S in the CK's compiler), by clicking the property button to the right of the scripts area and selecting your message record from the dropdown list after you highlight the message property.

User avatar
Nathan Barker
 
Posts: 3554
Joined: Sun Jun 10, 2007 5:55 am

Post » Tue Aug 26, 2014 4:05 am

I meant removed, yes. And thank you.

I need another thing: Is there a way to add spells and similar effects when you say "yes" on the message made? Does that require another script?

User avatar
Lakyn Ellery
 
Posts: 3447
Joined: Sat Jan 27, 2007 1:02 pm


Return to V - Skyrim