Barred door scripting question. (with video)

Post » Sun Nov 18, 2012 4:10 am

So I watched some of the vids today on forum inc Hellcat5's detailed lighting tut, an I dont know if I am aiming too high, or too complicated I dont know... but it doesn't hurt to ask.

http://www.youtube.com/watch?v=LO8-v-j5k1E

cheers lads.

edit, might help if I actually put a question in here for those who dont wanna watch or cant....

I have set it up where when I come into a room, all the lights go out, an the doors on traps start opening up, then when last door opens the lights come back on an your surrounded.. Once you kill the final guy the door at end of room unlocks, an opens. After watching some vids, I find out how to set up light switches, but I checked for any dungeons in game an none seem to do what I am trying. I dont know if I am trying to be too complex or not....
User avatar
Betsy Humpledink
 
Posts: 3443
Joined: Wed Jun 28, 2006 11:56 am

Post » Sat Nov 17, 2012 4:58 pm

If you're asking what I think you are asking, then this will let you script locking/unlocking doors ...

http://www.creationkit.com/Locking_and_Unlocking_Doors
User avatar
Robert DeLarosa
 
Posts: 3415
Joined: Tue Sep 04, 2007 3:43 pm

Post » Sat Nov 17, 2012 9:48 pm

If you're asking what I think you are asking, then this will let you script locking/unlocking doors ...

http://www.creationkit.com/Locking_and_Unlocking_Doors

Not quite what I needed mate sadly, but thnak you for trying. The room in question is filled with npcs who are intent on killing you, not wwarnign you to leave... hehe.

When you enter the room, this is how its meant to go

1. Entry to the area, 1 spotlight shines on a switch on wall, you hit it an the lights come up all around 1 by 1.
2. Looking round, you can see the entire room is ringed with draug coffins (unopened).
3. Walking to center of the room hits a defaultrigger (blue box), door at end of room slams shut an locks, Lights go out an the coffins start opening 1 by 1 every second.
When last coffin opens the lights come back on an your surrounded by Draug, but the doors are still locked (until you kill the final one.)

Now I could just add a key to the npc to unlock the door, but that wouldn't fix the initial locking an lights issue.I think I may be trying to be too complex maybe specially since I cant script to save myself. an the hundreds of posts I have read have jsut left me more confused than when I started lol. Looking for tutorials on how to do such things has burned me out too :)... it's much easier to learn when you can see it being done than reading a page written by programmers.
User avatar
Antony Holdsworth
 
Posts: 3387
Joined: Tue May 29, 2007 4:50 am

Post » Sun Nov 18, 2012 12:48 am

Well that is what half of LOCK/unlock would do.

1. When the PC hits the "blue box" add a LOCK DOOR script to "trigger event"

2. Lights - You would have to enable and disable torches (or whatever type of lights you are using) using scripts attached to the trigger (pretty easy script) ... Just use utility.wait(5) or whatever to get them to turn on 1 by 1

3. A bit more difficult ... There's a way to do exactly what you want ... but it is easier to amend your idea slightly. Have 6 (or however many) Baby-Draug appear ... when they are dead have a final BOSS Draug appear ... on it put an OnDeath Event that UNLOCKS the door we locked back in No1


Yeah, you need to learn to script to get it all done ... but with triggers and so forth it ain't too hard.
User avatar
Chris Guerin
 
Posts: 3395
Joined: Thu May 10, 2007 2:44 pm

Post » Sun Nov 18, 2012 3:48 am

oh wow man thanks heaps aye, that has helped me alot to pit in right direction. I have been working on this one room for a week, an it's doing my head in :smile:... I should be able to short cut most of it with scripts that are already in the game (I hope). I am afraid I dont have the ability to get my head around scripting, I have tried an I cant figure it out.... "yet"

But this gives me many ideas on how to get it done, thanks alot mate. I saw a tutorial i think it was on how to make a Boss mob spawn after you kill the initial group... I will have to try an find it somewhere.

edit, I hadent considered how to do it till you said to put scripts on the triggers... because everything is pretty much centered on the default trigger box that kicks it all off, sounds like thats the main one to focus on for all the scripts.
User avatar
Adam Baumgartner
 
Posts: 3344
Joined: Wed May 30, 2007 12:12 pm

Post » Sun Nov 18, 2012 4:42 am

No worries, mate :)

You can find stuff on "barred doors" here: http://www.creationkit.com/Additional_Prefabs
This might also help (trigger multiple monsters from one single trigger): http://www.creationkit.com/Bethesda_Tutorial_Multiple_Ambushes

Have fun ;)
User avatar
Amy Siebenhaar
 
Posts: 3426
Joined: Fri Aug 10, 2007 1:51 am

Post » Sun Nov 18, 2012 3:06 am

yer ta mate, workin on it...I am beginning to think my idea for this first room is beyond my ability to fix lol. But ill get there
User avatar
Loane
 
Posts: 3411
Joined: Wed Apr 04, 2007 6:35 am


Return to V - Skyrim