EmperorSteele on 21/7/2013 at 00:04
First off I'll admit I haven't looked into this very much myself, but I wasn't even sure if it was possible, hence my asking now before putting in hours of frustration.
I want the player to be able to buy a scroll from the pre-mission store, and that doing so will remove one of the AIs, and unlock a door, the premise being that Garrett can bribe a servant to leave the mansion, and keep the door unlocked on the way out.
The scroll itself would probably be a thank-you note or something of the sort. I imagine that it would be easier to implement the above effects once Garrett READS the scroll instead of just having it in his inventory, but I'd prefer the latter effect.
Any ideas?
R Soul on 21/7/2013 at 00:45
In tnhScript there is the (
http://dromed.whoopdedo.org/tnhscript/trigpurchase) TrigPurchase script.
For the door, give it these scripts:
NonAutoDoor
LockSounds
Lock
Don't inherit = true
Give the scroll a CD link to an inverter, and the inverter a CD link to the door. The Lock script responds by unlocking the its object, and NonAutoDoor replaces StdDoor. It prevents the door opening when it's unlocked.
EmperorSteele on 21/7/2013 at 01:40
Wow, that looks so simple! And to remove the AI, would it be a CD link to a destroy trap on the AI?
Yandros on 21/7/2013 at 03:36
Affirmative.
DrK on 21/7/2013 at 11:45
Quote Posted by EmperorSteele
the premise being that Garrett can bribe a servant to leave the mansion, and keep the door unlocked on the way out.
That's a great idea ! :thumb: