Quick help with a script about enabling

Post » Tue Jun 19, 2012 2:20 am

I am *trying* to write a script that allows an item to enable a currently disabled static object I have placed in the world. I tried as much as I could studying the vanilla home upgrades quest and script but all I have learned is that the items that are enabled after purchasing an upgrade as lined to a single xmarker (so that you don't have to output each object that would be enabled just the parent.

I am hoping to have something like the Oblivion home upgrade system with my mod where you would purchase say a note of ownership from the upgrader and when you return to the cell the upgrade is enabled.

Where I am running in to trouble is enabling the xmarker in papyrus. And also to link the script to the book-item itself.

If anyone could help, it would much appreciated!
User avatar
sarah taylor
 
Posts: 3490
Joined: Thu Nov 16, 2006 3:36 pm

Post » Tue Jun 19, 2012 4:04 am

Paste the script you've got here. And make sure you add properties to the script in the CK.
User avatar
Georgine Lee
 
Posts: 3353
Joined: Wed Oct 04, 2006 11:50 am

Post » Mon Jun 18, 2012 11:11 pm

Well that could be my first problem that I am having troubles also declaring the properties.

Basically, I am having trouble with a bit of each line. I think I understand that declaring the function on the objectreference, whether or not the player has it... or what else could it be?

And then the actual line of making it enabled, how to reference it I mean.
User avatar
Lizzie
 
Posts: 3476
Joined: Sun Nov 19, 2006 5:51 am

Post » Tue Jun 19, 2012 4:19 am

Paste your code :D.
User avatar
T. tacks Rims
 
Posts: 3447
Joined: Wed Oct 10, 2007 10:35 am

Post » Mon Jun 18, 2012 6:09 pm

Scriptname 1TestofaTestscript extends ??
if (Game.GetPlayer().GetItemCount(0TestNoteUpgrade1) == 1)
1TestXmarkerRef.enable()
endif

What I have just thrown together. I know I impress :banana:
User avatar
Tom Flanagan
 
Posts: 3522
Joined: Sat Jul 21, 2007 1:51 am

Post » Tue Jun 19, 2012 7:42 am

Take a look at http://www.gamesas.com/topic/1346963-tutorial-custom-house-upgrades-via-npc/ tutorial. That should get you started :D.
User avatar
Dagan Wilkin
 
Posts: 3352
Joined: Fri Apr 27, 2007 4:20 am

Post » Tue Jun 19, 2012 3:02 am

Well I got about 18 tab pages opened that just thanked you. Haha. I'll be sure to study it closely.
User avatar
m Gardner
 
Posts: 3510
Joined: Sun Jun 03, 2007 8:08 pm


Return to V - Skyrim