kato85 Posted December 21, 2010 Share Posted December 21, 2010 I'm a complete novice when it comes to scripting, I have a basic idea on how to make things work normally in the GECK, but recently I downloaded NVSE, partially to use the Readius mod, but partially because I wanted to exploit some of it's added features, such as assigning hotkeys, and more specifically I wanted to create a script that would allow a player to activate a stealth mode without having to be in sneak mode. I've gone through NVSE's documentation page a couple times but.. it really doesn't help me much since I don't really understand the functions. I've gotten by with the GECK's normal scripting functions partially due to the Wiki and the existing scripts. So this is what I want to do. I want a script that: - is associated with a specific armor AND- allows cloaking/stealth to be activated/deactivated via hotkey. If someone would be willing to write at least an example script for me, I can go from there. I will also credit the individual who's script example I use when I release my completed mod. Thanks! Link to comment Share on other sites More sharing options...
kato85 Posted December 22, 2010 Author Share Posted December 22, 2010 (edited) Okay so I figured out a couple things. Associating the script with a particular armor was a 'duh' moment for me. I've also managed to write a script that activates the stealth/invisibility when a key is HELD down, and when released the effect is reversed. What I want is to be able to tap the key and have the effect remain until the key is tapped again or an alternate key is tapped. '[' for ON. ']' for OFF. I've tried utilizing the HoldKey function, which works to the extent that the effect starts when the key is tapped, but then I'm unable to turn it off since I can't seem to get an alternate key to initiate the ReleaseKey function. I may just try using the GetSecondsPassed function to have the effect turn off automatically after so much time. Edited December 22, 2010 by kato85 Link to comment Share on other sites More sharing options...
blove Posted December 22, 2010 Share Posted December 22, 2010 Have a look at this tutorial by Cipcis. Link to comment Share on other sites More sharing options...
secksegai Posted December 22, 2010 Share Posted December 22, 2010 I'm a complete novice when it comes to scripting, I have a basic idea on how to make things work normally in the GECK, but recently I downloaded NVSE, partially to use the Readius mod, but partially because I wanted to exploit some of it's added features, such as assigning hotkeys, and more specifically I wanted to create a script that would allow a player to activate a stealth mode without having to be in sneak mode. I've gone through NVSE's documentation page a couple times but.. it really doesn't help me much since I don't really understand the functions. I've gotten by with the GECK's normal scripting functions partially due to the Wiki and the existing scripts. So this is what I want to do. I want a script that: - is associated with a specific armor AND- allows cloaking/stealth to be activated/deactivated via hotkey. If someone would be willing to write at least an example script for me, I can go from there. I will also credit the individual who's script example I use when I release my completed mod. Thanks! There's a mod similar to your request that works without NVSE, and it might be easier to adapt it for personal use or at least inspiration - http://www.newvegasnexus.com/downloads/file.php?id=35115 I've been doing it to basically do what you want except not having to worry about what I'm wearing to do it. I hardly use it as I try to utilize it in situations where I would be willing to lose a real stealthboy.Also keep in mind, while you can activate a stealth field while standing, the game mechanics won't really hide you as you're not sneaking around. Link to comment Share on other sites More sharing options...
kato85 Posted December 22, 2010 Author Share Posted December 22, 2010 I'm a complete novice when it comes to scripting, I have a basic idea on how to make things work normally in the GECK, but recently I downloaded NVSE, partially to use the Readius mod, but partially because I wanted to exploit some of it's added features, such as assigning hotkeys, and more specifically I wanted to create a script that would allow a player to activate a stealth mode without having to be in sneak mode. I've gone through NVSE's documentation page a couple times but.. it really doesn't help me much since I don't really understand the functions. I've gotten by with the GECK's normal scripting functions partially due to the Wiki and the existing scripts. So this is what I want to do. I want a script that: - is associated with a specific armor AND- allows cloaking/stealth to be activated/deactivated via hotkey. If someone would be willing to write at least an example script for me, I can go from there. I will also credit the individual who's script example I use when I release my completed mod. Thanks! There's a mod similar to your request that works without NVSE, and it might be easier to adapt it for personal use or at least inspiration - http://www.newvegasnexus.com/downloads/file.php?id=35115 I've been doing it to basically do what you want except not having to worry about what I'm wearing to do it. I hardly use it as I try to utilize it in situations where I would be willing to lose a real stealthboy.Also keep in mind, while you can activate a stealth field while standing, the game mechanics won't really hide you as you're not sneaking around. Yeah. I think because of that I will just add the stealth field to the Object Effect of the armor and just have it activate when the PC is sneaking. I kind of wanted the hot key since I didn't always want the stealth field active even if sneaking. Thanks for the suggestions, I will probably check them out and see if I change my mind again and decide to script it in. Link to comment Share on other sites More sharing options...
Recommended Posts