Jump to content

[LE] How to change the outfit of an npc without using scripts?


Recommended Posts

I have a doubt that this is stopping my work in a mod currently ...

 

Can you get an NPC to change armor or outfit without using scripts? for example using the AI ​​package system?

 

For example, if I want a dragon to change its skin color at an hour of the day, I simply create 2 outfits with the 2 different textures ... there is some mode (using ai packages or another method, but without using scripts) of "change" the outfit of that NPC and force him to use it?

 

What I want is something similar to the effect that the flame atronach has on dying. the body of atronach changes skin and looks burned ... (Without scripts)

 

Mandatory this has to be done with a Script?

Edited by Krinifes
Link to comment
Share on other sites

You need to use a script, yes, for any kind of dynamic change. Static changes can be edited in the CK per normal.

 

For example, the atronach change *is* done with a script: FlameAtronachEffectScript, on the magic effect AbFXAtronachFlame:

 

 

    EVENT onDying(actor myKiller)
        atronachHealth = selfRef.GetAV("Health") as int
        if atronachHealth > 0
;             debug.trace("flame health  > 0")
            AtronachFlameTrail.Stop(selfRef)
            AtronachUnsummonDeathFXS.Play(selfRef)
        elseIf atronachHealth <= 0
            wait(3.0)
;             debug.trace("flame health  <= 0")
            AtronachFlameDeathFXS.Play(selfRef)
            wait(0.5)
            selfRef.placeAtMe(AtronachFlameDeathExplosion)
            wait(0.1)
            AtronachFlameTrail.Stop(selfRef)
            selfRef.EquipItem(AtronachFlameDeadSkin)
            wait(1)
            AtronachFlameDeathFXS.Stop(selfRef)
        endif
    ENDEVENT
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...