Can someone PLEASE help me? I am brand new to scripting and know next to nothing about it.
I want to make a door (or ANY kind of area transition) that will transport the PC from a wizard's shack to one area BEFORE you get a journal update, and a different one AFTER you get the journal update.
I have already set up all three areas and waypoints for each of the different areas, but I can't seem to figure out how to make a good script for this. I was using Lilac Soul's script editor, but couldn't get it to work right... then I found this script on the NWN wiki, but I can't figure out how to 'fill it in'.
Thank you in advance for your help!
//
// Script: cond_area_trans1.nss
// Author: Trinity
// Date: 20 November 2002
//
// This script goes into the On Click script for the
// area transition trigger. Some people click on
// AT triggers.
//
void main()
{
// Assign the variables
object oPC = GetClickingObject();
object oWP = GetWaypointByTag("WP_AT_NEWAREA");
object oWP1 = GetWaypointByTag("WP_AT_OLDAREA");
int iVar1 = GetLocalInt(GetModule(), "iVar");
// Now we test to make sure at iVar1 is what you need to
// go into the new area. If it isn't, you go to the old.
if (iVar1 != number)
{
AssignCommand(oPC, JumpToObject(oWP1));
}
else
{
AssignCommand(oPC, JumpToObject(oWP));
}
}