Jump to content

Home

Can't execute scripts


Recommended Posts

Hello,

 

I try to get my scripts to execute but they won't. :( I do put it in the dialog file to execute the script, but it does nothing. Do I need a patch, is something wrong? I have the .ncs file in my Override folder. So please help.

 

Thanks :)

Link to comment
Share on other sites

Since you were able to compile the script(ncs), it is more than likely that the problem is in the actual script coding you wrote. What is the script supposed to do? If it is a small script, you can post the source code.

Link to comment
Share on other sites

// Adds a darkjedi to the party.
object PlaceNPC(string sTag)
{
if(!GetIsObjectValid(GetObjectByTag(sTag)))
{
return CreateObject(OBJECT_TYPE_CREATURE,sTag,GetLocation

(GetObjectByTag("POST_" + sTag)));
}
else
{
return OBJECT_INVALID;
}
}

void AddCharToParty(string CharName, int Slot)
{
object oChar;

oChar = PlaceNPC(CharName);
AddAvailableNPCByObject(Slot, oChar); 
AddPartyMember(Slot, oChar);
}
void main()
{
AddCharToParty("N_darkjedif",6); 
}

I was trying the thing that lets you change your Party Members into different NPCs but it didn't work. :(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...