Jump to content

AddItem won't work


Recommended Posts

So I attached a script onto a dialogue option. An NPC asks if you want a drink, if you say yes, a bottle is supposed to appear in your inventory. I used the script below but I get tat error. The "Beer" is an object reference property. Any help would be appreciated.

Scriptname GiveBeer extends TopicInfo

ObjectReference Property Beer Auto Const

Game.GetPlayer( ).AddItem(Beer)

Here is the error:

Compiling "GiveBeer"...
C:\Users\mcb59\AppData\Local\Temp\PapyrusTemp\GiveBeer.psc(5,4): no viable alternative at input '.'
No output generated for GiveBeer, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on GiveBeer
Link to comment
Share on other sites

@damanding; Obvious only if you play/mod that game.

 

Since the topic doesn't belong in the General Mod Author Discussion forum but in the particular game's own forums, and since I don't have time to play internet detective when the OP should have known better in the first place, I can't move it until someone declares where it goes. Now you have, so topic moved.

Link to comment
Share on other sites

@damanding; Obvious only if you play/mod that game.

 

Since the topic doesn't belong in the General Mod Author Discussion forum but in the particular game's own forums, and since I don't have time to play internet detective when the OP should have known better in the first place, I can't move it until someone declares where it goes. Now you have, so topic moved.

No need to have such an attitude. Didn't ask for your help in particular. So I relieve you of your duties. Thanks so much for your help!!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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