Mailamea Posted March 30, 2014 Posted March 30, 2014 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.
Advint Posted March 30, 2014 Posted March 30, 2014 Basically yes.You can use:Game.GetPlayer().AddItem(Gold001, 500)And you can find that exemplified in the Bethesda tutorial here.
Mailamea Posted March 30, 2014 Author Posted March 30, 2014 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.
Veladarius Posted March 30, 2014 Posted March 30, 2014 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
Mailamea Posted March 30, 2014 Author Posted March 30, 2014 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?
Veladarius Posted March 30, 2014 Posted March 30, 2014 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.
Mailamea Posted March 30, 2014 Author Posted March 30, 2014 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.
eAthena Posted April 1, 2014 Posted April 1, 2014 Just like Veladarius said i think that will work just fine. if it does not im sure you can find a homepage that tells you everything you need to know about skripting Maybe http://www.cipscis.com/skyrim/tutorials/beginners.aspx this one will help not sure have not looked in to the page yet my self but the best off luck
Recommended Posts
Archived
This topic is now archived and is closed to further replies.