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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #34  
Old November 6th, 2003, 12:01 AM

licker licker is offline
Captain
 
Join Date: Sep 2003
Location: New Mexico
Posts: 990
Thanks: 13
Thanked 15 Times in 14 Posts
licker is on a distinguished road
Default Re: Dominions 2. AI. Suggestions, that how to fix it.

Bah, I didn't want to do this but I'll try...

Do you remember linear algebra? (I do and wish I didn't but that's beside the point)

So you have a matrix of units with weights and it looks like this:

Unit Weight
Militia 10%
LI 10%
MI 40%
HI 25%
X-bow 15%

Then you chose a rapid expander type personality and the matrix gets multiplied by:

(.5
1.5
2
0
1)
And then it gets normalized to 100%...

You further have a SC pretender so that multiplies the matrix by:
(.5
.5
3
1
1)
And it gets normalized again...

Anyway, you have a large matrix for unit type, then you have these operators (if that's the right term) for different conditions, like personality, like theme, like nation that multiply the values in the big matrix.

Actually if you did it this way you could have one huge list of all units, multiplied by national operators (to zero out the unallowed units), multiplied by theme and personality operators, multiplied by exisiting indie units (to put back in desired indie units when you get them), multiplied by...

Do you see it now? Its not that difficult to set up, it is difficult to balance The size of these files is tiny, though there may be 100 of them. The tricky part then comes in how you set up your algorythem for which operators are applied to your specified matricies. But again, that's not difficult to concieve how you set up those algorythems, its just difficult to balance... that's where the want to externalize all this comes from, let the players who want to fiddle fiddle, eventually people will arrive at settings that work 'best' and the devs can chose to use them for the vanilla game or not.
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 07:34 AM.


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