Jump to content

Skyrim Script Help (Add Item)


Mailamea

Recommended Posts

Posted

In oblivion and fallout making a quest that automatically adds the item on your character on start of the game is fairly easy.

 

I want to know how do i do this script in Skyrim?

 

for example

 

begin gamemode

player.additem blahblah 1.

 

Is it the same for skyrim? + i'd like to add an if statement like

 

If player "Race" is nord then player.additem blahblah 1.

 

Thanks.

Posted

Ill attach that to the quest right? How can I add an if statement to it. So I can only set it to activate if my race is nord.

Posted

This should take care of most of it

 

event <whatever sort of event you will use>

Race PlayerRace = Game.GetPlayer().GetRace()

if playerrace = nordrace

Game.GetPlayer().additem(itemtoadd, #toAdd)

endif

endevent

 

You will have to set up a property for the itemtoadd and put this in a event of some sort. I think the nordrace name is correct but not entirely sure.

 

Here is a link to the script commands that includes the SKSE commands: http://www.creationkit.com/Category:Papyrus

Posted

What do you think the best event to get for this sort of script. Plain quest is fine? Just add script? Is there a begin on game start flag for skyrim like oblivion and fallout?

Posted

A quest would work, you will need one anyways. You can probably put the script in the starting stage and would not need the Event / Endevent lines. The quest would start immediately and then add the item. You can also just have the quest run once.

 

I had played with making quests only a little in Oblivion and Fallout 3 but Skyrim quests can't do much without scripts.

Posted

A quest would work, you will need one anyways. You can probably put the script in the starting stage and would not need the Event / Endevent lines. The quest would start immediately and then add the item. You can also just have the quest run once.

 

I had played with making quests only a little in Oblivion and Fallout 3 but Skyrim quests can't do much without scripts.

thank you very much, yep I noticed that as well.

 

I'll beep you up when I hit a wall or something.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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