My NPC itself seems to be basically functional (I can CLUA him in, etc.), but I'm having problems with the scripting. I'm trying to place him in AR0412 (the area in the Planar Sphere with Tolgerias and the hot/cold rooms).
Before installing, looking at AR0412.are in Infinity Explorer says that the area's script is AR0412. Clicking on that filename, however, does nothing, as there *is* no AR0412.bcs in Scripts.bif or the Override folder.
From my TP2:
COPY ~Tweakpack6/s6harvid.cre~ ~override~ // Harvidion
SAY NAME1 ~Harvidion~
SAY NAME2 ~Harvidion~
COMPILE ~Tweakpack6/s6harvid.baf~ // Harvidion's AI
APPEND ~mastarea.2da~ ~AR0412 value~ // Allow local variables in AR0412
UNLESS ~AR0412~
COPY_EXISTING ~AR0412.are~ ~override/AR0412.are~
WRITE_ASCII 0x94 ~AR0412~
BUT_ONLY_IF_IT_CHANGES
EXTEND_TOP ~ar0412.bcs~ ~Tweakpack6/ar0412.baf~ // Spawn script
I've read most of this thread, with particular attention to Page 3, where Usually Lurking is having problems that sound like mine--per the advice given to him by Ghreyfain and Bons, I added the APPEND and COPY_EXISTING sections to my own code.
After installing, the area behaves exactly as it did before. Pulling up Infinity Explorer again, AR0412.ARE still uses AR0412.BCS as its script--and clicking on that filename still does nothing, because the game can't seem to find it: I can see AR0412.BCS in the Override folder, and if I have Infinity Explorer pull it from there it looks all right . . . but it's still not in the Scripts.bif menu, and it still doesn't seem to be attached to AR0412.ARE, so the script never runs, and my NPC never appears.
What am I missing here?