I am having major trouble with what should be some simple scripting. Sadly, I truly am a noob.
I've got a zone and I want pedestrians. Imagine a street in Victorian England...
I want some npcs (soldiers) to move with purpose, patrolling diligigently.
I want some npcs to wander in a really random fashion. Imagine a little mouse scurrying about...
I want some npcs to wander at random, but change directions less often than the mice...
But at present I can't get anyone to move at all.
I've tried a few things online and they don't seem to function...or even to be complete.
I've also tried Lilac Soul's script gen but it doesn't seem to work.
Script is included here.
This zone is basically one big wide north south corridor with doors leading out to other zones.
PumpN and PumpS tags refer to water pumps at the far north and south end.
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.3
For download info, please visit:
//Put this script OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (d100()>50)
return;
object oTarget;
oTarget = GetObjectByTag("GoblinPed");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("PumpN")));
AssignCommand(oTarget, ActionMoveAwayFromObject(GetObjectByTag("PumpN")));
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("PumpS")));
AssignCommand(oTarget, ActionMoveAwayFromObject(GetObjectByTag("PumpS")));
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("TorchC")));
}