LarryG on 8/7/2010 at 19:06
In the "About the scripts" for NVTrigger scripts, you say
Quote:
You can use trigger on and off parameters to specify a stim to send instead. To do this, first enter the intensity surrounded by square brackets, followed by the stim name. For example: [ScriptName]TOn="[5.00]WaterStim".
You can also specify a range of stims by specifying the minimum and maximum intensities, separated by a pipe. For example: [ScriptName]TOn="[5.00|10.00]WaterStim" will send a WaterStim with a random intensity between 5.00 and 10.00. Note that the result is a floating point number anywhere inside the range, it is not limited to whole numbers.
But you don't have the equivalent statement for NVTrap scripts. Can you not trap on stims? If not, could this be added to the NVTrap base? That would be very useful.
Nameless Voice on 8/7/2010 at 21:40
That's what the Send To Scripts receptron is for!
It will send a [StimName]Stimulus message.
LarryG on 8/7/2010 at 22:31
I'm confused. How do I tell NVRelayTrap that [5.00|10.00]WaterStim is a TurnOn and [10.00|15.00]WaterStim is a TurnOff? That is, I know how to send the stim to the scripts, but I don't know how to tell the scripts what to do with the stim.
Nameless Voice on 8/7/2010 at 23:00
Oh. You can't really. You'd need to use a second stim.
LarryG on 8/7/2010 at 23:07
Can you explain further? I want to separate TurnOn from TurnOff using the intensity of the stim. How do I translate a range of a stim into another stim so that NVRelayTrap will recognize it without having two buttons to frob at the differing intensity bands.
I suppose I could use a receptron to stimulate object [me] with a "TurnOnStim" for one band and another with "TurnOffStim" for the other band and then two more receptrons to send to scripts for the two new stims, TurnOnStim and TurnOffStim. I think That would work, but seems awfully clumsy compared with having the stims intercepted and interpreted directly by NVTrap.
Nameless Voice on 8/7/2010 at 23:18
WaterStim: 5.00 to 10.00 - Send to Scripts
WaterStim 10.00 to 15.00 - Stimulate Object, Me, by Source, Stim type SomeStimName, Multiply By 1.00 Then Add 0.00.
SomeStimName any to any - Send to Scripts
NVRelayTrapOn="WaterStimStimulus"; NVRelayTrapOff="SomeStimNameStimulus"
LarryG on 8/7/2010 at 23:21
:sweat: Got it. Thanks. Still it would be nice to have NVTrap take care of all that. :thumb:
LarryG on 9/7/2010 at 14:55
Here's another script that I would find useful: a combination of TrigProximity and VisibleRelay into one script, so that it only fires a TurnOn when the player gets within the specified distance and is looking at the object with the script (object on screen). If the player looks away or gets too far behind it sends a TurnOff.
Yandros on 9/7/2010 at 22:33
I would suggest just adding a new param to TrigProximity such as TrigProximityVisible=1 to make being visible an additional requirement.