Making burglary more exciting

Post » Fri May 27, 2011 6:47 pm

So, I am currently using a mod that locks houses at night to simulate NPCs sleeping. This is cool and all, but stealing stuff at night isn't exciting or realistic enough to be worth it, even with this mod.

What I was thinking was, of making a modification to this already existing mod, so NPCs inside their houses turn hostile at night, so if they spot you when you break into their house, they'll attack you on sight, making stealth actually important.

Is there a way to do this? Changing NPCs hostility during a certain time of the day?
User avatar
lucy chadwick
 
Posts: 3412
Joined: Mon Jul 10, 2006 2:43 am

Post » Fri May 27, 2011 7:08 pm

So, I am currently using a mod that locks houses at night to simulate NPCs sleeping. This is cool and all, but stealing stuff at night isn't exciting or realistic enough to be worth it, even with this mod.

What I was thinking was, of making a modification to this already existing mod, so NPCs inside their houses turn hostile at night, so if they spot you when you break into their house, they'll attack you on sight, making stealth actually important.

Is there a way to do this? Changing NPCs hostility during a certain time of the day?



I made something similiar for Oblivion: http://tesnexus.com/downloads/file.php?id=30496

But in Oblivion, interior cells can be set to "Off limits" or to be "Public". And if they were nether, they were merely private.

I can't see or remember anything in Morrowind like this, so you would have to script in the chance for the NPC to "wake" and bust you and then become hostile.
User avatar
sexy zara
 
Posts: 3268
Joined: Wed Nov 01, 2006 7:53 am

Post » Fri May 27, 2011 7:19 pm

I'm not sure how the scripting works, but would there be a way to set the NPCs to behave like bandits in caves (hostile by default) or something like that during the night?
User avatar
Jinx Sykes
 
Posts: 3501
Joined: Sat Jan 20, 2007 11:12 pm

Post » Sat May 28, 2011 1:04 am

I'm not sure how the scripting works, but would there be a way to set the NPCs to behave like bandits in caves (hostile by default) or something like that during the night?

