Jump to content

problem with adding items in script fragment


agerweb

Recommended Posts

I have used a line such as this:

 

Alias_Priest.GetReference().RemoveItem(Alias_Note.Getreference(),1,False,Game.GetPlayer())
debug.notification("Note added")

 

successfully many times in Quest Stage papyrus fragments to transfer items from an NPC to a player.

 

However, I now want to do this in a dialogue papyrus fragment and it doesn't compile - I have tried various combinations of setting properties on the dialogue fragment but to no avail. How do you do this?

Link to comment
Share on other sites

Using: Alias_Vahenga.GetReference().RemoveItem(Alias_Note.Getreference(),1,False,Game.GetPlayer())
debug.notification("Note added")

 

I get:

 

starting 1 compile threads for 1 files...
Compiling "All_TIF__07669A87"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\All_TIF__07669A87.psc(10,0): variable Alias_Vahenga is undefined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\All_TIF__07669A87.psc(10,14): none is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\All_TIF__07669A87.psc(10,40): variable Alias_Note is undefined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\All_TIF__07669A87.psc(10,51): none is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\All_TIF__07669A87.psc(10,29): none is not a known user-defined type
No output generated for All_TIF__07669A87, compilation failed.

This line works fine in a quest stage of the same quest as both Alias exist and are filled correctly.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...