Jump to content

AddItem in Fragment Error?


Recommended Posts

I'm trying to do the following in a Papyrus fragment for a perk:

Debug.MessageBox("Hello World") ;just as a test
game.getPlayer().addItem(MeatBrahmin)

However, this produces the following compilation error: "...\Fragments\Perks\PRKF__01000F9A.psc(8,25): variable MeatBrahmin is undefined". I know that in Papyrus you don't use the Form ID like you would in the in-game console, so what gives? This is exactly how the Creation Kit docs show to use addItem, but I can;t figure out why Papyrus is unhappy with that line

Link to comment
Share on other sites

  • Recently Browsing   0 members

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