print"The ideal size in Notebook, for me, is 51x51. Only square maps with odd size x and y, at least for now, sorry. Each square is suposed to be 60.554 square km. Map with earth area is almost 2903*2903"

size_x =int(raw_input('X and Y axis size for map> '))

ifint(size_x) % 2==0:

RPMap.size_x=int(size_x) + 1

RPMap.size_y=int(size_x) + 1

else:

RPMap.size_x=int(size_x)

RPMap.size_y=int(size_x)

RPMap.create_null_map()

countp =0

stufr_list =[]

stufc_list =[]

stufr_list.append((int(size_x) -1) /2)

stufc_list.append((int(size_x) -1) /2)

whileTrue:

print"-[randomize] creates a entirely random map."

print"-[procedural] is a self important name for a command that does what"

print"anon suggested, using d100 rolls"

print"-[adjust] prompts you for an INTEGER first, then asking for whether"

print" you wish to [add] a number or else. This adjustment are then going"

print" to be applied to the whole map"

print"-[print] lets you look at the current mess"

print"-[purty] exchanges the numbers for their letter-equivalents. Keep in mind"

print" that I'm sleepdrunk and not an ASCII artist by any means, so it can be"

print" made a LOT better. Also, keep in mind that after purtyfying, no other"

print" functions will work."

print"-[quick] does a fast batch of procedural generation, correcting, purtyfying"

print" and dumping to file (mapdata.txt)"

print"-[readj] lets you readjust the X and Y of the map"

print"-[dump] just writes whatever you current map is to file"

print" *your mileage may vary. Like, a lot."

inpt =raw_input('> ')

if inpt =='randomize':

full_random(RPMap)

RPMap.print_map()

print''

elif inpt =='procedural':

procedural(RPMap)

RPMap.print_map()

print''

elif inpt =='adjust':

amt =raw_input('How much> ')

pram =raw_input('[add] or Else> ')

math_adjust(RPMap, amt, pram)

RPMap.print_map()

print''

elif inpt =='print':

RPMap.print_map()

print''

elif inpt =='purty':

make_purty(RPMap)

RPMap.print_map()

print''

elif inpt =='quick':

procedural(RPMap)

make_purty(RPMap)

RPMap.print_map()

mapdata =open("mapdata.txt",'w')

for dataline in RPMap.tile_list:

linewrite =''.join(dataline)

linewrite +='\n'

mapdata.write(linewrite)

mapdata.close()

elif inpt =='readj':

size_x =int(raw_input('X axis size for map> '))

size_y =int(raw_input('Y axis size for map> '))

RPMap.size_x= size_x

RPMap.size_y= size_y

RPMap.create_null_map()

elif inpt =='dump':

mapdata =open("mapdata.txt",'w')

for dataline in RPMap.tile_list:

linewrite =' '.join(dataline)

linewrite +='\n'

mapdata.write(linewrite)

mapdata.close()

RAW Paste Data

We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand