BioWare Atari
Information de BioWare Jeux BioWare Assistance Forums Visit the BioWare Store
Neverwinter Nights Home
Neverwinter Nights Home

NWN 1: Scripting

Nouveau Sujet    Poster une Réponse


    Ajouter ceci à Mes Sujets

   Aller au Bas de la page

Auteur Unique Power-Conversation from Item
demisovereign
Game Owner
Profil: demisovereignNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 22 oct 2008
Posté: samedi, 07 novembre 2009 02:54
Ok, I've read the tutorials, used sample scripts from other users, but I can't seem to get a conversation to fire from an item's unique power: Self only[unlimited uses per day].
I have a script named i_ringoftalk_ac

Code:

View Post/Code in separate window



and item called Ring of Talk, tagged ringoftalk.
The convo is named startconvo and will not fire.

When I try to use AssignCommand(oTarget, ActionStartConversation(oPC, "<convo_name>", FALSE, FALSE, TRUE, FALSE)); in the script, it brings up an error:
Quote: 11/6/2009 9:49:24 PM: Error. 'i_ringoftalk_ac' did not compile.
i_ringoftalk_ac.nss(7): ERROR: DECLARATION DOES NOT MATCH PARAMETERS

I'm not sure what causes it, and if there's a simpler way, please post one, because I am just confused to all hell as to why this isn't compiling/working.
  Profil: demisovereign   Envoyer un Message à: demisovereign
Builder_Anthony
Game Owner
Profil: Builder_AnthonyNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 18 jui 2006
Posté: samedi, 07 novembre 2009 03:01
Maybe this
NWScript:

View Post/Code in separate window

Edited By Builder_Anthony on 11/07/09 03:02

  Profil: Builder_Anthony   Envoyer un Message à: Builder_Anthony
demisovereign
Game Owner
Profil: demisovereignNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 22 oct 2008
Posté: samedi, 07 novembre 2009 03:13
No..That didn't work either...

Does the i_<itemtag>_ac need to be placed somewhere or does it simply have to exist?
  Profil: demisovereign   Envoyer un Message à: demisovereign
DM-Taino
Game Owner
Profil: DM-TainoNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 03 nov 2005
Posté: samedi, 07 novembre 2009 03:23
Try this:
NWScript:

View Post/Code in separate window




DMT
  Profil: DM-Taino   Envoyer un Message à: DM-Taino
demisovereign
Game Owner
Profil: demisovereignNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 22 oct 2008
Posté: samedi, 07 novembre 2009 03:51
No dice.
I'm using DotA's PC respawn by area system, could that be the problem?
  Profil: demisovereign   Envoyer un Message à: demisovereign
DM-Taino
Game Owner
Profil: DM-TainoNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 03 nov 2005
Posté: samedi, 07 novembre 2009 04:01
The script I posted needs to be on the module OnActiveItem event. It doesn't have anything to do with your PC respawn script. Unless there attached some way or another.



DMT
  Profil: DM-Taino   Envoyer un Message à: DM-Taino
demisovereign
Game Owner
Profil: demisovereignNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 22 oct 2008
Posté: samedi, 07 novembre 2009 05:09
Yeah, I added it on there and it still didn't work. Maybe I pasted it in wrong. Would you mind showing me an example of the onactivate script done correctly?
  Profil: demisovereign   Envoyer un Message à: demisovereign
DM-Taino
Game Owner
Profil: DM-TainoNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 03 nov 2005
Posté: samedi, 07 novembre 2009 07:07
Okay try this
Ring's Name: Ring of Talk
Ring's Tag: itm_ring_talk
Ring's Properties: Cast Spell: Unique Power Self Only Unlimited Uses/Day << Change if you like

Script's Name: itm_ring_talk
NWScript:

View Post/Code in separate window



Just make sure the default script x2_mod_def_act is on the OnActivateItem module event.

I have tested it and it works.

DMT
  Profil: DM-Taino   Envoyer un Message à: DM-Taino
demisovereign
Game Owner
Profil: demisovereignNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 22 oct 2008
Posté: samedi, 07 novembre 2009 10:17
It seemed to work smoothly, up until:

Click Here
  Profil: demisovereign   Envoyer un Message à: demisovereign
demisovereign
Game Owner
Profil: demisovereignNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 22 oct 2008
Posté: samedi, 07 novembre 2009 11:12
Quote: Posted 11/07/09 10:17 (GMT) by demisovereign

It seemed to work smoothly, up until:

Click Here

SO. I just did an isolated script test in a dummy module. My respawn system IS the culprit.

Code:

View Post/Code in separate window



Something in that code is causing the unique power system to work...It's my OnModLoad event.

Edit: I fixed it, got it to work and everything. Apparently
Code:

View Post/Code in separate window

was turned on through the custom onmoduleload script the respawn system uses.


Thanks a lot for the help all who who replied/read.

Edited By demisovereign on 11/07/09 11:24

  Profil: demisovereign   Envoyer un Message à: demisovereign
DM-Taino
Game Owner
Profil: DM-TainoNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 03 nov 2005
Posté: samedi, 07 novembre 2009 05:59
The reason it didn't work is due too that you forgot or didn't copy the last } after the AssignCommand(oTarget, ActionStartConversation(oPC, "convo_ring_talk"));
} <<<<< Right here..

Glad you got it too work.

DMT
  Profil: DM-Taino   Envoyer un Message à: DM-Taino
demisovereign
Game Owner
Profil: demisovereignNWN
NWN: SoU
NWN: HotU
NWN 2


Lié: 22 oct 2008
Posté: samedi, 07 novembre 2009 06:13
Ah. I'm very new with the scriptor, so I honestly have little idea what those do. They signify the start and stop of functions I presume?
  Profil: demisovereign   Envoyer un Message à: demisovereign

Nouveau Sujet    Poster une Réponse

Que signifie cet icone?
Où puis-je apprendre à utiliser les forums?

Jump To:

Recherche dans les forums | FAQ des forums | Archives Forum

 

 

BioWare Store
Neverwinter Nights 2 Forums
Cacher/Afficher

English
Deutsch
Français
Español
Italiano

Cacher/Afficher

Voir les dernières captures d'écran 

Voir les dernières captures d'écran
Cacher/Afficher

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



Il est actuellement: (régler heure)
dim, 22 novembre 2009 09:13

Cacher/Afficher

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

Cacher/Afficher

5,052,494 utilisateurs sur le site de BioWare:
  33 connectés
  6 invisibles
  149 invités

711 Playing Online
  100% NWN
  101% NWN: SoU
  101% NWN: HotU

444 Registered Guilds

8,768,815 messages dans les forums

Sujets les plus récents dans les forums:
1. Transfering Shepard's appearance (Mass Effect 2 General Discussion (No Spoilers Allowed))

2. Jade Empire's History (Jade Empire Xbox General Discussion (Spoilers Will Be Moved))

3. can't change language (Web Site Help)

4. which script launches the crafti... (NWN 1: Scripting)

5. Killing Morag (NWN 1: General Discussion (No Spoilers Allowed))