Pulse Control+D para no olvidar este enlace.
 
Pagina principalÍndicePortalFAQBuscarRegistrarseConectarsePagina principal

Compartir | 
 

 ayuda plis

Ver el tema anterior Ver el tema siguiente Ir abajo 
AutorMensaje
Joe
Novat@
Novat@


Masculino
Edad: 31
Puntos de Actividad: 1088

Cantidad de envíos: 2
Fecha de inscripción: 28/02/2009

Nº. de Miembro: 53
Respeto por el Foro:
100 / 100100 / 100


MensajeTema: ayuda plis   Sáb 23 Ene 2010, 12:11 am

hola pues desde hace mucho visito el foro he sacado muy buena informaciond e aqui y ahora me encuentro en un problema espero puedan ayudarme.
he visto que ay una varita de dm q hace que los pnjs de un area den un paseo aleatorio para que se muevan en ves de estar parados solo como robots y el efecto lo aplico en los bichos hostiles q ya he pintado por todo el servidor pero cuando recarga el area con bichos nuevos se pierde ese efecto ay algun scrip para que los pnjs siempre esten dando paseos aleatorios y no estar solo parados?

bueno ojala puedan ayudarme gracias
saludos
Volver arriba Ir abajo
Xiulito
Administrador/a
Administrador/a


Masculino
Edad: 31
Localización: Vivo aqui
Puntos de Actividad: 2146

Cantidad de envíos: 101
Fecha de inscripción: 22/03/2008

Nº. de Miembro: 1
Respeto por el Foro:
100 / 100100 / 100


MensajeTema: Re: ayuda plis   Miér 17 Feb 2010, 10:26 pm

Wenas, para que los pnj cobren un poco de vida propia puedes poner este script en el OnSpawn del pnj que tienes en la paleta o en los que ya tienes distribuidos por el server, si tienes algún otro script que te reinicie o crea nuevos pnjs asegúrate de que el nuevo pnj que se crea tiene este script

Código:
//::///////////////////////////////////////////////
//:: Default: On Spawn In
//:: NW_C2_DEFAULT9
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
    Determines the course of action to be taken
    after having just been spawned in
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 25, 2001
//:://////////////////////////////////////////////
#include "NW_O2_CONINCLUDE"
#include "NW_I0_GENERIC"
void main()
{
// OPTIONAL BEHAVIORS (Comment In or Out to Activate ) ****************************************************************************
    //SetSpawnInCondition(NW_FLAG_SPECIAL_CONVERSATION);
    //SetSpawnInCondition(NW_FLAG_SPECIAL_COMBAT_CONVERSATION);
                // This causes the creature to say a special greeting in their conversation file
                // upon Perceiving the player. Attach the [NW_D2_GenCheck.nss] script to the desired
                // greeting in order to designate it. As the creature is actually saying this to
                // himself, don't attach any player responses to the greeting.
    //SetSpawnInCondition(NW_FLAG_SHOUT_ATTACK_MY_TARGET);
                // This will set the listening pattern on the NPC to attack when allies call
    //SetSpawnInCondition(NW_FLAG_STEALTH);
                // If the NPC has stealth and they are a rogue go into stealth mode
    //SetSpawnInCondition(NW_FLAG_SEARCH);
                // If the NPC has Search go into Search Mode
    //SetSpawnInCondition(NW_FLAG_SET_WARNINGS);
                // This will set the NPC to give a warning to non-enemies before attacking
    //SetSpawnInCondition(NW_FLAG_SLEEP);
                //Creatures that spawn in during the night will be asleep.
    //SetSpawnInCondition(NW_FLAG_DAY_NIGHT_POSTING);
    //SetSpawnInCondition(NW_FLAG_APPEAR_SPAWN_IN_ANIMATION);
    //SetSpawnInCondition(NW_FLAG_IMMOBILE_AMBIENT_ANIMATIONS);
    SetSpawnInCondition(NW_FLAG_AMBIENT_ANIMATIONS);
                //This will play Ambient Animations until the NPC sees an enemy or is cleared.
                //NOTE that these animations will play automatically for Encounter Creatures.
    // NOTE: ONLY ONE OF THE FOLOOWING ESCAPE COMMANDS SHOULD EVER BE ACTIVATED AT ANY ONE TIME.
    //SetSpawnInCondition(NW_FLAG_ESCAPE_RETURN);    // OPTIONAL BEHAVIOR (Flee to a way point and return a short time later.)
    //SetSpawnInCondition(NW_FLAG_ESCAPE_LEAVE);    // OPTIONAL BEHAVIOR (Flee to a way point and do not return.)
    //SetSpawnInCondition(NW_FLAG_TELEPORT_LEAVE);  // OPTIONAL BEHAVIOR (Teleport to safety and do not return.)
    //SetSpawnInCondition(NW_FLAG_TELEPORT_RETURN);  // OPTIONAL BEHAVIOR (Teleport to safety and return a short time later.)
// CUSTOM USER DEFINED EVENTS
/*
    The following settings will allow the user to fire one of the blank user defined events in the NW_D2_DefaultD.  Like the
    On Spawn In script this script is meant to be customized by the end user to allow for unique behaviors.  The user defined
    events user 1000 - 1010
*/
    //SetSpawnInCondition(NW_FLAG_HEARTBEAT_EVENT);        //OPTIONAL BEHAVIOR - Fire User Defined Event 1001
    //SetSpawnInCondition(NW_FLAG_PERCIEVE_EVENT);        //OPTIONAL BEHAVIOR - Fire User Defined Event 1002
    //SetSpawnInCondition(NW_FLAG_ATTACK_EVENT);          //OPTIONAL BEHAVIOR - Fire User Defined Event 1005
    //SetSpawnInCondition(NW_FLAG_DAMAGED_EVENT);          //OPTIONAL BEHAVIOR - Fire User Defined Event 1006
    //SetSpawnInCondition(NW_FLAG_DISTURBED_EVENT);        //OPTIONAL BEHAVIOR - Fire User Defined Event 1008
    //SetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT); //OPTIONAL BEHAVIOR - Fire User Defined Event 1003
    //SetSpawnInCondition(NW_FLAG_ON_DIALOGUE_EVENT);      //OPTIONAL BEHAVIOR - Fire User Defined Event 1004
    //SetSpawnInCondition(NW_FLAG_DEATH_EVENT);            //OPTIONAL BEHAVIOR - Fire User Defined Event 1007
// DEFAULT GENERIC BEHAVIOR (DO NOT TOUCH) *****************************************************************************************
    SetListeningPatterns();    // Goes through and sets up which shouts the NPC will listen to.
    WalkWayPoints();          // Optional Parameter: void WalkWayPoints(int nRun = FALSE, float fPause = 1.0)
                              // 1. Looks to see if any Way Points in the module have the tag "WP_" + NPC TAG + "_0X", if so walk them
                              // 2. If the tag of the Way Point is "POST_" + NPC TAG the creature will return this way point after
                              //    combat.
    GenerateNPCTreasure();    //* Use this to create a small amount of treasure on the creature
    ActionRandomWalk();
}

