Need some script advice

Post » Thu Dec 06, 2012 9:58 pm

Hi guys, I need some help with scripting please, and there are basicly three questions.

Background: I'm working on a house mod where you can buy upgrades for the house, and the only tutorials I found was about adding new upgrades to existing houses, so I had to build the quest from the ground up. I dont have any scripting background, so this is a first for me.

Question 1: I'm using the following script when buying an upgrade: (note the "xxxxxx" is just a place holder, since each upgrade differ)

Spoiler
Scriptname TIF__xxxxxxxx Extends TopicInfo HiddenFunction Fragment_0(ObjectReference akSpeakerRef)	   Actor akSpeaker = akSpeakerRef as Actor	   game.getplayer().removeitem(gold, tdNarmoHall.value as int)	   decoratemarker.enable()EndFunctionMiscObject Property Gold Autoint Property GoldAmount AutoObjectReference Property DecorateMarker AutoGlobalVariable Property tdNarmoHall Auto
What I need help with, is how do I script a three day delay before decoratemarker.enable() is enabled?

Question 2: Then, how do I make the option of this specific upgrade not appear in the dialog during the three day delay?

Question 3: In the games HousePurches quest, when an upgrade is purchesed the "GetVMQuestVariable" condition is set and "SolitudeHouseVar_var" (just an example) is used. Do I need this for my quest? And how do I set these var up?

Any help is welcome, tx!
User avatar
IM NOT EASY
 
Posts: 3419
Joined: Mon Aug 13, 2007 10:48 pm

Post » Fri Dec 07, 2012 3:59 am

3 Day delay:

For the script, you are obviously going to use and Enable() function like

MyObject.Enable()

All you do is put a wait script above it, so:

Utility.WaitGameTime(72); script pauses for 72 hoursMyObject.Enable()
User avatar
Monika
 
Posts: 3469
Joined: Wed Jan 10, 2007 7:50 pm


Return to V - Skyrim