Upgradable house problem

Post » Tue Apr 08, 2014 2:16 am

I am working on upgrading a player home (Riften Honeyside). I am working on the HousePurchase Quest and
have added the proper lines of dialogue up to the action line. When I add the first script it compiles no problem. BUT when I add the second fragment in the End box I get the following error.
This is the script I added (the action part of the dialogue)

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname TIF__0200WW2A Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEgame.getplayer().removeitem(gold, HDRiftenCrafting.value as int)decoratemarker.enable();END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentMiscObject Property Gold  Auto  int Property GoldAmount  Auto  ObjectReference Property DecorateMarker  Auto  GlobalVariable Property HDRiftenCrafting  Auto 

This is what I am putting in the Scripts End Box

game.getplayer().removeitem(gold, HDRiftenCrafting.value as int)decoratemarker.enable()

The error.....

Starting 1 compile threads for 1 files...Compiling "TIF__02006149"...C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02006149.psc(9,28): variable gold is undefinedC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02006149.psc(9,34): variable HDRiftenCrafting is undefinedC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02006149.psc(9,51): none is not a known user-defined typeC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02006149.psc(9,57): cannot cast a none to a int, types are incompatibleC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02006149.psc(10,0): variable decoratemarker is undefinedC:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02006149.psc(10,15): none is not a known user-defined typeNo output generated for TIF__02006149, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__02006149


What in the fragging flubber butt have I done wrong?
From what I see all the variables it's calling undefined are defined but in the other script. and there is no way to add variables to this fragment. (tif__02006149 that was created when I tried to compile the script in the End box)
<

User avatar
maya papps
 
Posts: 3468
Joined: Mon Aug 07, 2006 3:44 pm

Post » Tue Apr 08, 2014 1:40 am

Saw others having the same problem in another post but no one seemed to help them in that post.

User avatar
Marine Arrègle
 
Posts: 3423
Joined: Sat Mar 24, 2007 5:19 am


Return to V - Skyrim