Fix script.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14526 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2011-06-09 19:31:13 +00:00
parent 43041fec06
commit 68a0e673c5
1 changed files with 9 additions and 7 deletions

View File

@ -95,21 +95,23 @@ def do_party():
whoami.Say('changed your party!')
def do_region():
whoami.Say('Known regions, region for current map is signaled by ***')
msg = 'Known regions, region for current map is signaled by ***\n'
cur = whoami.Map.Region
whoami.Say('This map\'s region is %s [msg: %s]'%(cur.Name, cur.Message))
msg += 'This map\'s region is %s (msg: %s)\n'%(cur.Name, cur.Message)
regions = Crossfire.GetRegions()
whoami.Say('%d regions'%len(regions))
msg += ('%d regions\n'%len(regions))
for region in regions:
if cur == region:
whoami.Say('*** %s - %s'%(region.Name,region.Longname))
msg += ('*** %s - %s\n'%(region.Name,region.Longname))
else:
whoami.Say('%s - %s'%(region.Name,region.Longname))
msg += ('%s - %s\n'%(region.Name,region.Longname))
parent = cur.GetParent()
if parent:
whoami.Say('Parent is %s'%parent.Name)
msg += ('Parent is %s\n'%parent.Name)
else:
whoami.Say('Region without parent')
msg += ('Region without parent\n')
whoami.Say(msg)
def do_activator():
who2 = Crossfire.WhoIsOther()