//Put this script OnEnter#include "nw_i0_generic"void main(){
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
object oTarget;object oSpawn;location lTarget;oTarget = GetWaypointByTag("waypoint tag");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "creature tag", lTarget);
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
}
And I would like to be able to use this script, but edit what it does using variables.
So what im really asking is, can someone take this script and add a string for whatever NPC tag i want to use
Whatever waypoint i want to use
and how many creatures i would like to spawn
It doesnt sound like too difficult of a job..





Retour en haut






