Le MAlin 76 on 8/5/2014 at 10:37
I want to use the MetaTrap to douse a Candle.
So there is Candle, and Flamme (with animlight).
* 1 Candle
* *Script: NVMetaTrap (True)
* *DesignNote: NVMetaTrapMeta="M-GoldCandle1"; NVMetaTrapOn="TurnOn"
* *FrobInfo: World Action Script [Link to a button with Frobproxy]
* 2 Button
* *Script: NvRelayTrap (True)
* *Design Note: NVRelayTrapOn="FrobWorldEnd"
* *ClassTag: [nothing]
* *RenderType: Note Rendered
* *Link: Control Device to SoundTrap (which produce an extinction sound)
* *Link: ControlDevice to DestroyTrap
* 3 DestroyTrap
Link to the flamme and the button
* 4 The 'M-GoldCandle1' :
* *Loot (100, 0 0)
* *Combine Type: Loot
* *Can't Drop this: true
* *Type: Item
* *Script: LootSounds (False)
All works (the destroy trap and the soundtrap), but not the MetaTrap: the candle highlighted, but it's did nothing because i supressed the button (to prevent against an problem because of the Frobproxy), and the candle is't considered as loot
Same thing when it's NVMetaTrapMeta="ForbInert"; NVMetaTrapOn="TurnOn" [or other Metasproperties]
PS: I am a newbie to using the advanced scripts xD
R Soul on 8/5/2014 at 15:54
"NVMetaTrap (True)" - By selecting True you are preventing other scripts from working. The metaprop has a LootSounds script but that True flag will prevent it being used.
NVMetaTrapOn="TurnOn" is wrong. TurnOn is the default value, and in your setup, nothing is sending that message. The value should be "FrobWorldEnd".
Your metaprop seems to be superfluous. You can use the existing metaprop "IsLoot". However you should also add the Loot property directly to the candle so it always contributes to the total loot available in the mission.
There are other things wrong with your setup. I'd be happy to suggest a better way but it only works if your candle has a vhot (use the command show_vhots and look for a circle with a number at the end of the wick).