Jump to content

AddItem Papyrus Script


nyxeka

Recommended Posts

Right then, I am trying to write this script for an activator, one which gives you a daedric dagger when you activate it. The only problem is that the compiler does not understand "daedricDagger", so, how in the heck do I define this 'item', and make it point to the daedric dagger under items>weapons?

 

What I've got:

 

ScriptName killThePlayer extends Form

Event OnActivate(ObjectReference akActionRef)
Game.GetPlayer().AddItem(DaedricDagger, 1, true)
endEvent

 

EDIT -- FIGURED IT OUT HAHAH!!!!!!!!!

http://forums.nexusmods.com/index.php?/topic/556640-scripting-problems-when-did-this-stop-being-simple/

For anyone else who's having this problem...

Edited by nyxeka
Link to comment
Share on other sites

  • Recently Browsing   0 members

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