age2000 on 18/12/2001 at 10:56
When setting a key to match a lock what does RegionMask have to do with it? I Read a tutorial on keys and locks it said that RegionMask could be set to anything from 1-999. If I set it to anything but 1 or 0 it sets itself back to 0. I have already made a locked door and key that work fine with RegionMask set to 1 and LockID set to 1. For my second lock I'm guessing that I have to set it's LockID to 2 or anything else but 1. So what is RegionMask? Also what is MasterBit?
[ December 18, 2001: Message edited by: age2000 ]</p>
Komag on 18/12/2001 at 11:18
the numbers must start with 1, such as 11 or 12 or 134, but not 2 or 3 or something
age2000 on 18/12/2001 at 11:24
So... What does RegionMask do? Should I bother setting it to something or just leave it at 0?
Dark Arrow on 18/12/2001 at 15:41
The following material is a part of the official tutorial Locks&Doors.Doc. This file is in the t2docsall.zip that can be found in the-Circle. I advice you (and why not everyone) to download that file, because it contains a lot of information about for example building methods and is very helpful in creating your mission.
The least you need to know (in Thief): If no “Master Bit” is ever set TRUE, then all “Region ID's” should be set to the same (non-zero) value. To make simple, matching categories of keys and locks, give each set of keys a Lock ID equal to the Lock ID of the matching locks.<br />In a mission which includes master keys, or adheres more to the “security codes” model, it is necessary to understand the interpretation of these properties more precisely. A given KeySrc and KeyDst are considered to match according to the following rules, applied in order:<br />1. If their Region ID's have no bits in common, then they do not match.<br />2. If the KeySrc Master Bit is TRUE, they match.<br />3. If the KeySrc and KeyDst are equal, they match.<br />4. They don't match.<br />Example: A mission includes two mansions, the manor of Lord Hatfield and the manor of Lord McCoy. Each mansion has various locks which are opened by different keys. Moreover, there exists a master key to Lord Hatfield's mansion.<br />All locks and keys which pertain to Lord Hatfield's mansion are given a Region ID of 1. Those for Lord McCoy's mansion have a Region ID of 2. The Lock ID's of the keys in each mansion can be assigned independently; neither key can effect a lock in the other mansion because it will fail Rule 1 before it ever gets to try Rule 3. Finally, the master key for Lord Hatfield's manor is given a Master Bit of TRUE and a Region ID of 1. It will pass Rule 1 and then succeed Rule 2, opening any lock in the manor regardless of their Lock ID's.<br />Note that this notion of “Region” does not have to be interpreted geographically. So, if one found it convenient, one could assign a particular Region to all a mission's doors, and a different Region to chests
robert gronemann on 18/12/2001 at 19:08
I reccommend this approach:
Required materials<br />3 ring binder with separaters<br />3 hole punch<br />Printer<br />Ability to use copy/paste function<br />Word98 or something similar<br />Access to ttlg forums
1. Print all t2 docs from the aformentioned loctions.<br />2. Open word processor <br />3. Access the forum.<br />4. Discover or Search for pertinant info<br />5. Copy selections and paste them in Word<br />6. Label folder separaters with topic headings such as AI, Doors, S&R, etc.<br />7. Print Word documents.<br />8. Punch documents. Insert documents (including t2docsall) into folder according to subject.<br />9. Store folder near computer work station or in the bathroom.
Hit Deity on 19/12/2001 at 06:03
Quote:
Originally posted by BWV1080:<br /><strong>8. Punch documents. Insert documents (including t2docsall) into folder according to subject.</strong><hr></blockquote>
Buy 3-hole paper!! <img src="biggrin.gif" border="0">
robert gronemann on 19/12/2001 at 06:06
DOH! <img src="biggrin.gif" border="0">
john9818a on 6/3/2019 at 23:14
Sorry to resurrect this thread, but I have a question about the master bit. What purpose does it serve on locks and doors?
Unna Oertdottir on 7/3/2019 at 09:33
Basic Tutorial
Quote:
MasterBit on a key makes it open all doors than can be opened with a key (with matching RegionID index)
Code:
ObjProp "KeySrc" // type sKeyInfo , flags 0x0011 , editor name: "Engine Features: KeySrc"
{
"MasterBit" : bool
"RegionMask" : bitflags
"LockID" : uint
}
ObjProp "KeyDst" // type sKeyInfo , flags 0x0011 , editor name: "Engine Features: KeyDst"
{
"MasterBit" : bool
"RegionMask" : bitflags
"LockID" : uint
}
john9818a on 7/3/2019 at 09:51
Yes I know about the key's master bit but I was asking about the lock's master bit. :)