Jump to content

creating NVSE functions


TheBlob2

Recommended Posts

I doubt it is simple although other people have done so by creating plugins for it: http://geck.bethsoft.com/index.php?title=New_Vegas_Script_Extender . NVSE is way more complicated than any Fallout mod. My first move would be to try and find a workaround. What functions are you needing? Sometimes, you can accomplish what you want through indirect means.

 

If you're dead set on expanding the functionality, and nobody here can offer any help, I'd try to contact the authors of NVSE or any of the plugins. Maybe one of them will be able to provide a starting point.

 

Sorry if I can't be more helpful. If you do end up succeeding, make a tutorial! I'll bet other people would be eager to expand NVSE.

Link to comment
Share on other sites

The C++ source code is distributed with NVSE along with an example plugin, and you can also take a look at the source of Lutana/JIP/NX.

 

If you're not from a programming background, I'm afraid this is not a good place to start.

--

 

What functions are you looking for? A lot of things can be achieved using UDFs if you know the existing functions well enough. I wrote most the NVSE articles on GECK wiki, so try me ;).

Link to comment
Share on other sites

The C++ source code is distributed with NVSE along with an example plugin, and you can also take a look at the source of Lutana/JIP/NX.

 

If you're not from a programming background, I'm afraid this is not a good place to start.

--

 

What functions are you looking for? A lot of things can be achieved using UDFs if you know the existing functions well enough. I wrote most the NVSE articles on GECK wiki, so try me :wink:.

i need a function that detects the amount of light shining on an specific actor or object, or how much the light currently affects that actor's ability to stay undetected, like a way to gauge the likelyhood a specific actor will remain undetected

Link to comment
Share on other sites

 

The C++ source code is distributed with NVSE along with an example plugin, and you can also take a look at the source of Lutana/JIP/NX.

 

If you're not from a programming background, I'm afraid this is not a good place to start.

--

 

What functions are you looking for? A lot of things can be achieved using UDFs if you know the existing functions well enough. I wrote most the NVSE articles on GECK wiki, so try me :wink:.

i need a function that detects the amount of light shining on an specific actor or object, or how much the light currently affects that actor's ability to stay undetected, like a way to gauge the likelyhood a specific actor will remain undetected

 

I'm not too sure on how to achieve this using existing commands, and I haven't experimented with creating functions either. Do you have any experience with scripting in a language other than TESScript (the script language used by the GECK)

Link to comment
Share on other sites

I'm not too sure on how to achieve this using existing commands, and I haven't experimented with creating functions either. Do you have any experience with scripting in a language other than TESScript (the script language used by the GECK)

you mean other than papyrus? no

Edited by TheBlob2
Link to comment
Share on other sites

Afraid I don't know of any functions (doubled checked the lists) any functions that return light information.

 

However, I speculate that the engine uses a much simpler technique to calculate actor detection based on facing angle, distance and sneak state/skill (all of which there are functions for), and light is relevant and calculated only to render the current viewport.

 

If you want to know the chance the player will be imminently detected, you could try using GetRefs 200, -1 to grab all actors in the ugrid, and check GetDistance / GetLOS / GetHeadingAngle, etc.

Link to comment
Share on other sites

Afraid I don't know of any functions (doubled checked the lists) any functions that return light information.

 

However, I speculate that the engine uses a much simpler technique to calculate actor detection based on facing angle, distance and sneak state/skill (all of which there are functions for), and light is relevant and calculated only to render the current viewport.

 

If you want to know the chance the player will be imminently detected, you could try using GetRefs 200, -1 to grab all actors in the ugrid, and check GetDistance / GetLOS / GetHeadingAngle, etc.

Light is actually a big deciding factor in stealth. in broad daylight sneaking behind someone can be near impossible unless your skill is at least 50, and at night you barely need 30.

 

And light is the only thing I want, I don't need the distance or what direction someone is facing, all I need is a function that tells me how much influence light currently has on a specific actor's ability to stay undetected, and whether that influence is positive or negative.

 

And there doesn't seem to be any existing functions that detect light in any way, perhaps in the next version of NVSE?.

Edited by TheBlob2
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...