TheFighter21 Posted May 3, 2004 Share Posted May 3, 2004 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 More sharing options...
messkell Posted May 3, 2004 Share Posted May 3, 2004 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 More sharing options...
TheFighter21 Posted May 3, 2004 Author Share Posted May 3, 2004 // 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 More sharing options...
tk102 Posted May 3, 2004 Share Posted May 3, 2004 Try it without the capital N in your void main() statement. void main() { AddCharToParty("n_darkjedif",6); } Link to comment Share on other sites More sharing options...
TheFighter21 Posted May 3, 2004 Author Share Posted May 3, 2004 It still didn't work!! :( Why me? Link to comment Share on other sites More sharing options...
tk102 Posted May 3, 2004 Share Posted May 3, 2004 Let's work on it via PMs, and then we'll post the resolution back here on this thread. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.