lucasjose501 Posted August 20, 2013 Share Posted August 20, 2013 Hello everyone. First, sorry for english, not my native language. I'm working on a race and want to add armor modified but without interfering with other NPCs. I already have some ready for testing and now I need to find a system that automatically change the vanilla armor to my modded armor, If I equip a vanilla combat armor, it automatically uses the nif for the body. An example of the body I'm using: http://i.imgur.com/8poz8Hf.jpg And the other part is: (I think it difficult to exist, but ...) Is there a way to change the texture automatically in the body and armor? Example: With low HP, the texture turns red. Thank you! Link to comment Share on other sites More sharing options...
luthienanarion Posted August 21, 2013 Share Posted August 21, 2013 You'll have to duplicate the armor and swap it out via script. That's how my CotW expansion works, if you want to examine scripts in it. Most people don't know this, but you can change textures on armor via script. You don't even need NVSE for that. Send me an armor, the the default texture, and the replacement texture, and I can whip up and example for you. Link to comment Share on other sites More sharing options...
devinpatterson Posted August 21, 2013 Share Posted August 21, 2013 I'm working on a race and want to add armor modified but without interfering with other NPCs. I already have some ready for testing and now I need to find a system that automatically change the vanilla armor to my modded armor, If I equip a vanilla combat armor, it automatically uses the nif for the body. Sorry, I'm not sure I quite catch your drift. If it's not a replacer you shouldn't have any problem with teh vanilla armors. And the other part is: (I think it difficult to exist, but ...) Is there a way to change the texture automatically in the body and armor? Example: With low HP, the texture turns red. There is a command to swap out the texture in the vanilla game. It's used at the end on the slideshow, but it's a simple mesh (just a flat screen) so there may be complications when using it on armor, and I don't have any real familiarity with it. It's also on a weapon....the helion trigger, Elucids C-Finder. The function isn't documented on the geck function page which makes it a little harder to get a handle on, but here is the format; SwapTexture OnScreenSlideRef "##GS01:0" "interface\endgame\endscrn_CR01" ie SwapTextureOnRef (SwapTexture) ObjectReferenceID, String, String That first string is a niNode I believe, but you'll have to look at the nif. So it's possible but a somewhat steep learning curve initially. The other alternative is to actually swap out armors via script. You'll probably need NVSE because it has some functions like GetEquippedCurrentHealth that will allow you to keep track of the armor health for each armor you swap. otherwise your armor's health is going to reset after each change, and you need it for repairs. Either method you use is going to need a script to do the actual swap whether it's a texture or a armor (equipitem, hide msg flag). I'd reccomend a quest script since you don't need a script running every frame for something like this. Just have it check every half second for the players (or actors) health then perform the swap. Someone else may have a more elegant solution. I'v done something similar to this, but I'm not the best one to ask as my forte isn't scripting. But needless to say this is a bit of a advanced project. Link to comment Share on other sites More sharing options...
luthienanarion Posted August 21, 2013 Share Posted August 21, 2013 (edited) SwapTexture OnScreenSlideRef "##GS01:0" "interface\endgame\endscrn_CR01" ie SwapTextureOnRef (SwapTexture) ObjectReferenceID, String, StringThat first string is a niNode I believe, but you'll have to look at the nif.The first argument is a the name of a NiTriShape block. You can pass a block in an equipped weapon or armor by calling the function on the actor that has the item equipped. I've done some rather extensive trial-and-error testing with this function, and it could really be used to make some interesting things if only more people knew about it. Things like the health meter on the character's back in Dead Space or the digital readout of clip ammo from the Halo assault rifle come to mind, not to mention visual armor wear. I once had someone ask about swapping specular maps on statics to look more "glossy" when it was raining, and this function came to mind. Edited August 21, 2013 by luthienanarion Link to comment Share on other sites More sharing options...
devinpatterson Posted August 21, 2013 Share Posted August 21, 2013 The first argument is a the name of a NiTriShape block. You can pass a block in an equipped weapon or armor by calling the function on the actor that has the item equipped. Passing a block to a equipped item is *very* cool, nice to know :smile: I've done some rather extensive trial-and-error testing with this function, and it could really be used to make some interesting things if only more people knew about it. I'd love to hear any additional info that you'v come across on the subject if you have the time. I don't have anything particular in mind, but it does seem like it has a ton of potential. I'd also love to see animated textures in more common use, whether it's for something like screens (tv, computer) or just for great special effects. Seems like a lot of potential there too. Things like the health meter on the character's back in Dead Space or the digital readout of clip ammo from the Halo assault rifle come to mind, not to mention visual armor wear. Sent this to DaemonGrin, he's working on a dead space mod, he'll love it. I once had someone ask about swapping specular maps on statics to look more "glossy" when it was raining, and this function came to mind. yeah that is kind of a cool realism tweak Link to comment Share on other sites More sharing options...
lucasjose501 Posted August 21, 2013 Author Share Posted August 21, 2013 Thanks to everyone who responded, I'll see what I can do, and then post the result :D Link to comment Share on other sites More sharing options...
lucasjose501 Posted August 22, 2013 Author Share Posted August 22, 2013 YAAAAYY! I Did IT! But... Now i just need to know how to change the glowmap from green to red.. Oo Sugestions? Link to comment Share on other sites More sharing options...
devinpatterson Posted August 22, 2013 Share Posted August 22, 2013 YAAAAYY! I Did IT! But... Now i just need to know how to change the glowmap from green to red.. Oo Sugestions? Same thing I'd suppose, except you'd be swapping out your glowmap for a colored glow map, ie mytextureGreen_g.dds to mytextureRed_g.dds Link to comment Share on other sites More sharing options...
lucasjose501 Posted August 22, 2013 Author Share Posted August 22, 2013 Hmmm, nope!SwapTexture player "Upperbody:03" "characters\aresandroid\upperbodybasedroid2"UpperBody:03 = NiTriShape for my body, and It contains 3 textures, but the command only changes the main texture. I tried to put another glow map, "upperbodybasedroid2_g", but he uses the original and only change one texture. :( Link to comment Share on other sites More sharing options...
devinpatterson Posted August 22, 2013 Share Posted August 22, 2013 Hmmm, nope! Hit up luthienanarion, he's done a lot of testing. Link to comment Share on other sites More sharing options...
Recommended Posts