Ferc Kast Posted November 18, 2007 Share Posted November 18, 2007 I've tried compiling the following script, but it won't compile. So, what am I doing incorrectly? Also, could you point me to a script that would allow me to change an appearance in K1? Thanks in advance. void ChangeObjectAppearance( object GetFirstPC(), int 69 ); Link to comment Share on other sites More sharing options...
Marius Fett Posted November 18, 2007 Share Posted November 18, 2007 Im no scripting expert but I think it should be void main() { ChangeObjectAppearance( object GetFirstPC(), int 69 ); } Link to comment Share on other sites More sharing options...
Ferc Kast Posted November 18, 2007 Author Share Posted November 18, 2007 I just tried that script; TSLPatcher told me the following when it tried to compile it: • Error: Unable to find compiled version of file "jcz_gizka.nss"! The compilation probably failed! Skipping... Link to comment Share on other sites More sharing options...
Miles Edgeworth Posted November 18, 2007 Share Posted November 18, 2007 void main() { ChangeObjectAppearance(GetObjectByTag("mynpc"), 69); } That should work. EDIT: Noticed it was for the PC, stoffe's script below is what you need. Link to comment Share on other sites More sharing options...
stoffe Posted November 18, 2007 Share Posted November 18, 2007 I've tried compiling the following script, but it won't compile. So, what am I doing incorrectly? Also, could you point me to a script that would allow me to change an appearance in K1? Thanks in advance. void ChangeObjectAppearance( object GetFirstPC(), int 69 ); The problem is that you don't have any starter function (main()) and that you are including data type definitions in a function call, which you shouldn't do. So... void main() { ChangeObjectAppearance(GetFirstPC(), 69); } ...should work. KOTOR1 does not have any appearance changing scripting functions, so you can't permanently change someone's appearance via scripts. The best you can do is a temporary change using disguises. Link to comment Share on other sites More sharing options...
Ferc Kast Posted November 19, 2007 Author Share Posted November 19, 2007 KOTOR1 does not have any appearance changing scripting functions, so you can't permanently change someone's appearance via scripts. The best you can do is a temporary change using disguises. So, I would then use the following script for a K1 version? void main() { GetFirstPC() = GetSpellTargetObject(); effect EffectDisguise(int DISGUISE_TYPE_C_GIZKA); } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.