_________________
¿Saben cual es la diferencia entre un hombre inteligente y uno sabio?
Que el inteligente sabe lo que dice y el sabio sabe cuando decirlo.


Fdo.: El Administrador del Foro.
Volver arriba Ir abajo
http://www.nwnforo.com
Gonar
Patos@
Patos@


Masculino
Edad: 35
Puntos de Actividad: 527

Cantidad de envíos: 18
Fecha de inscripción: 09/02/2011

Nº. de Miembro: 132
Respeto por el Foro:
100 / 100100 / 100


MensajeTema: Re: ayuda plis   Miér 09 Feb 2011, 11:50 pm

Yo en vez de tocar el script, lo que haria seria añadirle variables.

Te vas a la pestaña Avanzado de sus propiedades y le añades:

Nombre: CREATURE_VAR_USE_SPAWN_AMBIENT_IMMOBILE
Tipo : Int
Valor: 1
Esta primera hara que este animada, pero en un punto fijo, por ejemplo dos marujas en el mercado de una villa.

Nombre: CREATURE_VAR_USE_SPAWN_AMBIENT
Tipo: Int
Valor: 1
Esta segunda hace lo mismo que la anterior, pero ademas se mueven de un sitio a otro cuando no tiene con quien hablar.

Es preferible esto o crear tus propios scripts a tocar los de bioware, por que esos afectan a todo tipo de criaturas basicas.
Volver arriba Ir abajo
 

ayuda plis

Ver el tema anterior Ver el tema siguiente Volver arriba 
Página 1 de 1.

 Temas similares

-
» [AYUDA EN EL FORO] AÑADIR UN AVATAR
» Sweet cree en la ayuda de los "dioses del beisbol"
» "Hola ayuda plizz"!
» ayuda plis
» Ayuda: Confiansa del equipo

Permiso de este foro:No puedes responder a temas en este foro.
Neverwinter Nights, modding - scripts - manuales, todo sobre el NWN :: NWToolSet (Aurora) :: Scripting NWN :: Dudas y Preguntas (Scripting)-