Jump to content

(Request) CK Tutorial for Cloning NPCs


Recommended Posts

Posted

I want to create two spells.

 

1. Make a ghost NPC of a dead person that looks like the dead person.

2. Makes a living copy of a dead person.

 

Can somebody point me towards a tutorial somewhere online, or nudge me in the right direction?

 

thanks!

 

 

Posted

Hi!

 

I don't think you will find a tutorial for exactly what you wanna do.

You can try to do it by little steps, and ask help on this site when you are stuck.

 

1) Creating a spell. That is easy. Just google and you will find a bunch of examples. You just need to do a small script for it, and condition it to work only on dead NPCs.

2) Create a set of NPCs (at least one per race) that will be the "ghost" (but here I am not sure about what you wanna do. And "ghost" is not easy to do.)

3) Use a couple of lines of script to fully copy the NPC (PlaceAtMe) and then addPackageOverride to replace the AI packages.

 

 

Posted

Thanks for replying!

 

1 - I can make effects with conditions, and I even understand basic scripting, but I don't know how to add a script to an effect. 

2 - If I created my own NPCS, how would they look like the dead person?

Posted

Thanks for replying!

 

1 - I can make effects with conditions, and I even understand basic scripting, but I don't know how to add a script to an effect. 

2 - If I created my own NPCS, how would they look like the dead person?

 

1. In the Magic Effect edit window on the bottom right, you can add scripts.

With the events OnEffectStart(Actor a, Actor B) and OnEffectFinish()

 

2. That is complex. Better if you "duplicate" the dead actor with PlayerRef.PlaceAtMe() and then revive the copy.

Oh!

 

If you make a new effect, the script "add" button does not appear, but if you edit an existing (or duplicated) effect you can see the add button. :(

 

That is because you can add to a spell only magic effects that have the same definition.

Be sure of the type of magic effect, and do the same definition to the spell, and then you will be able to add one.

Archived

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

  • Recently Browsing   0 members

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