So, even when I was messing with scripting all those years ago, I never really understood it. Now I have an idea, and it has me stumped.
I want to have a placeable object hooked to a conversation (call it a Planar Console, tag of “pfc_console”), and in that conversation, the Planar Console looks to the inventory of another placeable object (call it a Planar Crystal Housing, tag of “pfc_housing”) to determine what sort of conversation options are available. The presence of a particular Focus Crystal (tag of “focus_crystal_xx” opens a particular conversation line. And there are 11 different Focus Crystals.
This is the script that I am puzzling with right now. I have it set in the “Text Appears When” tab of the Conversation Editor’s script window.
// Get the possessor
object oPossessor = GetObjectByTag(“pfc_housing”);
// Get the crystal
object oCrystal = GetObjectByTag(“focus_crystal_01”);
oPossessor = GetItemPossessor(oCrystal);
if (oPossessor == oCrystal) return FALSE;
I know I’m missing something somewhere, but I can’t figure it out, even with the help of the Lexicon, Lilac Soul’s Script Generator, and numerous tutorials. Any help is greatly appreciated!
(Oh, if I didn’t mention, I am running 1.69 Diamond with the Critical Rebuild Patch applied.)