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

This Month's Specials

Raging Tiger- Save $9.00
The Star and the Crescent- Save $9.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old July 27th, 2007, 07:07 PM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: Indep grimoire slightly improved

The grimoire works differently from dom2, and I think that is why #startspell doesn't work anymore. In dom2 your grimoire was given at start and whenever you learned new spells they were added. In dom3 the grimoire is rewritten every turn, and filled with those spells you have researched, but spells you do not know are wiped. This makes patches less problematic, since you can't get your spells whacky due to added or removed spells, but it also makes #startspell obsolete in its current form. I suspect the command would need to reread the mapfile every turn, and that is not done atm, since it would open cheat possibilities. So some kind of change is needed, not just a fix of something broken.
__________________
www.illwinter.com
Reply With Quote
  #2  
Old July 27th, 2007, 08:20 PM

MaxWilson MaxWilson is offline
Major General
 
Join Date: Mar 2007
Location: Seattle
Posts: 2,497
Thanks: 165
Thanked 105 Times in 73 Posts
MaxWilson is on a distinguished road
Default Re: Indep grimoire slightly improved

On the other hand, that might mean it's easier than it would have been in Dom2 to add a feature to restrict your mages from casting e.g. Touch of Madness, for those of us who hate that spell. Pretty please?

-Max
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

["Memories of Ice", by Steven Erikson. Retranslated into l33t.]
Reply With Quote
  #3  
Old July 27th, 2007, 08:21 PM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: Indep grimoire slightly improved

How do you figure?
__________________
www.illwinter.com
Reply With Quote
  #4  
Old July 27th, 2007, 10:43 PM

MaxWilson MaxWilson is offline
Major General
 
Join Date: Mar 2007
Location: Seattle
Posts: 2,497
Thanks: 165
Thanked 105 Times in 73 Posts
MaxWilson is on a distinguished road
Default Re: Indep grimoire slightly improved

Well, you're already keeping track of two concepts here:

1.) The spells you really have access to (defined by your research level), and

2.) the spells you can cast.

Right now #2 is just a cache of #1, regenerated every round, but if you allowed disabling spells by clicking on a toggle or something you just remove them from #2 (and put them on a list of "restricted" spells to remove every time you regenerate #2 from #1). The combat AI doesn't have to change at all, and since it's purely subtractive there's no worry about bugs that "enable" spells you haven't actually researched yet. I'm presuming that the Dom2 way would have necessitated adding *and* subtracting spells to/from the list as they were enabled/disabled.

Of course, maybe it's not as simple as that. For one thing, you have to also encode the "restricted" list as part of the .2h file for PBEM games.

-Max
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

["Memories of Ice", by Steven Erikson. Retranslated into l33t.]
Reply With Quote
  #5  
Old July 28th, 2007, 06:10 AM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: Indep grimoire slightly improved

Uhu, I have no idea. You might be right.
__________________
www.illwinter.com
Reply With Quote
  #6  
Old July 28th, 2007, 11:21 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Indep grimoire slightly improved

From the look of the game logs it appears that the list doesnt have any "no use" but it does use a weighted system with just a touch of random thrown in. It might be possible to examine a game log and make suggestions on changing the order that choices are made.

The problem would appear to be that there isnt any "if I am Ermor" or "if I am undead" type of thinking involved. So any suggestion would need to be balanced between its worth in removing it from a bad-use situation while also removing from all other nations use.

Just a small part of the thinking for one mage looks like this in the logs.....
com Aziakos cast spell (favspell Swarm) (mayusegems 1)
est. choices 66
best spell so far Flying Shards (score17)
best spell so far Call Ancestor (score18)
best spell so far Wrath of the Ancestors (score578)
best spell so far Stoneskin (score7197)
best spell so far Ironskin (score12730)
best spell so far Swarm (score100697)
castspell: cnr765 spl365 (Swarm) vis2 x18 y10 spldmg591
Get an order for 5543 Dragonfly, ord 0
Closest enemy (for unr 5543)

The AI code was all added into the game late. Its pretty linear and generic to all nations and conditions. Any suggestions would probably have to be also unless the AI code got a massive rewrite from scratch.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #7  
Old July 28th, 2007, 05:35 PM

MaxWilson MaxWilson is offline
Major General
 
Join Date: Mar 2007
Location: Seattle
Posts: 2,497
Thanks: 165
Thanked 105 Times in 73 Posts
MaxWilson is on a distinguished road
Default Re: Indep grimoire slightly improved

When you say "removing it from a bad-use situation while also removing it from all other nations' use," it seems like you're talking about a mod, which is as good as we can do at the moment, but I meant that the Dom3 change to spell lists was conducive to adding a new feature (probably tied into the GUI) for forbidding one's OWN mages from casting a particular spell. E.g. Touch of Madness, or Conjure Earth Elemental (waste of gems), or Phantasmal Warrior (if my PD Vanherses keep casting that instead of Orb lightning), or whatever spell is annoying me.

-Max
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

["Memories of Ice", by Steven Erikson. Retranslated into l33t.]
Reply With Quote
Reply

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 12:52 PM.


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