Changing the name of interior cell

Post » Thu Mar 03, 2011 10:26 pm

Hey all

I'm working on a quest where a house gets new owners.

Is it possible to have the name of the interior cell change name once the new owners move in.

For example:

Quest Stage 10 - Cell name = 'X's House'
Quest Stage 20 - Owner X is killed & Cell name changed to 'House for Sale'
Quest Stage 30 - NCP Y buys the house & Cell name changed to 'Y's House'

The only way I can think of doing it is disabling the door at stages 20 and 30 and replacing it with a new door leading to a duplicate cell with the appropriate name. This could cause the mod to be bigger than necessary, creating a minimum of 3 cells for each house sold.

Is it possible through scripting, and is it worth the work?
User avatar
Je suis
 
Posts: 3350
Joined: Sat Mar 17, 2007 7:44 pm

Post » Thu Mar 03, 2011 5:46 pm

Yes and yes. The script function you're looking for is http://cs.elderscrolls.com/constwiki/index.php/SetCellFullName.
User avatar
Emma Pennington
 
Posts: 3346
Joined: Tue Oct 17, 2006 8:41 am

Post » Fri Mar 04, 2011 3:47 am

Yes and yes. The script function you're looking for is http://cs.elderscrolls.com/constwiki/index.php/SetCellFullName.


Sweet..that was easy!

I take it SetCellFullName CellID "New Name" is placed in the result script box rather than in a quest script.
User avatar
lisa nuttall
 
Posts: 3277
Joined: Tue Jun 20, 2006 1:33 pm

Post » Fri Mar 04, 2011 5:04 am

I take it SetCellFullName CellID "New Name" is placed in the result script box rather than in a quest script.

It can go in either, but in general, anything that can go in a result script (which only has to be processed once) should go there. Quest scripts run all the time, so the less they contain, the better.
User avatar
Becky Palmer
 
Posts: 3387
Joined: Wed Oct 04, 2006 4:43 am

Post » Thu Mar 03, 2011 11:07 pm

Cheers...Will give it a run tonight
User avatar
Sarah MacLeod
 
Posts: 3422
Joined: Tue Nov 07, 2006 1:39 am


Return to IV - Oblivion