You use a script to alter their fight setting (100 for bandits, 30 for "normal" NPC's) at certain times of day. Track down a copy of Morrowind Scripting for Dummies and read it front to back.

You can also do plenty more, like having them run to a door, teleport out, then teleport in a guard (after a delay maybe) as if they raised an alarm, and even add to the bounty. It all has to be scripted however. Individually. For each NPC and/or house.

Not everyone would stay and fight.
User avatar
Maeva
 
Posts: 3349
Joined: Mon Mar 26, 2007 11:27 pm

Post » Sat May 28, 2011 9:47 am

Alright, thanks. For now I'll settle with them being hostile during the night. if I get the hang of it I may add some extra effects.
User avatar
James Shaw
 
Posts: 3399
Joined: Sun Jul 08, 2007 11:23 pm

Post » Sat May 28, 2011 10:32 am

Okay, so this is the base script used on doors so they get locked automatically at night:

Spoiler
Begin _DoorLock25	short Done	if( GameHour >= 21)		if( Done == 0)			Lock 25			set Done to 1		endif	endif	if( GameHour < 8)		if( Done == 0)			Lock 25			set Done to 1		endif	endif	if( GameHour >= 8)		if( GameHour < 21 )			if( Done == 1)				Unlock				set Done to 0			endif		endif	endifend


I modified it so it looks like this:

Spoiler
Begin _NPCnight	short Done	if( GameHour >= 22)		if( Done == 0)			setfight 100			set Done to 1		endif	endif	if( GameHour < 8)		if( Done == 0)			setfight 100			set Done to 1		endif	endif	if( GameHour >= 8)		if( GameHour < 22 )			if( Done == 1)				setfight 30				set Done to 0			endif		endif	endifend


Do you think that could work?
I changed the starting time of the script from 21 to 22 so NPCs don't go crazy if I happen to be inside their houses right when the time changes from 20 to 21.
User avatar
Sista Sila
 
Posts: 3381
Joined: Fri Mar 30, 2007 12:25 pm

Post » Sat May 28, 2011 12:41 am

Okay... so that works for people who are alone at home, but now I'm having a bit of a problem because there are some merchants with guards inside their houses, and it just looks plain silly when they attack me right off the bat when there's a guard that could do that for them. I've tried replacing Setattack for Setalarm, but they didn't react when I broke into their houses. I can't use Setattack on the guards either because it's not very logical and besides, the guards are generic so if I set that script on one of them, all of them will have it, even the ones roaming the streets.

What can I do?
User avatar
Jodie Bardgett
 
Posts: 3491
Joined: Sat Jul 29, 2006 9:38 pm

Post » Sat May 28, 2011 2:40 am

You could try making a clone of the guards in the CS (give it an ID of...I dunno, "guard2" or something), attach the script to them and replace the generic ones in shops.
User avatar
ShOrty
 
Posts: 3392
Joined: Sun Jul 02, 2006 8:15 pm

Post » Fri May 27, 2011 9:11 pm

I can't use Setattack on the guards either because it's not very logical and besides, the guards are generic so if I set that script on one of them, all of them will have it, even the ones roaming the streets.What can I do?
You could try putting
if ( GetInterior == 0 )    returnendif
on top of your guard script, this way only guards in interiors would be affected
User avatar
Tikarma Vodicka-McPherson
 
Posts: 3426
Joined: Fri Feb 02, 2007 9:15 am

Post » Sat May 28, 2011 6:39 am

Right, but if I do that, everytime I enter, say, a tavern (those are open at night), the guards would attack me as well.

What I need is basically a script that puts a bounty on the PC's head when the civilian spots him. If that can be accomplished, the guards will fine him inmediatly.
That'd be great, that way I wouldn't have to mess with the guards at all.

Is there a way to do it?
User avatar
Alexander Lee
 
Posts: 3481
Joined: Sun Nov 04, 2007 9:30 pm

Post » Fri May 27, 2011 7:07 pm

Right, but if I do that, everytime I enter, say, a tavern (those are open at night), the guards would attack me as well.

What I need is basically a script that puts a bounty on the PC's head when the civilian spots him. If that can be accomplished, the guards will fine him inmediatly.
That'd be great, that way I wouldn't have to mess with the guards at all.

Is there a way to do it?


It might be a little tedious, but you could go into dialogue then voice>intruder and insert a startcombat Player line in the results box. I think you'd have to add it to all of them, but if you just paste it in it wouldn't take too long.
User avatar
Ally Chimienti
 
Posts: 3409
Joined: Fri Jan 19, 2007 6:53 am

Post » Sat May 28, 2011 1:39 am

It might be a little tedious, but you could go into dialogue then voice>intruder and insert a startcombat Player line in the results box. I think you'd have to add it to all of them, but if you just paste it in it wouldn't take too long.


Interesting, didn't know it worked like that.

Can you RELz it when your done Tiberius? I would really love something like this! :laugh:
User avatar
Dan Endacott
 
Posts: 3419
Joined: Fri Jul 06, 2007 9:12 am

Post » Sat May 28, 2011 6:58 am

It might be a little tedious, but you could go into dialogue then voice>intruder and insert a startcombat Player line in the results box. I think you'd have to add it to all of them, but if you just paste it in it wouldn't take too long.

Right, but when I break into their houses they don't see me as an intruder, so that line probably wouldn't make a difference.

Interesting, didn't know it worked like that.

Can you RELz it when your done Tiberius? I would really love something like this! :laugh:

Well, right now I'm adding all these scripts to an already existing mod (night time door locks), so first I'm gonna have to ask the person who made this permission. Either that or maybe I should start a new .esp overall...
User avatar
Marquis T
 
Posts: 3425
Joined: Fri Aug 31, 2007 4:39 pm

Post » Sat May 28, 2011 12:10 am

Right, but when I break into their houses they don't see me as an intruder, so that line probably wouldn't make a difference.


Well, right now I'm adding all these scripts to an already existing mod (night time door locks), so first I'm gonna have to ask the person who made this permission. Either that or maybe I should start a new .esp overall...


I guess I'd be wondering why they don't see you as an intruder... unless it's because the door doesn't have ownership set?
User avatar
sexy zara
 
Posts: 3268
Joined: Wed Nov 01, 2006 7:53 am

Post » Fri May 27, 2011 7:16 pm

I guess I'd be wondering why they don't see you as an intruder... unless it's because the door doesn't have ownership set?


Oh, probably because the NPCs I'm having trouble with are shop owners, and since in vanilla they are open 24/7 they don't see me as one.
User avatar
Roanne Bardsley
 
Posts: 3414
Joined: Wed Nov 08, 2006 9:57 am

Post » Fri May 27, 2011 10:01 pm

I'm not giving up on this. Any ideas on how to make merchants see the PC as an intruder during the night?
User avatar
Ally Chimienti
 
Posts: 3409
Joined: Fri Jan 19, 2007 6:53 am

Post » Sat May 28, 2011 5:50 am

I'm not giving up on this. Any ideas on how to make merchants see the PC as an intruder during the night?


I've played for years with a mod called "Living Cities of Vardenfell" (I think done by Wrye) and so Im used to being recognized as an intruder when I pick their locks and break in store or not. That's why I presumed you'd be taken as an intruder, I suppose. The mod makes a few other changes that you may or may not desire, but it is more interesting than vanilla.

EDIT:
I just remembered, that "living Cities" has a companion mod that locks doors, and I really am not sure which one of the two would set the intruder flag. I think they are LCV and LOC...I know LCV is available http://wryemusings.com/#WryeMods.
User avatar
james kite
 
Posts: 3460
Joined: Sun Jul 22, 2007 8:52 am


Return to III - Morrowind