create recurring enemy within same interior

Post » Sat Mar 29, 2014 8:26 pm

Hi there,

So I'm wondering how I could go about creating an enemy that visits the player's house on a regular interval.

Scenario:

I have a small mod in the works where you find a cave beneith Breezehome. In the cave, you encounter an enemy (the skeleton of the previous owner of the house), that you have to kill. When you get back up into the house, I ask the player whether the entrance to the cve should be sealed or kept open. In the latter case, the empty cave can be used as storage area, but I want the skeleton to return every few days or weeks.

Any ideas on how this could be done ?

Thank you in advance,

Maylle

User avatar
April
 
Posts: 3479
Joined: Tue Jun 20, 2006 1:33 am

Post » Sat Mar 29, 2014 9:56 am

Why not use a respawnable actor like most other enemies? There should be a "respawn" checkbox in the actor data. If the default cell reset time (which I believe is 10 days if it's not marked as cleared) is too long, you could always call the http://www.creationkit.com/Reset_-_Cell function on the cell every few days.

User avatar
jennie xhx
 
Posts: 3429
Joined: Wed Jun 21, 2006 10:28 am

Post » Sat Mar 29, 2014 9:18 am

Thanks for your reply - I should've been more specific in my question, doh! I meant I would like to have the skeleto return _to the player's house_ (Breezehome) every few days/weeks. If I understand correctly, what you suggested was to respawn the enemy within the same cell it was killed. Sorry I wasn't clear on that, my bad.

I stumbled across a tutorial on AI Packages + location schedules for NPCs and now I'm thinking that what I'm looking for may be possible by letting the skeleton travel to the house via AI package on a given schedule. The first of two remaining question would then be whether I could create a condition for this traveling schedule to kick in. Ironically, the condition would be for the same NPC to be dead first, which I don't know if that's possible....I guess if there's no other way I could make a copy of the enemy actor to be killed, and upon its death spawn the other copy which would then have the AI package for "visiting" the player's house...hm. The second issue would be the origin from which the NPC should travel to the house - but I figure I could either let it spawn in the cave beneith the house or I could put it in some hidden room within Breezehome's interior cell, and let it enter the house via an invisible teleport-marker...something like that.

Sorry if that sounded confusing, just thinking out loud here :smile:

User avatar
Tiffany Castillo
 
Posts: 3429
Joined: Mon Oct 22, 2007 7:09 am


Return to V - Skyrim