SneakyGuy101 on 30/12/2014 at 09:53
Quote Posted by Yandros
2. On the M-KnockedOut metaproperty, add a source for this stim which fires once with a short rate, like 10 msecs.
3. On the Human archetype, add a receptron to the stim to frob a button (by custom name, not by object number).
4. Link the button to a (
http://dromed.whoopdedo.org/tnhscript/trapthreshold) TrapThreshold with the threshold set to the number you want.
Could someone explain in greater detail how to do these steps?
Yandros on 30/12/2014 at 15:18
On the M-KnockedOut metaproperty, add a source for this stim which fires once with a short rate, like 10 msecs.
1. Open the object hierarchy and change to Metaproperties. Find and open the M-KnockedOut metaproperty, which should be under AI_Behaviors > AI_B_Gen > M-AI-Disable.
2. Double-click the Receptrons to open that dialog.
3. Add Act/React > Sources, then click Add to add a new one.
4. Set the Stimulus to your custom stim, and Propagator to Radius. Set Intensity to 1. Click Edit Shape and deselect Line of Sight (raycast) from the Flags, click OK. Click Edit Life Cycle and set Period to 10 so it fires right away.
On the Human archetype, add a receptron to the stim to frob a button (by custom name, not by object number).
1. Open the hierarchy and go to the Human archetype.
2. Add Act/React > Receptrons, and click Add on the new dialog.
3. Set the Stimulus to your custom stim. Check the No Max box. Change the Effect to Frob Object and make the target your button. You can enter the number or the name if you gave it a custom name. I usually hit tab to make sure it finds it before clicking OK to close the dialog.
Link the button to a TrapThreshold with the threshold set to the number you want.
1. Create a Marker or a TrapTrig, and add S >Scripts and give it the TrapThreshold script.
2. Link the button to this object via ControlDevice.
3. Add Editor > Design note and set it to "threshold = n" (no quotes) where n is the number of knockouts you want them to have before the goal is completed.
Obviously, you'll have to do the other steps as well before this will work, but those are the ones you asked about.
SneakyGuy101 on 30/12/2014 at 21:39
I did everything right but now everytime I knock someone out it crashes dromed. Could it be crashing because I'm using the tnh scripts in Thief 1?
R Soul on 30/12/2014 at 23:30
Yes. tnhScript is T2 only.
Which type of Thief 1 are you using? TDP or Gold? If you're using Gold you can use my DrSKnockout suggestion.
Yandros on 31/12/2014 at 05:37
But wait, T1 is really NewDark and the same engine and same Dromed as he'd be using in Thief 2. Right?
LarryG on 31/12/2014 at 05:40
I think you have to stick to one set of scripts though, either the T2 scripts or the T1, no?
R Soul on 31/12/2014 at 17:23
For T1 we have to specify a config var to put NewDark into T1 mode. This would enable support for T1 script modules, and it's probably not possible to support both kinds at once.
Yandros on 31/12/2014 at 23:13
Ah yeah, you're probably right about that. Sneaky, you'll need a slightly more complex setup without that script. I'll post something later tonight if someone else doesn't beat me to it.
R Soul on 31/12/2014 at 23:46
A forum search quickly revealed he is using Thief Gold, so he can use TrigQVar to monitor DrSKnockout.