Page 1 of 1

DSA: gigglers steal from backpack. Antmen's touch is mortal.

Posted: Tue Dec 27, 2005 12:18 am
by Zyx
Adamo asked for such a DSA:

1) Create a DSA named "Monster Attack Filter"

State 0
S0 = L20 L0 &PARAM@ L0 &@ GC0 L20 L0 &PARAM!
C0 = L1 &@ ??{(2,2S0)(16,16S0)}

State 2
S0 = L1 L12 &@ &= ?JC0
C0 = L4 L0 L4 &RAND L7 L23 &RAND &+ &DUP L29 &!= ?JT0 &DROP L1 JT0
T0 = L0 L3 L2016 L0 L0 &@ L0 &%MOVE

State 16
S0 = L0 GC0 L1 GC0 L2 GC0 L3 GC0
C0 = &DUP L70 L3 &CHAR@ L0 L72 &! L70 L3 &%CHAR!

2) Put an instance of this DSA in your dungeon

3) In Edit->global info, point the "Monster Attack Filter location" to this DSA

4) Create a DSA named "Indirect Action Filter"

State 0
S0 = &%INDIRECT

5) Put an instance of this DSA in your dungeon

6) In Edit->global info, point the "Indirect Action location" to this DSA