youbetterwork Posted April 30, 2016 Posted April 30, 2016 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!
Guest Posted April 30, 2016 Posted April 30, 2016 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.
youbetterwork Posted April 30, 2016 Author Posted April 30, 2016 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?
youbetterwork Posted April 30, 2016 Author Posted April 30, 2016 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.
Guest Posted April 30, 2016 Posted April 30, 2016 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 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.
youbetterwork Posted April 30, 2016 Author Posted April 30, 2016 Awesome. Thanks. That gives me a place to start from.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.