.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old December 8th, 2006, 09:25 PM
B0rsuk's Avatar

B0rsuk B0rsuk is offline
Second Lieutenant
 
Join Date: Mar 2004
Location: Gdansk, Poland
Posts: 420
Thanks: 0
Thanked 15 Times in 4 Posts
B0rsuk is on a distinguished road
Default Re: Spellbook script (in progress) (Python) (fun!!

I updated attachment in the first post.

New in version 0.2:
- spellbook.py renamed to pathspells.py
- code cleanup or obfuscation, depending on how you look at it.
- slightly different output by default
- new script: nationspells.py . At the moment just run it without any arguments. It will print you spells castable by each mage listed in mages data file. It works very well, but it doesn't take randoms into account at all.
- new data file: mages . So far, contains mages for Machaka, Ermor, Pythium, Arcoscephale, Man - all from middle era. Won't contain pure priests: waste of time, it's not hard to remember their spell list. But contains priest/mage hybrids. Note: the file has variable amount of columns, which may present a difficulty in parsing. Last optional columns are magic randoms. See for yourself.
- necronomicon data file updated: added Conjuration, Construction, and Holy spells. New column: battle/ritual.

Both data files are nicely grepable.

Basic functionality is alredy here. I'm especially proud from nationspells.py . It still needs a lot of work (randoms), but I think I'll focus on finishing data files now.

You need to put all the files in the same directory, because it's all hardcoded at the moment.
__________________
Those who do not understand Master Of Magic are condemned to reinvent it - badly.
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:10 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.