From 68a0e673c5b02fb779397bb8633d13e909b9a4be Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Thu, 9 Jun 2011 19:31:13 +0000 Subject: [PATCH] Fix script. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14526 282e977c-c81d-0410-88c4-b93c2d0d6712 --- test/python.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/python.py b/test/python.py index 1a8e01233..1b04109b7 100644 --- a/test/python.py +++ b/test/python.py @@ -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()