Jump to content

A script to give an item


danatoth666

Recommended Posts

So I want to give the player an item for the quest.

I'm not a scripter at all and barely understand how to do any of it, but I've been learning.

 

So I created an item, then made it an Alias in my quest (created at the quest giver) of it.

When the quest reaches stage 10 I want to give the player the item. I had no idea how to do this

so I just tried to find a quest that did the same thing. Here is what I found, but it doesn't work.

(The alias name I made for my item was "Letter")

 

Alias_Letter.TryToEnable()

Game.GetPlayer().AddItem(Alias_Letter.GetReference())

 

Can anyone give me the correct code?

 

Also if you know, what is the script to remove an item?

Edited by danatoth666
Link to comment
Share on other sites

  • Recently Browsing   0 members

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