Jump to content

Need advice making a mod to add commands to reanimated minions


rockbiter68

Recommended Posts

Hi everyone,

 

I want to make a simple mod that adds four commands to NPCs you resurrect with conjuration spells: Wait Here, Follow Me, Inventory, and Dismiss (which kills them). I'm not terribly experienced with modding, but from what I know of the engine, it shouldn't be too difficult to implement - or at least, it's possible within the engine.

 

Right now, I need help getting started. I need to make it so when you activate a reanimated NPC, something actually happens (I was thinking a simple pop-up box would be more than enough). I'm not sure how to do this, but I'm guessing that I need to add resurrected NPCs to the list of activators the game recognizes, and then go from there, correct? And then I'll need to do some minor scripting to get the commands to work properly.

 

These are just guesses on my part - if anyone can help me out with this, I would greatly appreciate it.

Link to comment
Share on other sites

Hi, yes you have the right idea. You could use an onActivate() function to each NPC that shows the user a pop-up box and then script that box to do the commands when you click on them. e.g. when the player clicks dismiss, you'd just write something like self.kill() as an example.

Link to comment
Share on other sites

Cleaner would be a spell effect script, which runs a check if the afflicted is under the reanimation spell or not and under the player's command or not, then it shows a message box with the choices you mentioned... This way, you don't have to attach scripts to NPCs. And it will have compatibility with npcs added by other mods.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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