Server Totals
Deglos - (0)
Le'Or - (0)
Ferrell - (0)
Elysia - (0)
M'Chek - (0)
Mikona - (0)
Wilderness - (0)
Visimontium - (0)
Underdark - (0)
Total players: 0
Gallery

Links Menu

Placeable Door Animations and Locks

Moderators: Nighthawk4, Dungeon Masters

Placeable Door Animations and Locks

PostAuthor: Gorgon » Mon Aug 11, 2008 4:58 am

I'm missing something obvious probably, but I need an existing script for player housing to do something specific. I want to use one of the CEP doors (Custom > Placeables > Civilization Exterior > Doors > Large Wooden Door (any)), have it check for a key, unlock and play the open animation, then close and relock. No transition stuff. I have that covered.

CEP doors have the heartbeat crap with gateblocks, and I'm not touching that, and I also have the walking through it while closed covered. I can get it to unlock and open, but the last 2 steps don't work automatically. Even I can write a script to make it happen, but it is for player housing, so nothing like that.

Is there an existing script in NWN, or has someone made one for Avlis already that will do the trick? If it were a door, it would be easy. It is a placeable though.

*edits to add it is in the custom tab
Last edited by Gorgon on Mon Aug 11, 2008 5:16 am, edited 1 time in total.
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (b. 1942) --


Sprucing up ye olde NWN | Modifying nwn.ini and nwnplayer.ini | ~Rare Items Wanted~ | Stealth Modifiers
User avatar
Gorgon
QA's 2nd|CCC Mobster
QA's 2nd|CCC Mobster
 
Posts: 5867
Images: 38
Joined: Fri Oct 17, 2003 10:14 pm
Location: Vancouver, BC, Canada
Timezone: PDT -7

Re: Placeable Door Animations and Locks

PostAuthor: Moredo » Mon Aug 11, 2008 5:15 am

There is a script for that on the servers, it's called autocloselock, and should be available with the other housing scripts.
User avatar
Moredo
CCC
CCC
 
Posts: 7396
Joined: Mon May 26, 2003 3:47 pm
Location: Norway (GMT +2)
Timezone: +2

Re: Placeable Door Animations and Locks

PostAuthor: Gorgon » Mon Aug 11, 2008 5:22 am

As I said, it is a placeable. It would have to go in the OnUsed slot, but that is needed to do the rest as well. If I could include it, that would work. It ignores OnOpen as far as I know (tried it).
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (b. 1942) --


Sprucing up ye olde NWN | Modifying nwn.ini and nwnplayer.ini | ~Rare Items Wanted~ | Stealth Modifiers
User avatar
Gorgon
QA's 2nd|CCC Mobster
QA's 2nd|CCC Mobster
 
Posts: 5867
Images: 38
Joined: Fri Oct 17, 2003 10:14 pm
Location: Vancouver, BC, Canada
Timezone: PDT -7

Re: Placeable Door Animations and Locks

PostAuthor: Moredo » Mon Aug 11, 2008 5:26 am

Sorry, replying before I've had coffee. I can take a look at it when I get back from work, unless you've figured it out by then. :)
User avatar
Moredo
CCC
CCC
 
Posts: 7396
Joined: Mon May 26, 2003 3:47 pm
Location: Norway (GMT +2)
Timezone: +2

Re: Placeable Door Animations and Locks

PostAuthor: Gorgon » Mon Aug 11, 2008 5:35 am

The default door works great with the heartbeat script (evil). Take that out and that is where I run into problems.
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (b. 1942) --


Sprucing up ye olde NWN | Modifying nwn.ini and nwnplayer.ini | ~Rare Items Wanted~ | Stealth Modifiers
User avatar
Gorgon
QA's 2nd|CCC Mobster
QA's 2nd|CCC Mobster
 
Posts: 5867
Images: 38
Joined: Fri Oct 17, 2003 10:14 pm
Location: Vancouver, BC, Canada
Timezone: PDT -7

