Script Help Needed

Post » Fri May 27, 2011 6:26 pm

Here's the scenario: The player falls down a shaft and ends up in a large brightly-lit hall. The side walls are each lined with 4 doors. At the far end of the hall are a giant set of double doors. At the end nearest to where the player first entered the room is a small door with a note on it telling the player that they must place ALL their belongings in some chests near the door in order to pass through. A few feet in front of the door sits a table with a single silverware plate on it. From the moment the player lands in the room (not the moment when the player first enters the shaft and starts falling down toward the room), he/she has a certain amount of time to examine the note and place ALL their belongings in one (or all) of the chests provided. I'm not sure if a script can detect the player actrually landing in the room, or if it will only be able to start once the player enters the shaft and begins the fall (both the room and the shaft are all in the same cell). If the latter is the only option, I may just add a little more time for the player to reach the bottom, inspect the note and put ALL belongings in the chest(s).

My script requirements: I need the first script to begin a timer once the player lands in the room (or whichever option is applicable;see above). The player has a limited amount of time to approach the note, read it (it tells the player to place items in chests), and do as it says. If the player does this, a key and a loaf of bread will appear on the table (the bread will appear on the plate). The bread will "shrink" the player to allow them to fit through the door. The player won't actually get smaller in size, but between the bread and the player having to remove all of their items, I can hopefully create the illusion that they have shrunk, since the small door is the only door they can pass through. The key will allow the player to enter the small door (which is otherwise locked unless the key is used). Once the player places the items in the chests, I want to prevent the player from retrieving their items from these chests (in other words, cheating). Maybe there is a way to detect whether the player's inventory is empty before they are allowed through the small door. At this point, the only option for the player would be to enter the small door (all the other doors in the room will be blocked to eliminate them as an option).

If the player does NOT place all their items in the chests within a certain amount of time, then the room will change around them (that is, they will be teleported to a different interior cell). I also need a script that will do this, if not included in the previous one.

This should pretty much explain what I want to accomplish. Anyone out there able to write out this script?
User avatar
Kate Murrell
 
Posts: 3537
Joined: Mon Oct 16, 2006 4:02 am

Return to III - Morrowind