Full Version : SimpleCombinationLock
xmlspawner >>XMLSpawner - How do I? >>SimpleCombinationLock


<< Prev | Next >>

Daggoth- 02-08-2010
Hi all I'm banging my head against the wall here.
QUOTE
The Combination lock

SimpleCombinationLock simulates a multi-digit (max 8) combination lock. The state of each of the digits can be set using (for example) the lever or switch items. The combination is set in the Combination property. So the combination of 378, would correspond to digits 2,1,0 taking on values of 3,7, and 8 respectively.
The Match property can be tested to determine when the target combination is matched by the combination of digits.

Note that digit number corresponds to significance, from least to most.

Each digit is a property (Digit0, Digit1, Digit2, ... Digit7) and can take on the values 0-9. You can set the property string to indicate either a property name on the target item (e.g. switchstate, or leverstate, or totalgold), or you can specify a test such as totalgold<100, or open=false, or locked=true.
You could use this item to look for certain combinations of switches or levers, door states, etc. or even combinations of levers, and weight of a container, or number of kills on a spawn etc., and then open a door, or add items to a container, or change the color of a stone, trigger a spawn, etc.


OK I understand this and have a 4 lever combination lock working. The Matched props is also coming up true I did manage to get the combo part working.

What I Do not understand is how will the combo lock effect another item like a door or a spawner. I tried linking the TargetItem and TargetProps to do /DoRespawn/True/ and I get no change.

Doing that on a lever works fine...so I'm at a loss.

The above info posted about it does not really explain how it links to other items.

Anyone have any ideas?

Much Appreciated!

Dag

Joraell- 03-15-2010
it must be : SET/dorespawn/true
or SET/locked/true

Greentree- 03-28-2010
This sounds great, could you post the whole thing?