|
|
|
 |

February 27th, 2009, 02:24 AM
|
BANNED USER
|
|
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
|
|
Re: Nation Library
You guys never cease to amaze me.
I did make a bug in the original mod (obviously not your fault). The corrected mod adds 4 new spells, you can grab it from the Ulm Civil War thread.
Note however I was lazy on the spell descriptions.
|

February 27th, 2009, 01:47 PM
|
BANNED USER
|
|
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
|
|
Re: Nation Library
I hope it's not abuse to paste in another big chunk of code, but I rewrote the ulm.py example to actually do chrispedersen's whole mod in 46 lines although some of the description text is snipped. This is the terse version. I've attached the actual output as ulm.dm.zip.
Code:
#!/usr/bin/env python
# -*- Mode: Python; tab-width: 4 -*-
from dmg import D3MNation, D3M
era = 3
slot = 72
players = [("BlackChris", "BlackChris"),
("Tolkien", "CountVonTolkein"),
("CountSzendry", "CountSzendry"),
("SteurmMithras", "SteurmMithras"),
("PrinceLaveare","PrinceLaveare"),
("AdjuctantDedas","Adjuctant Dedas"),]
new_mod = D3M(era=era, modname = "UlmCivilWar")
for player, nation in players:
LA_Ulm = D3MNation(era, slot, nation,
brief = "Ulm is a human kingdom... snipped ...trade in the arcane.",
summary = "Race: Stocky humans... snipped ...Priests: Weak.")
LA_Ulm.add_units([482,1013,1014,1015,1017,1034])
LA_Ulm.add_commanders([1016,1018,739,740,1023,1012])
LA_Ulm.set_PD(1016, 739, 1013, 482, 1024)
LA_Ulm.add_site("The Ruined Keep")
LA_Ulm.add_site("Black Forest")
LA_Ulm.add_site("The Black Temple")
LA_Ulm.set_forts(25, 3, 8, 3, 35, 6, 11)
LA_Ulm.set_startarmy(1016, 1018, 1013, 8, 1015, 8)
LA_Ulm.copy_national(spell = "Sanguine Heritage",
new_name = player + "'s Taking",
new_desc = "And so it is given, One from another, for time immemorial.")
LA_Ulm.copy_national(spell = "Iron Darts",
new_name = player + "'s Darts",
new_desc = "And so it is given, One from another, for time immemorial.")
LA_Ulm.copy_national(spell = "Iron Blizzard",
new_name = player + "'s Blizzard",
new_desc = "And so it is given, One from another, for time immemorial.")
LA_Ulm.copy_national(spell = "Pack of Wolves",
new_name = player + "'s Wolves",
new_desc = "And so it is given, One from another, for time immemorial.")
LA_Ulm.copy_national(spell = "Sloth of Bears",
new_name = player + "'s Bears",
new_desc = "And so it is given, One from another, for time immemorial.")
new_mod.add_nation(LA_Ulm, slot)
slot += 1
print new_mod
|

February 27th, 2009, 02:18 PM
|
BANNED USER
|
|
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
|
|
Re: Nation Library
Hmmm... I *think* I'm willing to keep working on this with you pvg. We can include the NationalLibrary as part of ChrisCBM...
If we do one nation a day.. well be done in two months....
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|