Jump to content

Recommended Posts

Here's the script.  As written, this script will add one Iron Cuirass as soon as the game loads.

K2_Add an Item at Game Load Script.txt

To use this:

Create a new quest and in the Quest Data tab check the boxes for Start Game Enable and Run Once.  Click OK and then open the quest again.

Go to the Quest Aliases Tab and right click for 'New Reference Alias'.  Name it Player and at 'Unique Actor' select Player.  Check the box for 'Reserves Reference' and then hit the Enter key on your keyboard.  That will close the tab.  Open the tab again.

In the field for 'Papyrus Scripts' click the 'Add' button and wait for everything to load.  This might take as long as a minute to finish.  Ignore the errors that will pop up, because they will.

Once everything loads you will see a dialogue window.  The first one will be (New Script).  Double click it.  Give it a name you can easily recognize and leave 'ReferenceAlias' alone.  You need that.  Click OK.

Now you should have the empty script listed.  Right click it and 'Open in Exterior Editor'.  Copy and paste the script I included into it and Save and Exit.

Right click the script again but this time go to 'Edit Source'.  Your script should be there.  Click File and Save and let it compile.  You should get no errors and see 'Compilation Completed'.

Click on the script to high-light it and click the 'Properties' button.  Both fields should be filled and the script should look like a blue cross with a yellow pencil next to it.  Remove the check mark next to 'Reserves Reference' you added earlier.  Hit Enter on your key board.  Click OK on the quest to close it.  Save the esp.

IF everything went as planned the vanilla game iron armor should be added to character at game load.  Best of luck to you, since this is modding Skyrim. :S

* replace everything I have in yellow with your own stuff.

____________________________________________________________________________________

;add/equip the player with the item when the mod is loaded.

Armor Property ArmorIronCuirass Auto
Quest Property GiveIronArmorQuest auto

Function TraceMe(string msg)
    Debug.Trace("GiveIronArmorQuest"+ msg)
EndFunction

Function GiveIronArmor()
    TraceMe("GiveIronArmor")
    ObjectReference selfref = self.GetReference()
    if selfref != None
    selfref.AddItem(ArmorIronCuirass, 1, false)
    Game.GetPlayer().EquipItem(ArmorIronCuirass, abSilent = true)
    endIf
EndFunction

Event OnInit()
    RegisterForSingleUpdate(1)    
EndEvent

Event OnUpdate()
    GotoState("Busy")
    GiveIronArmor()
    GotoState("")
EndEvent

State Busy
    Event OnInit()
    EndEvent

    Event OnReset()
    EndEvent

    Event OnPlayerLoadGame()
    EndEvent

    Event OnUpdate()
    EndEvent
EndState

____________________________________________________________________________________

  • Like 4
Link to post
Share on other sites

NOTE:  If you don't want the item automatically equipped on the player then place a semicolon in front of the line:

Game.GetPlayer().EquipItem(ArmorIronCuirass, abSilent = true)

Make it look like this:

;Game.GetPlayer().EquipItem(ArmorIronCuirass, abSilent = true)

