I'm virtually at the end of my current project & on playtesting I'm noticing that you can see virtually all of each dungeon level (around 16x16 squares) as soon as you enter the level.
I'd really like to limit the area that can be seen, but I'm not having much luck so far. I've added closed doors on some long passages & some are stopping line of sight at the door, but others make no difference.
I remembered seeing a thread somewhere about using the estates Lid placeable, blown up to cover areas, then destroyed on entering a relevant trigger. I've found that the lids are great for hiding areas of the map, but I can't get a script to destroy them.
This is what I'm using at the moment (via Lilac Soul):
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
http://nwvault.ign.c...=4683&id=625 */
//Put this script OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
object oTarget;
oTarget = GetObjectByTag("lid_1");
DestroyObject(oTarget, 0.0);
}
Can anyone tell me where I'm going wrong with the script, or whether there's some obvious tick box in area properties or similar that I can use to limit what can be seen on the minimap to what the PC can actually see / has explored already?
Everything else is working fine apart from this - so once sorted I can upload it to the vault





Retour en haut







