demisovereign
Game Owner
NWN 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
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. |
|
Builder_Anthony
Game Owner
NWN NWN: SoU NWN: HotU NWN 2
Lié: 18 jui 2006 |
Posté: samedi, 07 novembre 2009 03:01 |
Maybe this
View Post/Code in separate window
Edited By Builder_Anthony on 11/07/09 03:02 |
|
demisovereign
Game Owner
NWN 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? |
|
DM-Taino
Game Owner
NWN NWN: SoU NWN: HotU NWN 2
Lié: 03 nov 2005 |
Posté: samedi, 07 novembre 2009 03:23 |
Try this:
View Post/Code in separate window
DMT |
|
demisovereign
Game Owner
NWN 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? |
|
DM-Taino
Game Owner
NWN 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 |
|
demisovereign
Game Owner
NWN 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? |
|
DM-Taino
Game Owner
NWN 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
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 |
|
demisovereign
Game Owner
NWN 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 |
|
demisovereign
Game Owner
NWN 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.
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 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 |
|
DM-Taino
Game Owner
NWN 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 |
|
demisovereign
Game Owner
NWN 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? |
|