Jump to content

Home

[k1] what is a script so a npc.....


Canderis

Recommended Posts

Posted

There are pre-made scripts to conditionally check if a party member is currently with you. Someone with current access to KotOR Tool can tell you what they are named.

Posted

ok ill try it (at this point ill try anything)

do i need to make a script file or just put the code in???

 

 

IT DIDNT WORK =( anyone else know what one it is?

Posted
o ok i didnt see the error

 

...Yeah, it's quite exact about the filename. So even an extra space will cause it to not work correctly (and believe me, finding a space is a hassle) :)

 

_EW_

Posted
On a side note, "Firends" is spelt: Friends :)

 

Spelt? :xp:

 

In that case, you've also misspelled 'since,' 'ultimate,' 'that's,' 'retrieve,' and 'helmet,' and you didn't capitalize 'Mandalore,' 'Mandalorians,' 'Do,' 'Really,' 'I,' and 'Well.'

 

Make sure you have someone else go through your dialog before you release it to spellcheck it. FWIW, I think that correct dialog is one of the most important parts of a mod.

 

_EW_

Posted
Woz on perps :xp:

 

Yeah, I thought you did :D

 

its still not working right is it because most of the dialog is said by canderous and jax to each other?

 

I think it's because you have it structured so that the dialog is all said by Jax. It seems that you have it set up so that it's a one sided-convo.

 

Can you tell us how the problem is presenting itself? Is the problem that only Jax is talking?

 

_EW_

Posted

Personally in these situations I like to debug things.

k_con_canderpm

[size=1]//:: k_con_canderpm
/*
   checks to see if canderous is a party member
*/
//:: Created By:
//:: Copyright (c) 2002 Bioware Corp.
//:: modified by Aidan, Sept 28,02
//:: updated with the new party functions
#include "k_inc_debug"

int StartingConditional()
{
 return ((IsNPCPartyMember(NPC_CANDEROUS) == TRUE) && (GetDistanceBetween(GetPCSpeaker(), GetObjectByTag("cand")) <= 10.0));
}[/size]

 

If we look at what the script actually checks for then we can make sure the conditions are exact. Basically it gets if Canderous is a party member and is within 10 meters of the "GetPCSpeaker()" which I am assuming is the player character.

 

Bit of a silly question but, is Canderous in your party and within 10 meters when you talk? And since I am assuming the answer is yes I think you should recompile the script with this line attached to the start of the script:

SendMessageToPC(GetFirstPC(), "DEBUG: k_con_canderpm executed")

 

Then run your dialog again and check your FeedBack log for the line starting with "DEBUG". If its not there then the script didn't execute.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...