Mobile Ladders
The mobile ladder, in its most basic form, is a ladder which the player can pick up, carry around and put down wherever s/he wishes. The more complicated form of mobile ladder will attach itself to a "bar" and become fixed in place.
Info. in pink provided by Thumper.
Step A - Making the ladder mobile.
Adding mobility to the ladder is accomplished in two small steps. First we must tell DromEd that the ladder is a movable object by altering properties->add->engine features->frob info
And setting them to:
The ladder will now move into the player's inventory, but is set to act as junk. It needs to be changed to item. This is done via properties->add->inventory->type.
And selecting Item from the menu.
Finally we must give the ladder an inventory name. Select properties->add->inventory->object name
And enter the name in the box that comes up.
The ladder is now fully mobile and can be picked up and used by the player.
Step B - Turning the ladder into a "key".
If you want your ladder to be able to attach itself to a "bar", you will need to give it the properties of a key. This will allow the ladder to "unlock" the bar, triggering the traps that will put the ladder in place.
This is done by giving the ladder the "StdKey" script. Go into properties and add->s->scripts
Then enter "StdKey" - without quotations - in the "Script 0" box.
As with all keys, we also have to assign it a key source. add->engine features->KeySrc.
And give a unique LockID
This is all that needs to be done to the ladder to make it ready for attaching to the bar.
Step C - Creating the bar.
The "bar" in question is actually a modified lockbox. I used the shipping label from Thief 2. Thief 1 users should use a standard lockbox.
The first thing we need to do is make the lockbox be unlocked by the ladder. This is done by first locking it (properties->add->locked->true), and then setting the KeyDst (key destination).
Set the fields to match those of your ladder.
So now frobbing the lockbox with the ladder will cause it to be unlocked. In Thief 2 the ladder will also disappear from your inventory due to the additional script (TransformLock) on the shipping label.
Now we need to make the ladder attach itself to the lockbox when we unlock it. This requires a new ladder to be teleported in when the box is frobbed. First create a new ladder - without changing its properties - and make a note of its object number. Now create a teleport trap and link it as follows:
This first link sets up the lockbox to activate the teleport trap using a Control Device link. The "from" field is set to the lockbox and the "to" field is the TeleportTrap
The second link is also a control device. It tells the TeleportTrap (in the "from" field), to move the new ladder (in the "to" field). The ladder will appear where the TeleportTrap is located.
Now we need to add a script to the lockbox so that it will activate the control device link when unlocked. Select properties->add->s->scripts
and enter "TrigUnlock" in the box (Trigger when Unlocked).
The "don't inherit" box is also checked to prevent the lockbox from making locked/unlocking sounds.
When you frob the box with your movable ladder, it should now disappear from your inventory and reappear attached to your box. Take some time to arrange the positions of all the objects to your liking.
Step D - Making the bar look the part.
The illusion created is more effective when the box looks less like a box (or label) and more like a piece of scaffolding. Changing the model to "hamhand" has this effect.
Your box should now look like a hammer handle. Now change the dimensions to the size you require. Do this with both the graphical dimensions - located in the bottom left of the screen:
And the physical dimensions properties->physics->models->dimensions.
With the TransformLock script added you will notice that the "bar" changes back into a label when you unlock it. To avoid this you need to change the model into which it is transformed upon unlocking. Go to properties->add->Tweq->models
And enter "hamhand" into the "Model 0" field.
You should now have a fully functional ladder and bar.
|
| Go to Index/ Tutorials |