maps/test/anthony/raffles_cascade

1198 lines
13 KiB
Plaintext

arch map
name raffle
msg
Creator: Anthony Thyssen
Email: anthony@cit.gu.edu.au
Date: Tue Dec 22 21:07:40 1998
endmsg
x 18
y 18
value 5
weight 3600
stand_still 1
end
arch dwall_2_2_2
y 1
end
arch dwall_2_1_1
y 2
end
arch cwall_1_2
y 3
end
arch dwall_2_2_2
x 1
end
arch dwall_3_4
x 1
y 1
end
arch swall_2_2_1
x 1
y 2
end
arch sign
name Raffles Random Prize Selector
msg
This map was pulled out of the pup_land
raffles map, and all non-escential
`fluff' removed to allow easier study
of the gadget. In other words it was
stolen for study purposes! :-)
--
I do hope the author treats this as a
complement as that is how I feel.
This is what I call a ``boulder cascade''
which rolls a boulder in sequence until
it falls onto a random prize button.
The prizes above are in order of how
commonly they would be picked by this
generator (supposally).
That is the first prise should be
given out approximatally 50% of the
time, while the last two (which have
equal chance) are almost never ever
given out.
endmsg
x 1
y 4
end
arch dwall_2_1_2
x 2
end
arch pit_closed
hp 3
sp 13
x 2
y 1
connected 1
end
arch bolt_silk
name tissue paper
face tissu.111
x 2
y 1
material 1
end
arch swall_2_1_2
x 2
y 2
end
arch sign
name Boulders, and Gates
msg
This `gadget' works because boulders
(and other items) will roll off a
closing gate and randomly into a
non-blocked square.
UNDER each gate (except at the start)
are two buttons, one which will close
the gate the boulder is currently
sitting on and one to keep the previous
gate closed until the boulder has moved
on. (See ``Multiple Buttons'' sign)
When the boulder finally leaves the
gate sequence the large button triggers
the appropriate pit so the prize can be
retrived.
endmsg
x 2
y 5
end
arch sign
name Multiple Buttons
msg
Under each gate in this ``boulder
cascade'', are two buttons.
To keep the boulder moving in the right
direction one button keeps the previous
gate closed (no back tracking by
boulder), and the other closes the gate
the boulder currently sits on.
Small buttons are used as the `trigger
weight' of the button is also the
weight of the button itself!
That is if you stick two plain buttons
(trigger weight 1) on top of each other,
the top button will be off (no weight
on it), but the second one underneath
will be activated by the weight of the
first button (weight 1)!
As such to make this work the buttons
trigger value must be equal to the
trigger weight of ALL the buttons above
it, plus one more. EG: first button: 1,
second: 1+1 -> 2, third: 1+2+1 -> 4.
Actually the sequence is
trigger weight = button depth ** 2
EG: 1, 2, 4, 8, 16, 32, 64,... etc
to however many small buttons you need
on top of each other.
With this formular any object with some
weight can could used, from a light
peice of paper, a gold piece, shield,
or even a player (which has to move or
get continuously crushed :-)
endmsg
x 2
y 6
end
arch sign
name Trapdoors and Teleports
msg
Trapdoors are NOT exact but places
objects within the 3x3 square of
destination, unless blocked. They are
however `connectable'.
Teleports however are `exact' for
delivery, but are not `connectable'
or can be turned off.
So to make a exact deliver of an item
to a table when the appropriate button
is pressed, a trapdoor places itme on
a teleport, with the surrounding
squares blocked. The teleport then
exactly places itme on the table.
endmsg
x 2
y 7
end
arch sign
name Extra Fluff Required
msg
Before this `gadget' and other such
gadgets in this directory can be used
(and this one is used in raffles),
a certain about of extra `fluff' needs
to be added...
* A floor needs to be inserted under
amost all objects, but above the
boulder cascade, small buttons.
* ``No Spells'' must also be added
under everything to prevent the use
of dimension door (any other spells?)
* Due to a a bug (now fixed), pets
were able to walk through walls!
To fix this raffles has an
``furious_floor'', to de-pet pets.
* A ``chaos'' floor was also added
inside the boulder cascade, to kill
such wandering pets.
--
Thanks to : Hisanobu Okuda
<Hisanobu_Okuda@mbj.mercedes-benz.com>
for the explaination on the last two
`fluff' items
endmsg
x 2
y 8
end
arch sign
name WARNING..
msg
Warning, in server 95.1 the item
retrival code does NOT work.
The trapdoor under the items will open,
but nothing will fall through.
Arrrggghhh..
Also a `pet' bug in version 94.x means
extra `fluff' is required. EG:
angry or furious floors, and a chaos
floor inside the cascade.
(See previous sign).
endmsg
x 2
y 9
end
arch swall_2_2_2
x 2
y 12
end
arch swall_2_1_1
x 2
y 13
end
arch swall_2_2_1
x 2
y 14
end
arch dwall_2_1_2
x 3
end
arch pit_closed
hp 3
sp 13
x 3
y 1
connected 2
end
arch potion_improve
x 3
y 1
end
arch swall_2_1_2
x 3
y 2
end
arch sign
name Other Boulder Cascades
msg
Note a cascade such as this could be
looped around to provide a repeated
sequence of events.
The smallest such cascade loop is 4
long, but only works fitfully as the
gates don't get a chance to fully reset
before the boulder rolls around again.
The next longest is 6 unit loop, which
works estreamly well.
Also see other gadget test maps in this
directory.
endmsg
x 3
y 5
end
arch swall_2_1_2
x 3
y 12
end
arch teleporter
hp 9
sp 12
x 3
y 13
end
arch swall_2_1_2
x 3
y 14
end
arch dwall_2_1_2
x 4
end
arch pit_closed
hp 3
sp 13
x 4
y 1
connected 3
end
arch random_talisman
x 4
y 1
end
arch swall_2_1_2
x 4
y 2
end
arch swall_2_2_3
x 4
y 12
end
arch swall_2_1_1
x 4
y 13
end
arch swall_2_2_4
x 4
y 14
end
arch dwall_2_1_2
x 5
end
arch pit_closed
hp 3
sp 13
x 5
y 1
connected 4
end
arch gem
title of exceptional beauty
face pretty_crystal.111
x 5
y 1
speed 0.000000
nrof 10
value 10000
weight 65
is_animated 0
end
arch swall_2_1_2
x 5
y 2
end
arch swall_2_2_2
x 5
y 7
end
arch swall_2_1_1
x 5
y 8
end
arch swall_3_2
x 5
y 9
end
arch swall_2_1_1
x 5
y 10
end
arch swall_2_2_1
x 5
y 11
end
arch dwall_2_1_2
x 6
end
arch pit_closed
hp 3
sp 13
x 6
y 1
connected 5
end
arch mithril_chainmail
x 6
y 1
end
arch swall_2_1_2
x 6
y 2
end
arch swall_2_2_2
x 6
y 6
end
arch swall_2_2_4
x 6
y 7
end
arch button_plate
x 6
y 8
connected 13
end
arch swall_1_3
x 6
y 9
end
arch button_plate
x 6
y 10
connected 14
end
arch swall_2_1_2
x 6
y 11
end
arch swall_2_2_2
x 6
y 15
end
arch swall_2_1_1
x 6
y 16
end
arch swall_2_2_1
x 6
y 17
end
arch dwall_2_1_2
x 7
end
arch pit_closed
hp 3
sp 13
x 7
y 1
connected 6
end
arch r_sack
x 7
y 1
end
arch swall_2_1_2
x 7
y 2
end
arch swall_2_2_2
x 7
y 5
end
arch swall_2_2_4
x 7
y 6
end
arch button_plate
x 7
y 7
connected 12
end
arch swall_0
x 7
y 8
end
arch button_small
x 7
y 9
weight 2
connected 115
end
arch button_small
x 7
y 9
connected 114
end
arch grate_open_2
x 7
y 9
speed 0.500000
value 1
connected 115
end
arch swall_2_2_2
x 7
y 10
end
arch swall_2_2_4
x 7
y 11
end
arch button_lever
name Start
x 7
y 14
connected 100
end
arch swall_2_1_2
x 7
y 15
end
arch grate_open_2
x 7
y 16
speed 0.500000
value 1
connected 100
end
arch boulder
x 7
y 16
material 0
end
arch swall_2_1_2
x 7
y 17
end
arch dwall_2_1_2
x 8
end
arch pit_closed
hp 3
sp 13
x 8
y 1
connected 7
end
arch key2
name raffle key No.2
slaying raffle_key_No2
x 8
y 1
end
arch swall_2_1_2
x 8
y 2
end
arch swall_2_1_2
x 8
y 5
end
arch button_plate
x 8
y 6
connected 11
end
arch swall_0
x 8
y 7
end
arch button_small
x 8
y 8
weight 2
connected 114
end
arch button_small
x 8
y 8
connected 113
end
arch grate_open_2
x 8
y 8
speed 0.500000
value 1
connected 114
end
arch swall_2_2_2
x 8
y 9
end
arch swall_2_2_4
x 8
y 10
end
arch swall_2_1_2
x 8
y 15
end
arch button_small
x 8
y 16
connected 102
end
arch grate_open_2
x 8
y 16
speed 0.500000
value 1
connected 102
end
arch swall_2_1_2
x 8
y 17
end
arch dwall_2_1_2
x 9
end
arch pit_closed
hp 3
sp 13
x 9
y 1
connected 8
end
arch battle_axe
x 9
y 1
end
arch swall_2_1_2
x 9
y 2
end
arch swall_3_3
x 9
y 5
end
arch swall_1_2
x 9
y 6
end
arch button_small
x 9
y 7
weight 2
connected 113
end
arch button_small
x 9
y 7
connected 112
end
arch grate_open_2
x 9
y 7
speed 0.500000
value 1
connected 113
end
arch swall_1_1
x 9
y 8
end
arch swall_3_1
x 9
y 9
end
arch table
name Please get item here.
x 9
y 12
nrof 0
no_pick 1
end
arch swall_2_1_2
x 9
y 15
end
arch button_small
x 9
y 16
weight 2
connected 103
end
arch button_small
x 9
y 16
connected 102
end
arch grate_open_2
x 9
y 16
speed 0.500000
value 1
connected 103
end
arch swall_2_1_2
x 9
y 17
end
arch dwall_2_1_2
x 10
end
arch pit_closed
hp 3
sp 13
x 10
y 1
connected 9
end
arch u_horn
name gray unicorn horn
dam 5
x 10
y 1
speed 0.100000
attacktype 1
value 50000
weight 3000
magic 0
last_sp 1
identified 1
end
arch swall_2_1_2
x 10
y 2
end
arch swall_2_1_2
x 10
y 5
end
arch button_plate
x 10
y 6
connected 10
end
arch swall_0
x 10
y 7
end
arch button_small
x 10
y 8
weight 2
connected 112
end
arch button_small
x 10
y 8
connected 111
end
arch grate_open_2
x 10
y 8
speed 0.500000
value 1
connected 112
end
arch swall_2_2_3
x 10
y 9
end
arch swall_2_2_1
x 10
y 10
end
arch swall_2_2_2
x 10
y 14
end
arch swall_2_2_4
x 10
y 15
end
arch button_small
x 10
y 16
weight 2
connected 104
end
arch button_small
x 10
y 16
connected 103
end
arch grate_open_2
x 10
y 16
speed 0.500000
value 1
connected 104
end
arch swall_2_1_2
x 10
y 17
end
arch dwall_2_1_2
x 11
end
arch pit_closed
hp 3
sp 13
x 11
y 1
connected 10
end
arch k_dagger
x 11
y 1
end
arch swall_2_1_2
x 11
y 2
end
arch swall_2_2_3
x 11
y 5
end
arch swall_2_2_1
x 11
y 6
end
arch button_plate
x 11
y 7
connected 9
end
arch swall_0
x 11
y 8
end
arch button_small
x 11
y 9
weight 2
connected 111
end
arch button_small
x 11
y 9
connected 110
end
arch grate_open_2
x 11
y 9
speed 0.500000
value 1
connected 111
end
arch swall_2_2_3
x 11
y 10
end
arch swall_2_2_1
x 11
y 11
end
arch swall_2_2_2
x 11
y 13
end
arch swall_2_2_4
x 11
y 14
end
arch button_small
x 11
y 15
weight 2
connected 105
end
arch button_small
x 11
y 15
connected 104
end
arch grate_open_2
x 11
y 15
speed 0.500000
value 1
connected 105
end
arch swall_1_1
x 11
y 16
end
arch swall_3_1
x 11
y 17
end
arch dwall_2_1_2
x 12
end
arch pit_closed
hp 3
sp 13
x 12
y 1
connected 11
end
arch leather_armour
name Yoroi of Banzai
ac 4
armour 10
x 12
y 1
immune 131072
value 100000
weight 5000
end
arch swall_2_1_2
x 12
y 2
end
arch swall_2_2_3
x 12
y 6
end
arch swall_2_2_1
x 12
y 7
end
arch button_plate
x 12
y 8
connected 8
end
arch swall_0
x 12
y 9
end
arch button_small
x 12
y 10
weight 2
connected 110
end
arch button_small
x 12
y 10
connected 109
end
arch grate_open_2
x 12
y 10
speed 0.500000
value 1
connected 110
end
arch swall_2_2_3
x 12
y 11
end
arch swall_3_2
x 12
y 12
end
arch swall_2_2_4
x 12
y 13
end
arch button_small
x 12
y 14
weight 2
connected 106
end
arch button_small
x 12
y 14
connected 105
end
arch grate_open_2
x 12
y 14
speed 0.500000
value 1
connected 106
end
arch swall_0
x 12
y 15
end
arch button_plate
x 12
y 16
connected 1
end
arch swall_2_1_2
x 12
y 17
end
arch dwall_2_1_2
x 13
end
arch pit_closed
hp 3
sp 13
x 13
y 1
connected 12
end
arch masamune
x 13
y 1
end
arch swall_2_1_2
x 13
y 2
end
arch swall_2_2_3
x 13
y 7
end
arch swall_2_2_1
x 13
y 8
end
arch button_plate
x 13
y 9
connected 7
end
arch swall_0
x 13
y 10
end
arch button_small
x 13
y 11
weight 2
connected 109
end
arch button_small
x 13
y 11
connected 108
end
arch grate_open_2
x 13
y 11
speed 0.500000
value 1
connected 109
end
arch swall_1_3
x 13
y 12
end
arch button_small
x 13
y 13
weight 2
connected 107
end
arch button_small
x 13
y 13
connected 106
end
arch grate_open_2
x 13
y 13
speed 0.500000
value 1
connected 107
end
arch swall_0
x 13
y 14
end
arch button_plate
x 13
y 15
connected 2
end
arch swall_2_2_2
x 13
y 16
end
arch swall_2_2_4
x 13
y 17
end
arch dwall_2_1_2
x 14
end
arch pit_closed
hp 3
sp 13
x 14
y 1
connected 13
end
arch oilskin
x 14
y 1
end
arch swall_2_1_2
x 14
y 2
end
arch swall_2_2_3
x 14
y 8
end
arch swall_2_2_1
x 14
y 9
end
arch button_plate
x 14
y 10
connected 6
end
arch swall_0
x 14
y 11
end
arch button_small
x 14
y 12
weight 2
connected 108
end
arch button_small
x 14
y 12
connected 107
end
arch grate_open_2
x 14
y 12
speed 0.500000
value 1
connected 108
end
arch swall_0
x 14
y 13
end
arch button_plate
x 14
y 14
connected 3
end
arch swall_2_2_2
x 14
y 15
end
arch swall_2_2_4
x 14
y 16
end
arch dwall_2_1_2
x 15
end
arch pit_closed
hp 3
sp 13
x 15
y 1
connected 14
end
arch gale
x 15
y 1
end
arch swall_2_1_2
x 15
y 2
end
arch swall_2_2_3
x 15
y 9
end
arch swall_2_2_1
x 15
y 10
end
arch button_plate
x 15
y 11
connected 5
end
arch swall_1_4
x 15
y 12
end
arch button_plate
x 15
y 13
connected 4
end
arch swall_2_2_2
x 15
y 14
end
arch swall_2_2_4
x 15
y 15
end
arch dwall_2_2_3
x 16
end
arch dwall_3_2
x 16
y 1
end
arch swall_2_2_4
x 16
y 2
end
arch swall_2_2_3
x 16
y 10
end
arch swall_2_1_1
x 16
y 11
end
arch swall_3_4
x 16
y 12
end
arch swall_2_1_1
x 16
y 13
end
arch swall_2_2_4
x 16
y 14
end
arch dwall_2_2_3
x 17
y 1
end
arch dwall_2_1_1
x 17
y 2
end
arch cwall_1_2
x 17
y 3
end