MysteryMan on 4/11/2013 at 16:49
Hi
I have a key that has a stim, so that garrett will frob a button when the player picks it up.
I want to use the key in chest, but the chest has a container script by default. When the container opens the key goes into inventory, but somehow the stim is deactivated because I have Move,Script under world action.
In the source stim, I have contact>FrobInWorld.
The key works fine and garrett does frob the button when it is picked up providing a container script is not being used on the key from the chest.
I tried using an NVItemGiver marker with editor design note:NVGiveWhat="Name of Object" linked from the chest, and the key goes into inventory just fine, but Garrett does not frob the button, because the player didn't actually frob the key, as it went into inventory using the ItemGiver script.
If this wasn't a key, I would use TrigWorldFrob, and use Move,Script under World Action. So my question is what action to I use in the source Stim>edit shape?
I have tried all of them, and to no avail. NvItemGiver sends the key into inventory without the player frobbing it.
Keys are very particular as to what scripts conflict with the StdKey script.
R Soul on 4/11/2013 at 17:07
When the key is in the container, the stim won't activated because they key isn't being frobbed. Put the stim on the container instead.
MysteryMan on 4/11/2013 at 17:19
Thanks Robin, I will try it.
Xorak on 4/11/2013 at 22:43
Another possible scenario is to have the key in the world be a dummy object (a QuestyGear with a key model works good for this, just to avoid any troubles the key object might give). When the player frobs the key, the key stims the button which also deletes the key in the world, and also gives the proper key to the player using NVItemGiver. And the key the player gets can then be a normal key.
EDIT-sorry, I misread what you were trying to do. The above method is kind of blah now
Yandros on 4/11/2013 at 23:49
Dumb question, but if you're just trying to trigger something when Garrett gets the key out of the chest, why not just CD-link the container to whatever the button is linked to now? The Container script sends TurnOn down its CD links when the container is opened. You won't need a stim or a button that way.