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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.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
  #1  
Old December 6th, 2006, 09:26 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 Spellbook script 0.2

Hey

I'm developing a script, which allows you to see what spells can a specific mage cast without boosters. Without it, the game is unplayable unless you're willing to memorize all spells yourself. Manual is disappointing in this aspect. First working version is finished, but it's far from complete. But it's still very useful, and I encourage you to try it. Post suggestions for features here.
You're allowed to tinker with it, but do not dare to improve and post it here.. I'm trying to learn Python, don't spoil the fun for me !
----------

You need:
- Python interpreter
- basic ability to use commandline
- you might need a program to convert unix newline characters to windows ones if you insist running it with windows.
Don't complain, if I wanted to annoy you I'd use bash + grep + awk .

I attach two files. spellbook.py is the executable, necronomicon is the spell data file (only Evocation school for now). You can view source code and check it for malicious code. It's all open.

Put both files in the same directory. Then run spellbook.py with magic paths as parameter. For example (linux)
Code:

python spellbook.py FFDNN



...and you should get list of Evocation spells castable with these paths.
-------------
Todo:

- complete spell list, all other schools and holy, too.
- make simple mage list with few values, such as paths, gold cost(sacred?), randoms
- generate castable spell list for all nations and their mages. Output in plain text, html, laTeX
- ability to handle random paths (I intend to implement it by splitting one mage to a long list of path permutations, with probability/estimated cost next to each spell-mage.
- rewrite/cleanup using functions/methods for the sake of readability and flexibility
- nail the strange 'index out of range' bug (commented out)
Attached Files
File Type: zip 476628-spellbook0_2.zip (4.5 KB, 102 views)
__________________
Those who do not understand Master Of Magic are condemned to reinvent it - badly.
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 06:41 AM.


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