DarthRevan101

Script for changing NPC appearance? (K1)

Recommended Posts

Really sorry that no one has replied to you yet. :(

When you say "NPC" and "change appearance", do you mean a random NPC or a party member? Whole body or just the head?

 

There's functions to do both, but each requires specific info to get the ball rolling.

Share this post


Link to post
Share on other sites

Really sorry that no one has replied to you yet. :(

 

When you say "NPC" and "change appearance", do you mean a random NPC or a party member? Whole body or just the head?

 

There's functions to do both, but each requires specific info to get the ball rolling.

A party member, and the whole body. Thanks. :)

Share this post


Link to post
Share on other sites

Well a full-body change is possible by scripting, but it'd be an effect which is removed when ClearAllEffects is used...

 

If you just wanted to change the party member's appearance permanently and from the beginning, I'd just change the Appearance in the .utc file.

 

If you wanted to change the appearance in-game, I'd recommend making a new item and doing the following:

 

1. Open any random .uti file you want. I'm starting with something in the ballpark and picking "g_i_crhide001.uti".

2. Change anything you want, but make sure the baseitem type is set to "Creature_Hide_Item". Also, give it a new tag and templateresref.

3. In the Properties tab, delete everything.

4. Add a new property and make it a disguise. Then point it to the line from appearance.2da that you want to use.

5. Save the file with the same name (and all lower-case) as the templateresref.

 

Then at some point in your game, you can do this:

void main()
{
    // In the following line, the < > are for emphasis and should not be there.
    object oItem = CreateItemOnObject("<templateresref of your item>", GetFirstPC());
    AssignCommand(GetFirstPC(), ActionEquipItem( oItem, INVENTORY_SLOT_CARMOUR, TRUE ));
}

This will force a disguise/appearance change and will not be accessible by the player.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.