MackenzieBeyer Posted January 8, 2019 Share Posted January 8, 2019 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 More sharing options...
Thandal Posted January 8, 2019 Share Posted January 8, 2019 Which game? Link to comment Share on other sites More sharing options...
damanding Posted January 8, 2019 Share Posted January 8, 2019 Fallout 4 according to the tags @Thandal Link to comment Share on other sites More sharing options...
Thandal Posted January 9, 2019 Share Posted January 9, 2019 @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 More sharing options...
steve40 Posted January 9, 2019 Share Posted January 9, 2019 @MackenzieBeyer you should be compiling your code as Papyrus Fragments within the Topic Info dialogue box in CK. Link to comment Share on other sites More sharing options...
MackenzieBeyer Posted January 9, 2019 Author Share Posted January 9, 2019 @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 More sharing options...
MackenzieBeyer Posted January 9, 2019 Author Share Posted January 9, 2019 @MackenzieBeyer you should be compiling your code as Papyrus Fragments within the Topic Info dialogue box in CK.Thank you! That worked. Link to comment Share on other sites More sharing options...
Recommended Posts