Another Scripting Question

Post » Sat May 28, 2011 10:30 am

I have an idea, there is a door that is locked and you need the key, you see 3 chests in front of you with a letter. You must follow the clues to conclude which chest is the right one, if you open the wrong one the others will lock for good. Is this possible via scripting?
User avatar
Multi Multi
 
Posts: 3382
Joined: Mon Sep 18, 2006 4:07 pm

Post » Fri May 27, 2011 7:02 pm

yes, it is "easily" possible. have a look at Morrowind Scripting for Dummies. you can adapt the first example there to your purposes without much trouble.
User avatar
Spaceman
 
Posts: 3429
Joined: Wed May 23, 2007 10:09 am

Post » Sat May 28, 2011 5:43 am

Isn't that the one with the Riddle Chest? My scripting knowledge is extremely limited. I am unsure how that helps me.
User avatar
Danny Blight
 
Posts: 3400
Joined: Wed Jun 27, 2007 11:30 am

Post » Sat May 28, 2011 2:26 am

also how can I do a journal entry upon reading somthing, and then another when I pick up the key?
User avatar
Miss K
 
Posts: 3458
Joined: Sat Jan 20, 2007 2:33 pm

Post » Sat May 28, 2011 3:25 am

the riddle chest has code you can adapt for becoming permanently locked. as you are using journal entries, you can deny the player access to the chests before a certain index is reached. to get the journal updated when picking up the key and reading the note, just attach a script to the items in question that looks like this for the book -

short onpcequipshort doonceif ( onpcequip == 1 )        if ( doonce == 0 )                journal ** ; replace "**" with the correct journal index                set doonce to 1        endifendif


for the key -

short doonceif ( doonce == 0 )        journal ** ; replace "**" with the correct journal indexendif

User avatar
Catherine Harte
 
Posts: 3379
Joined: Sat Aug 26, 2006 12:58 pm


Return to III - Morrowind