^_^

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Doublezero
      View File UNPB Body Chest Harness
      A simple body harness for UNPB body types.
      How to obtain:
      The harness should be added to your inventory on load but can also be crafted at a blacksmith forge.
      Requirements:
      An UNPB Body re-placer and all of it's requirements.
      Credits:
      Ousnius and Caliente - For BodySlide and Outfit Studio.
      Besthesda - The maker of Skyrim and the Creation Kit
      Submitter Doublezero Submitted 10/09/2016 Category UNPB Armor  
    • By Doublezero
      A simple body harness for UNPB body types.
      How to obtain:
      The harness should be added to your inventory on load but can also be crafted at a blacksmith forge.
      Requirements:
      An UNPB Body re-placer and all of it's requirements.
      Credits:
      Ousnius and Caliente - For BodySlide and Outfit Studio.
      Besthesda - The maker of Skyrim and the Creation Kit
    • By Doublezero
      View File UUNP Katwoman Armor
      This is a UUNP conversion of the original Katwoman light armor for UNPB. This conversion features some minor texture and inventory object improvements as well as a new Katwoman Collar.
      How to obtain:
      The armor can be crafted at a blacksmith Forge or you can use the console command "help Katwoman 0" to locate the ids.
      Requirements:
      BodySlide 2.4+ Unified UNP and all of it's requirements. Credits:
      Halofarm - for Pinup Poser. (The poses I use in the images)
      Ousnius and Caliente - For BodySlide and Outfit Studio.
      Besthesda - The maker of Skyrim and the Creation Kit
       
      Submitter Doublezero Submitted 08/04/2016 Category UUNP Armor  
    • By Doublezero
      View File Skyrim UNPB Vanilla Armor and Clothing Replacer
      This mod replaces all of Skyrim Armor and Clothes with UNPB versions, all armor and clothing has been reshaped to match the UNPB body shape and belly weights were added to all clothes and a few the armors that has the belly exposed. Breast and butt weights were not added for armors. A few shoes have been replace with meshes that contains Leito86's FemFeet mod.
      This mod is a work in progress. There are still some armor and clothing that has low polygons and clipping. These will be fixed in future updates.

      Installation:
      To install, use your favourite mod installer or install manually by extracting the files in your skyrim folder. This mod contains loose files and will overwrite any mods the alter the vanilla Skyrim armor and clothing.
       
      Armor/Cloths MIA:
      Daedric and Ebony Mail requires special attention and will be released in a future update. Graybeard Robes and Fine Shoes will also be released in a future update.
       
      Requirements:
      An UNPB Body re-placer and all of it's requirements.

      Credits:
      Leito86 - For FemFeet.
      Ousnius and Caliente - For BodySlide and Outfit Studio.
      Besthesda - The maker of Skyrim and the Creation Kit
      Submitter Doublezero Submitted 05/21/2016 Category UNPB Armor  
    • By endgameaddiction
      I've searched and never seen anywhere on the net about this so I figure after years of doing this, I'd share with you how it's 100% possible to make the Mistwatch bandits permanently friendly and use Mistwatch Tower as a hub, but not completely a player home because I assume (I haven't checked in CK) the chests and barrels all reset. I made this video to visually show you how it's possible to do the little mini quest without having to kill a single NPC. Keep in mind this is all vanilla. No mods or console command(s) are required to do this.
       
       
      Before you do this, make sure you have a high enough sneak level, or you have Muffled boots or the spell Muffle casted on you.
      Take the back road that leads around to the back of Mistwatch Tower. You should be looking downwards upon Mistwatch Tower. Sneak your way down into the entrance door of Mistwatch Tower and enter. Make sure you don't attract the Mistwatch Bandit. Or rather, get too close to make them hostile. Run (or walk) up to Christer and begin the mini quest to search and find Fjola. Drop to sneak mode and sneak very slowly on your way out the east exit. Upon exiting sneak along the wall on the left and once you are far enough you can get up and run towards the geysers. The point is to go around and back up, but not back up to the road you took to Mistwatch Tower. Only to the dirt road that takes you to the North East entrance to Mistwatch Tower where a Orc Bandit leans against the wall. Instead stick to the hill on the right side of the dirt road and go up and eventually you will near the tower. You'll get high enough to reach the highest door to the tower that leads straight to Fjola. Note: when you exit the entrance, the Mistwatch Bandit up the stairs to the right above the exit, that bandit will become hostile regardless if you are distant from it. It's the only one that will go hostile if it detects you and the rest will become hostile. So be careful when going around the left wall after exiting.
      Talk to Fjola and select the choice to convince Christer to leave. Upon exiting the door, sneak your way to the hatch and enter. Getting detected will cause the bandits to become hostile and it won't work anymore. Once you've entered through the first hatch, you can run your way to the next exit of the tower. The bandits inside are friendly. When you've exited once again to the exterior, sneak your way to the next hatch without being noticed. Again, if detected, it will make the bandits hostile and it won't work anymore. Run your way down the tower. Once again these bandits are friendly. They will not attack you. Even if you try and speak to them. Talk to Christer and tell him Fjola is not here or dead. Optional if you want to give him the ring or not). Run back up the staircase and you'll encounter Fjola. Tell her it's done and the mini quest is complete. If you did it right, you have successfully made the Mistwatch Bandits outside that guard the tower permanently friendly.
       
      Edit: According to UESP (https://en.uesp.net/wiki/Skyrim:Mistwatch) under notes: "You can enter and speak with the bandit boss without starting the quest if you have the Wax key Lockpicking perk. Unlocking the master locked door before the final tower gives you the Mistwach key, which then can be used to open and enter the last tower. Doing this will make all bandits inside and outside of the tower friendly."
      Doing it this method would require you to unlock the hatch which is to the left the tower where Fjola is. Upon unlocking it, once you enter in the tower you will automatically get the key and you can just exit and go straight to Fjola. This is a much simpler way of doing it but requires the Wax Key perk in order to do this. If you aren't interested in that perk then the alternative would be to do it the way I've always done it.
×
×
  • Create New...