Undercroft/undercroft_windows_i110/data/defs/level.tomb/king1_behavior.txt

283 lines
5.9 KiB
Plaintext

sound.zombie = data/sound/enemy/zombie.wav
[behavior = stone_sign1]
<on_click = 0>
text_id = kt_sign1
[behavior = stone_sign2]
<on_click = 0>
text_id = kt_sign2
[behavior = sun_chamber]
<on_click = 0>
text_id = kt_sign3
--------------------------------------------------------------------------------
[behavior = exit]
<on_enter = 0,1>
do_click=1
<on_click = 0>
play_sound.ladder=0
teleport.GRAVEYARD_1 = 0,26,26
[behavior = port]
<on_enter = 0,1>
do_click=1
<on_click = 0>
teleport = -1,0,0
[behavior = down_kt2]
<on_enter = 0,1>
do_click=1
<on_click = 0>
play_sound.ladder=0
teleport.KINGS_TOMB_2 = 2,22,5
--------------------------------------------------------------------------------
[behavior = tomb_door]
<on_init = 0>
animate = 0, 0, 0, 1
block = 1
<on_init = 1>
animate = 4, 4, 0, 1
block = 0
<on_click = 0>
state = 1
animate = -1, 4, 0, 1
block = 0
play_sound.move_stone=0
end_round=1
<on_click = 1>
state = 0
animate = -1, 0, 0, 1
block = 1
play_sound.move_stone=0
--------------------------------------------------------------------------------
[behavior=block_wall]
<on_activate=0,1>
cube.g_tomb = 0,0,0
play_sound.move_stone=0
<on_activate=0,2>
cube.w_stone = 0,0,0
play_sound.move_stone=0
<on_enter=0,1>
state=1
[behavior=plate_wall]
<on_init=0>
animate=0,0,0,0
<on_init=1>
animate=1,1,0,0
<on_enter=0,0>
animate=1,1,0,0
activate=1,0,0
state=1
play_sound.switch=0
<on_release=1>
animate=0,0,0,0
activate=2,0,0
state=0
play_sound.switch=0
[behavior=plate1]
<on_init=0>
animate=0,0,0,0
<on_init=1>
animate=1,1,0,0
<on_enter=0,0>
set_global.10 = 1
animate=1,1,0,0
state=1
play_sound.switch=0
<on_release=1>
animate=0,0,0,0
state=0
play_sound.switch=0
[behavior=plate_correct]
<on_init=0>
animate=0,0,0,0
<on_init=1>
animate=1,1,0,0
<on_enter=0,0>
animate=1,1,0,0
state=1
play_sound.switch=0
<on_release=1>
animate=0,0,0,0
state=0
play_sound.switch=0
[behavior=instant_death]
<on_init=0>
animate = 0,0,0,1
<on_init=1>
animate = 1,2,0,999
<on_global=-1,10,0>
animate = 0,0,0,1
state=0
<on_global=-1,10,1>
animate = 1,2,0,999
state=1
<on_enter = 1,1>
text = aaargh!
play_sound.skill_malediction=0
hit = 0,0,1000,1000,0,0
<on_enter = 1,3>
play_sound.skill_malediction=0
hit = 1,0,1000,1000,0,0
--------------------------------------------------------------------------------
[behavior = lever]
<on_init = 0>
animate = 0, 0, 0, 1
<on_init = 1>
animate = 1, 1, 0, 1
<on_click = 0>
state = 1
animate = -1, 1, 0, 1
set_global.10 = 0
play_sound.switch=0
<on_click = 1>
state = 0
animate = 0, 0, 0, 1
set_global.10 = 0
play_sound.switch=0
--------------------------------------------------------------------------------
[behavior = button]
<on_init = 0>
animate = 0, 0, 0, 1
<on_init = 1>
animate = 1, 1, 0, 1
<on_click = 0>
state = 1
animate = -1, 1, 0, 1
cube.g_tomb = 0,0,0
play_sound.move_stone=0
play_sound.switch =0
<on_click = 1>
state = 0
animate = 0, 0, 0, 1
cube.w_stone = 0,0,0
play_sound.move_stone=0
play_sound.switch =0
--------------------------------------------------------------------------------
[behavior=saddead_dummy]
<on_click=0>
play_sound.zombie =0
text_id = kt_saddead1
enemy_type.saddead_peace = saddead_fight,0,0
state=1
<on_global=1,11,2>
enemy_forced.saddead_peace = 0,0
set_global.11=0
state=2
<on_click=2>
play_sound.zombie =0
text_id = kt_saddead2
enemy_type.saddead_peace = saddead_fight,0,0
state=3
<on_global=3,11,2>
enemy_forced.saddead_peace = 0,0
set_global.11=0
state=4
<on_click=4>
play_sound.zombie =0
text_id = kt_saddead3
enemy_type.saddead_peace = saddead_fight,0,0
state=5
<on_global=5,11,1>
end_round = 0
enemy_type.saddead_fight = saddead_peace,0,0
set_global.11=0
text_id = kt_saddead4
button_id=b_ok
<on_button=5,0>
exp=1000
remove_enemy.saddead_peace = 0,0
state=255
[behavior = saddead_respawn]
<on_global=0,11,1>
state=1
<on_enter=1,1>
set_global.11 = 2
state=2
<on_global=2,11,1>
state=3
<on_enter=3,1>
set_global.11 = 2
state=4
<on_global=4,11,1>
state=5
--------------------------------------------------------------------------------
[behavior = skull]
<on_init = 0>
animate = 0, 0, 0, 1
<on_init = 1>
animate = 1, 1, 0, 1
<on_init = 2>
animate = 1, 2, 0, 1
<on_click = 0>
use_offer=0
<on_click = 1>
use_offer=0
<on_use.ruby=0,0>
text_id=nothing_happened
<on_use.ruby=0,1>
remove_party_item.ruby = 1
state = 1
animate = -1, 1, 0, 1
<on_use.ruby=1,0>
text_id=nothing_happened
<on_use.ruby=1,1>
remove_party_item.ruby = 1
state = 2
animate = -1, 2, 0, 1
cube.g_tomb=0,1,0
play_sound.break_wall = 0
quake=500
remove_object.skull=0,0
--------------------------------------------------------------------------------
[behavior = teleport]
<on_enter = 0,1>
play_sound.teleport=0
flash_view=100,200,255,200
teleport = -1,0,0
[behavior = tele_level3]
<on_enter = 0,1>
play_sound.teleport=0
teleport.kings_tomb_3 = -1,12,14
--------------------------------------------------------------------------------
[behavior=kings_quest]
<on_enter=0,1>
quest.kings_tomb=1
state=1
--------------------------------------------------------------------------------
[behavior = claw_killer]
<on_enter=0,1>
enemy.skeleton=-1,0
enemy.skeleton=-1,0
enemy.skeleton=1,0
enemy.skeleton=1,0
cube.w_stone=0,0,1
remove_object.fence2=-2,0
remove_object.fence2=2,0
flash_view=255,255,255,255
play_sound.skill_ancestor=0
state=255