Jump to content

Recommended Posts

Posted

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

Posted

Click on Properties and select "Create using a form". Type there "MeatBrahmin" . It should automatically create PMeatBrahmin ptoperty. Change your line to: game.getPlayer().addItem(PMeatBrahmin)

Compile.

  • Recently Browsing   0 members

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