BioWare Atari
Información sobre BioWare Juegos de BioWare Soporte Foros Visit the BioWare Store
Neverwinter Nights Home
Neverwinter Nights Home

Archives: Builders - NWN Scripting



       Ir abajo

Autor Help. Shop assist will not talk to the Master Craftsman
Jerim
Game Owner
Perfil: JerimNWN
NWN: SoU
NWN: HotU
NWN 2


Suscrito: 22 jun 2002
Colgado: lunes, 29 septiembre 2003 12:02
Hopeing for a bit of help.

I am working on an addition to a existing PW server. It is a shop where the master craftsmen is the PC owner. I put together a conversation where a PC can talk to the assistant and if the PC Master Craftsman is in the area , the assistant will move to him and start a new conversation saying that someone is here to see him.

I put this script in the OnAction of the conversation, I can select the statement that the script is on, but it does not appear to execute. That part of the conversation tree is something like this:
- NPC: Please have a seat
- PC: Thank you
The script is supposed to fire when the player selects "Thank you".

Can anyone tell what I am doing wrong here?


(nwscript)
void main() {
int nPlayer = 1;
int nMasterFound = FALSE;
int nSearch = TRUE;
object oPC;
object oNPC = GetObjectByTag("S1_NPC");
object oMaster;

while(nMasterFound == FALSE && nSearch ==TRUE) {
oPC = GetNearestCreature (CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, oNPC, nPlayer, CREATURE_TYPE_PLAYER_CHAR, CREATURE_TYPE_IS_ALIVE);

string sLoginName = GetPCPlayerName(oPC);
string sCharName = GetName(oPC);
if ((sLoginName == "MasterPlayer") && (sCharName == "Da Master")) {
oMaster = oPC;
nSearch = FALSE;
nMasterFound = TRUE;
}
else if (oPC == OBJECT_INVALID)
nSearch = FALSE;

nPlayer++;
}

if (nMasterFound == TRUE) {
AssignCommand (oNPC, ActionMoveToObject (oMaster, FALSE, 1.0f));
AssignCommand (oNPC, ActionStartConversation (oMaster, "s1_customerhere", TRUE, TRUE));
}
}
[\nwscript]
  Perfil: Jerim   Enviar mensaje a: Jerim
Jerim
Game Owner
Perfil: JerimNWN
NWN: SoU
NWN: HotU
NWN 2


Suscrito: 22 jun 2002
Colgado: lunes, 29 septiembre 2003 12:03
stupid forum...here is the script:

NWScript:

View Post/Code in separate window

  Perfil: Jerim   Enviar mensaje a: Jerim
Jerim
Game Owner
Perfil: JerimNWN
NWN: SoU
NWN: HotU
NWN 2


Suscrito: 22 jun 2002
Colgado: lunes, 29 septiembre 2003 11:44
Any advice? Anyone?
  Perfil: Jerim   Enviar mensaje a: Jerim


¿Qué significan estos iconos?
¿Dónde puedo aprender a usar los foros?

Jump To:

Buscar foros | Preguntas frecuentes sobre los foros | Archivos del foro

 

 

BioWare Store
Neverwinter Nights 2 Forums
Mostrar/Ocultar

English
Deutsch
Français
Español
Italiano

Mostrar/Ocultar

Ver las últimas pantallas 

Ver las últimas pantallas
Mostrar/Ocultar

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



La hora actual es: (insertar hora)
mar, 09 febrero 2010 07:49

Mostrar/Ocultar

Download Modules

Top NWN: HotU Modules:
1. Good vs Evil III
2. More...

Top NWN: SoU Modules:
1. Good vs Evil III
2. More...

Top CEP Modules:
1. The Lord of Terror The Diablo Campa...
2. More...

Top Modules - NWVault:
1. Hall of Fame
2. More...

Total Modules: 4423

Mostrar/Ocultar

5,993,681 usuarios de BioWare:
  54 conectados
  6 ocultos
  414 invitados

1265 Playing Online
  100% NWN
  102% NWN: SoU
  102% NWN: HotU

426 Registered Guilds

9,000,858 mensajes en los foros

Temas más recientes de los foros:
1. Script control of encounters? (O... (NWN2: Builders - NWN2 Scripting)

2. Do i need to play BG 1? (Baldur's Gate II: SoA and ToB General Discussion)

3. Memorized Spells ui modification (NWN2: Custom Content)

4. My Dm's Can't log in, DM Client ... (NWN 1: Server Admin)

5. My Dm's Can't log in, DM Client ... (NWN 1: Server Admin)