Godric Volturi Posted August 17, 2009 Share Posted August 17, 2009 Okay, so I am trying to make a compiled script for a recruitable character... (remember the jedi on the Endar Spire... yeah, her. only I changed her to a Twi'lek) So anyway, here's the script I used from Darth333's tutorial: void main() { RemoveAvailableNPC(7); AddAvailableNPCbyTemplate(7, "p_cleopatra)"); DelayCommand(1.5,ShowPartySelectionGUI()); } and here's what pops up on my screen... Lookup path root set to: C:\Program Files\LucasArts\Star Wars Knights of the Old Republic\ Loaded nwscript.nss from C:\Program Files\LucasArts\Star Wars Knights of the Old Republic\override/ Compiling: cleo_recruit.nss cleo_recruit.nss(4): Error: Undeclared identifier "AddAvailableNPCbyTemplate" Compilation aborted with errors Total Execution time= 31 ms any help would be super appreciated... plus if you can help, I'll try to return the favor one day. Link to comment Share on other sites More sharing options...
Exile007 Posted August 17, 2009 Share Posted August 17, 2009 Try this: void main() { RemoveAvailableNPC(7); AddAvailableNPCbyTemplate(7, "p_cleopatra"); DelayCommand(1.5,ShowPartySelectionGUI()); } You had an extra parentheses in "pl_cleopatra". Link to comment Share on other sites More sharing options...
Godric Volturi Posted August 17, 2009 Author Share Posted August 17, 2009 *slaps his own face* Dayum... I'm an idiot sometimes. : :edit: I'm still getting the same response. -.- Link to comment Share on other sites More sharing options...
Canderis Posted August 18, 2009 Share Posted August 18, 2009 Try opening up the source script in a recruitment mod. Just change that to fit you. Link to comment Share on other sites More sharing options...
Godric Volturi Posted August 18, 2009 Author Share Posted August 18, 2009 I tried that but it didn't work. >.> The thing is... I can compile the script that I used when it's the same, but when I alter it to fit my Template ResRef, it always says that there is an error. O_o Link to comment Share on other sites More sharing options...
Canderis Posted August 18, 2009 Share Posted August 18, 2009 Try shortening it. Link to comment Share on other sites More sharing options...
Godric Volturi Posted August 18, 2009 Author Share Posted August 18, 2009 I did and still nothing. O-O I think the scripts just hate me. :'( Link to comment Share on other sites More sharing options...
Canderis Posted August 18, 2009 Share Posted August 18, 2009 Odd. Link to comment Share on other sites More sharing options...
Godric Volturi Posted August 18, 2009 Author Share Posted August 18, 2009 Could it have anything to do with the fact that I used the Kotor Tool GFF editor? Link to comment Share on other sites More sharing options...
Star Admiral Posted August 18, 2009 Share Posted August 18, 2009 Actually, no. You need to capitalize the "B" in AddAvailableNPCByTemplate(), like this: void main() { RemoveAvailableNPC(7); AddAvailableNPCByTemplate(7, "p_cleopatra"); DelayCommand(1.5,ShowPartySelectionGUI()); } - Star Admiral Link to comment Share on other sites More sharing options...
Godric Volturi Posted August 18, 2009 Author Share Posted August 18, 2009 Yeah, I have it capitalized and I still can't. Link to comment Share on other sites More sharing options...
Exile007 Posted August 18, 2009 Share Posted August 18, 2009 That is extremely odd. I just compiled it with KotOR Tool and it came out fine. If you'd PM me your e-mail, I'd be more than happy to send you the compiled script + source. Link to comment Share on other sites More sharing options...
Godric Volturi Posted August 18, 2009 Author Share Posted August 18, 2009 Like I said, I think that scripts just hate me... everytime I try to write one... no matter if I'm on my laptop, my home computer, my friend's computer or on any computer, scripts just don't want to compile for me. Stupid scripts. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.