Re: Placeable Door Animations and Locks

PostAuthor: Sarmanos » Mon Aug 11, 2008 5:43 am

Unfortunately, in my building experience, those placeable doors aren't good at all for being physical barriers. I've had the scripts on them and still you could walk through them with no problem at times despite the door's open/closed or unlocked/locked status.
Vetinari: I have noted before that you have a definite anti-authoritarian streak, Commander.
Vimes: Sir?
Vetinari: You seem to have retained this even though you are Authority.
Vimes: Sir?
Vetinari: That's practically Zen.
User avatar
Sarmanos
Team Member; Retired with Honors
 
Posts: 2607
Images: 1
Joined: Mon Aug 04, 2003 7:04 am
Location: Massillon, OH
Timezone: GMT -5

Re: Placeable Door Animations and Locks

PostAuthor: Gorgon » Mon Aug 11, 2008 5:47 am

The door is just for looks really. The transition behind it also has a check for the key. This is just me wanting to update something IG and add the animations. If I have to, I can ignore the lock thing on the door itself, but I'm picky about realism.
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (b. 1942) --


Sprucing up ye olde NWN | Modifying nwn.ini and nwnplayer.ini | ~Rare Items Wanted~ | Stealth Modifiers
User avatar
Gorgon
QA's 2nd|CCC Mobster
QA's 2nd|CCC Mobster
 
Posts: 5867
Images: 38
Joined: Fri Oct 17, 2003 10:14 pm
Location: Vancouver, BC, Canada
Timezone: PDT -7

Re: Placeable Door Animations and Locks

PostAuthor: Gorgon » Tue Aug 12, 2008 12:10 am

No luck without having to edit a script so far. Someone probably already made one to do this, but I can't check for it. I'm still looking for a way to do this, but for now I solved my problem a different way. I went with a regular door (lots to choose from now), used the autocloselock script in the OnOpen event and the jump_pc_2wp_xtra in the OnAreaTransitionClick event. The return transition is just a regular door one, but getting in needs the key to open the door, and checks again for it to use the transition itself. Fugly, but it works.

Like I said, I still want to find a way to use the placeable doors for this, but without adding the animation commands to a jump script (unless someone already did), I'm stuck on how to do it.
"God not only plays dice, he throws them in the corner where you can't see them."
-- Stephen William Hawking (b. 1942) --


Sprucing up ye olde NWN | Modifying nwn.ini and nwnplayer.ini | ~Rare Items Wanted~ | Stealth Modifiers
User avatar
Gorgon
QA's 2nd|CCC Mobster
QA's 2nd|CCC Mobster
 
Posts: 5867
Images: 38
Joined: Fri Oct 17, 2003 10:14 pm
Location: Vancouver, BC, Canada
Timezone: PDT -7

Re: Placeable Door Animations and Locks

PostAuthor: CPU » Thu Aug 14, 2008 4:54 am

I don't think what you want is available. Any of the CEP door placeables are going to work incorrectly with to the heartbeat script removal. The first time anyone goes to that placeable door, it will be physically transparent to the character allowing them to walk through it. Once opened, it will behave normally and naturally as it should.

There is a single door placeable (hidden door) used on the Privateers Enterprises ship. It has a modified script. It allows the hidden door placeable to accept a key and to only unlock with the required key. It then plays the appropriate open/close animations and locks afterwards. It's not a double door though, and will only work with the hidden door placeable. If you can modify what you're doing to a single door, let me know I'll hook you up with the proper script.
Avlis Housing Director
PM: Avlis Player Housing
Player Housing Information - This answers most questions people have. Please read this before asking.
User avatar
CPU
Team Member; Retired with Honors
 
Posts: 5163
Joined: Sat Apr 05, 2003 4:27 pm
Location: NY. USA (-4GMT)


Return to NWN Scripting

Who is online

Registered users: Bing [Bot], Google [Bot], Gorgon