follow-up to last commit "allow player dragons to pick metabolism focus": also change player title. And I forgot to make the sea tiles blocking.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@10700 282e977c-c81d-0410-88c4-b93c2d0d6712
master
lalo 2008-11-24 07:30:55 +00:00
parent f66bc0e569
commit e22f56ee72
2 changed files with 28 additions and 11 deletions

View File

@ -36,10 +36,19 @@ faces = {
} }
changer = Crossfire.WhoAmI() changer = Crossfire.WhoAmI()
atype = long(Crossfire.ScriptParameters()) try:
player = changer.Above.Above aname = Crossfire.ScriptParameters()
force = player.CheckArchInventory('dragon_ability_force') atype = getattr(Crossfire.AttackTypeNumber, aname.upper())
force.Exp = atype player = changer
player.Anim = animations[atype] while player.Archetype.Name != 'pl_dragon':
player.Face = faces[atype] player = player.Above
changer.Say("Your metabolism is now focused on me.") force = player.CheckArchInventory('dragon_ability_force')
force.Exp = atype
player.Anim = animations[atype]
player.Face = faces[atype]
changer.Say("current title: %s" % player.Title)
player.Title = '%s hatchling' % aname
changer.Say("Your metabolism is now focused on me.")
except:
import sys
changer.Say('erorr: %s' % sys.exc_info()[1])

View File

@ -1499,7 +1499,7 @@ y 17
connected 1 connected 1
activate_on_push 1 activate_on_push 1
arch event_trigger arch event_trigger
name 2 name fire
title Python title Python
slaying /python/start/dragon_attune.py slaying /python/start/dragon_attune.py
end end
@ -1533,7 +1533,7 @@ y 19
connected 3 connected 3
activate_on_push 1 activate_on_push 1
arch event_trigger arch event_trigger
name 3 name electricity
title Python title Python
slaying /python/start/dragon_attune.py slaying /python/start/dragon_attune.py
end end
@ -3110,7 +3110,7 @@ y 17
connected 2 connected 2
activate_on_push 1 activate_on_push 1
arch event_trigger arch event_trigger
name 4 name cold
title Python title Python
slaying /python/start/dragon_attune.py slaying /python/start/dragon_attune.py
end end
@ -3144,7 +3144,7 @@ y 19
connected 4 connected 4
activate_on_push 1 activate_on_push 1
arch event_trigger arch event_trigger
name 10 name poison
title Python title Python
slaying /python/start/dragon_attune.py slaying /python/start/dragon_attune.py
end end
@ -3855,6 +3855,7 @@ end
arch sea1 arch sea1
x 11 x 11
y 18 y 18
move_block all
end end
arch pstone_2 arch pstone_2
x 11 x 11
@ -3867,6 +3868,7 @@ end
arch sea1 arch sea1
x 11 x 11
y 19 y 19
move_block all
end end
arch pstone_2 arch pstone_2
x 11 x 11
@ -3879,6 +3881,7 @@ end
arch sea1 arch sea1
x 11 x 11
y 20 y 20
move_block all
end end
arch pstone_2 arch pstone_2
x 11 x 11
@ -3891,10 +3894,12 @@ end
arch sea1 arch sea1
x 11 x 11
y 21 y 21
move_block all
end end
arch pstone_2 arch pstone_2
x 11 x 11
y 22 y 22
move_block all
end end
arch dungeon_magic arch dungeon_magic
x 11 x 11
@ -4166,14 +4171,17 @@ end
arch sea1 arch sea1
x 12 x 12
y 19 y 19
move_block all
end end
arch sea1 arch sea1
x 12 x 12
y 20 y 20
move_block all
end end
arch sea1 arch sea1
x 12 x 12
y 21 y 21
move_block all
end end
arch sea1 arch sea1
x 12 x 12