Jump to content

Home

Appearance-changing script


Ferc Kast

Recommended Posts

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

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

Archived

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

×
×
  • Create New...