darthsLair on 23/2/2015 at 16:17
I created a book under the archetype book. I have frobinfo set to script. My concrete book has TrapFrobInert in Script1. I have frobinfo set to none,none,none on this concrete book.
My understanding was that a TurnOn would enable the script from the archetype. Am I wrong here?
Lever cdlink to book=TurnOn which enables script, and TurnOff=disables script?
I have tried this all ways, and just can't get it to work. I have done searches but to no avail. Any help would be greatly appreciated.
Thanks!
LarryG on 23/2/2015 at 17:06
You didn't mention any links from the TrapFrobInert object to the book ... if you look at ObjFrobInert (the base script for TrapFrobinert) you'll see:
[TABLE="class: inline]
<tbody>[TR="class: row1]
[TH="class: col0]Links [/TH]
[TD="class: col1 leftalign] <kbd>(
http://dromed.whoopdedo.org/dromed/link/scriptparams) ScriptParams</kbd>(<samp>FrobInert</samp>) [/TD]
[TD="class: col2 leftalign] Linked to objects that will have the <kbd>FrobInert</kbd> metaproperty.
[/TD]
[/TR]
</tbody>[/TABLE]
So I think you need to set up a ScriptParams link and use the FrobInert metaprop on the concrete book instead of mucking about with the Frobinfo settings themselves.
R Soul on 23/2/2015 at 17:07
There is documentation (
http://dromed.whoopdedo.org/tnhscript/trapfrobinert) here but the table says it inherits from ObjFrobInert, so you have to read about that too.
The script doesn't work with the object it's added to; it works with objects it's linked to. So the lever -CD-> a marker -ScriptParams (data: FrobInert)-> the book.
TrapFrobInert goes on the marker.
You do not add FrobInert or FrobInfo to the book The script handles it all.
darthsLair on 23/2/2015 at 17:09
Quote Posted by R Soul
There is documentation (
http://dromed.whoopdedo.org/tnhscript/trapfrobinert) here but the table says it inherits from ObjFrobInert, so you have to read about that too.
The script doesn't work with the object it's added to; it works with objects it's linked to. So the lever -CD-> a marker -ScriptParams (data: FrobInert)-> the book.
TrapFrobInert goes on the marker.
You do not add FrobInert or FrobInfo to the book The script handles it all.
Hi Robin,
Thanks, I read the documentation, but must have missed the ScriptParams link.
Thanks again ! :thumb: