kriegerseele Posted August 29, 2017 Share Posted August 29, 2017 Title says it all...i want to replace the default prisoner-outfit (when you begin a new game) with another one. Shouldn´t be that hard, but...i tried some methods i read on the internet and none of them are working for me. Any help? Link to comment Share on other sites More sharing options...
foamyesque Posted August 29, 2017 Share Posted August 29, 2017 (edited) Title says it all...i want to replace the default prisoner-outfit (when you begin a new game) with another one. Shouldn´t be that hard, but...i tried some methods i read on the internet and none of them are working for me. Any help? How are you starting the game? Editing the player to have a different outfit directly doesn't work if you run the scripted start, but will if you use the console coc command to start a new game by teleporting into a cell. The Unbound quest (MQ101) has a specific bit of scripting that adds and equips certain items to the player, to wit: QF_MQ101_0003372B: ;BEGIN FRAGMENT Fragment_197 Function Fragment_197() ;BEGIN CODE ; debug.trace("stage 10, quickstart 1") ;disable first person geometry Game.ShowFirstPersonGeometry( false ) ; enable horses & carts Alias_CartHorse1.GetRef().Enable() ; AI-driven player Game.SetPlayerAIDriven(true) ; remove all player's gear and reequip outfit Game.GetPlayer().RemoveAllItems() ; equip player's prisoner outfit Game.GetPlayer().EquipItem(ClothesPrisoner) Game.GetPlayer().EquipItem(ClothesPrisonerShoes) ;END CODE EndFunction ;END FRAGMENTClothesPrisoner and ClothesPrisonerShoes are properties on that script. Changing those properties should allow you to alter what's worn during the beginning of Unbound. Edited August 29, 2017 by foamyesque Link to comment Share on other sites More sharing options...
kriegerseele Posted August 29, 2017 Author Share Posted August 29, 2017 Well thanks, but i´ve already tried the manipulation of that script. When i do change these parameters, nothing happens at all. Everytime the same prison-outfit... Link to comment Share on other sites More sharing options...
foamyesque Posted August 29, 2017 Share Posted August 29, 2017 Well thanks, but i´ve already tried the manipulation of that script. When i do change these parameters, nothing happens at all. Everytime the same prison-outfit... Can you provide screenshots of the filled properties? Link to comment Share on other sites More sharing options...
kriegerseele Posted August 29, 2017 Author Share Posted August 29, 2017 sorry it seems i´m not able to attach files on posts as a normal member...i don´t know. Link to comment Share on other sites More sharing options...
foamyesque Posted August 29, 2017 Share Posted August 29, 2017 sorry it seems i´m not able to attach files on posts as a normal member...i don´t know. Upload 'em to Imgur and link to 'em from here. Link to comment Share on other sites More sharing options...
kriegerseele Posted August 30, 2017 Author Share Posted August 30, 2017 ok, so this is it. ClothesShinobi is a custom outfit i made and it works fine ingame. But Skyrim refuse to replace the prisoner outfit with it at game start... http://imgur.com/a/F8l5B Link to comment Share on other sites More sharing options...
foamyesque Posted August 30, 2017 Share Posted August 30, 2017 (edited) ok, so this is it. ClothesShinobi is a custom outfit i madeand it works fine ingame. But Skyrim refuse to replace theprisoner outfit with it at game start... http://imgur.com/a/F8l5B Okay, a few things: 1. That's the code, not a filled property. You need to hit edit properties, find your now-called "ClothesShinaobi" property, and fill that with what you want to have be equipped. Just changing the name in the code isn't enough (and isn't necessary; you could fill a property named GenericProperty with anything that matches the property type declaration (Armor, Weapon, FormList, etc).2. I assume that this code is compiling so that you have actually defined the property somewhere and as an Armor type; it's not shown in your code, though.3. When you say 'outfit', do you mean an Outfit object, or just shorthand for 'this piece of clothing'? Because Skyrim has actual Outfits but they can't be used in the code as it stands.4. I need a screenshot of the actual properties window, like so: http://i.imgur.com/tWw7Pz8.png Edited August 30, 2017 by foamyesque Link to comment Share on other sites More sharing options...
kriegerseele Posted August 30, 2017 Author Share Posted August 30, 2017 here are the properties of the script. It was the first thing i´ve done ´cause it was the logical first step. http://imgur.com/a/Vpq9P Link to comment Share on other sites More sharing options...
foamyesque Posted August 30, 2017 Share Posted August 30, 2017 (edited) here are the properties of the script. It was the first thing i´ve done´cause it was the logical first step. http://imgur.com/a/Vpq9P PrisonerOutfit is not used within that script. The piece of code that dresses the player is the one I quoted originally, which is tied to the ClothesPrisoner and ClothesPrisonerShoes properties, which are Armor forms, not an Outfit one. That's why there's two separate calls to EquipItem. You edited it to try to equip ClothesShinaobi, but that appears to be an Outfit, not individual Armor items, so EquipItem won't succeed. It compiles, because EquipItem (since it needs to operate on Weapons and on Armor) accepts a Form, and an Outfit is a kind of form, but it doesn't actually do what it's supposed to. If you want to work with Outfits and not armor pieces, use SetOutfit. If you want to use EquipItem, you need to call it one-by-one for each piece of gear you want to equip. Edited August 30, 2017 by foamyesque Link to comment Share on other sites More sharing options...
Recommended Posts