BioWare Atari
BioWare Info BioWare Spiele Support Foren Visit the BioWare Store
Neverwinter Nights Home
Neverwinter Nights Home

Archives: Builders - NWN Scripting



       Zum Ende springen

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


Beigetreten: 22 Jun 2002
Gepostet: Montag, 29 September 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]
  Profil: Jerim   Nachricht verschicken an: Jerim
Jerim
Game Owner
Profil: JerimNWN
NWN: SoU
NWN: HotU
NWN 2


Beigetreten: 22 Jun 2002
Gepostet: Montag, 29 September 2003 12:03
stupid forum...here is the script:

NWScript:

View Post/Code in separate window

  Profil: Jerim   Nachricht verschicken an: Jerim
Jerim
Game Owner
Profil: JerimNWN
NWN: SoU
NWN: HotU
NWN 2


Beigetreten: 22 Jun 2002
Gepostet: Montag, 29 September 2003 11:44
Any advice? Anyone?
  Profil: Jerim   Nachricht verschicken an: Jerim


Was bedeuten diese Symbole?
Wo kann ich mehr über die Benutzung der Foren erfahren?

Jump To:

Foren durchsuchen | Häufige Fragen zu Foren | Foren-Archive

 

 

BioWare Store
Neverwinter Nights 2 Forums
Anzeigen/Verbergen

English
Deutsch
Français
Español
Italiano

Anzeigen/Verbergen

Neueste Bildschirmfotos anzeigen 

Neueste Bildschirmfotos anzeigen
Anzeigen/Verbergen

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



Aktuelle Uhrzeit: (Zeit einstellen)
Sa, 21 November 2009 07:40

Anzeigen/Verbergen

Buy Premium 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

Anzeigen/Verbergen

5,037,654 BioWare-Benutzer:
  37 Eingeloggt
  1 Verborgen
  123 Gäste

731 Playing Online
  100% NWN
  98% NWN: SoU
  100% NWN: HotU

446 Registered Guilds

8,767,729 Einträge in den Foren

Neueste Themen in den Foren:
1. IGN rewards ME 1 Top Xbox 360 Ga... (Mass Effect 2 General Discussion (No Spoilers Allowed))

2. Lore (NWN2: General discussion forums for NWN2 (No Spoilers Allowed))

3. heads/skins/etc (NWN2: Custom Content)

4. screen bleedover problem (NWN2: Builders - NWN2 Toolset)

5. Comment from Mr. Bartel (Premium Neverwinter Nights 1 Modules Discussion)