|
Thread: Using complex math | |
|
Ataman
Tavern Dweller
|
posted February 03, 2007 07:06 PM |
|
|
Using complex math
Is it possible to use complex math when calculating the damage of spells, moats, defense towers, skills, perks, etc.?
For example, I would like all spell power based spells to use this formula:
[code]
Damage = Damage Increment+Damage Multiplier*(Power^(1 + Power/200))
[/code]
rather than the linear (normal) one.
Or have defense towers cause damage dependant on the number of days held by the player in addition to the town level.
Or make skills level dependant such as:
- Wizard's reward gives 0.25 spell power * level rather than a flat +2 spell power
- Estates produces 500 gold + 50*level gold
And what about first aid tents healing (or raising) the number of troops dependant on the following factors:
- Hero level
- Hero's skills in war machines and First Aid tents
- Hero's skill in light magic
-Atama
____________
|
|
EliteKill
Promising
The Starless
|
posted February 03, 2007 07:28 PM |
|
|
Well the only place I can think of that you can tweak these things is in GameMechanics. It's probably somewhere in there... But where?
|
|
Ataman
Tavern Dweller
|
posted February 05, 2007 07:30 PM |
|
|
Almost everything I see in Game Mechanics is written with primitive .html style code, I couldn't find it there.
I hope I am wrong about this.
-Ataman
|
|
Ataman
Tavern Dweller
|
posted April 03, 2007 01:14 AM |
|
|
From the lack of replies, I take this feature is hardcoded in the .exe file, rather than allowing .xdb editing the convential way.
-Ataman
____________
|
|
Lord_Immortal
Famous Hero
DoR Dev Team
|
posted April 25, 2009 06:08 PM |
|
|
Realy Complex Maths!I don't Understand it!!!!!
|
|
Fauch
Responsible
Undefeatable Hero
|
posted April 26, 2009 02:25 AM |
|
|
I think you have to use the following formula :
damage = a + b x spellpower.
|
|
SimonaK
Promising
Supreme Hero
|
posted April 26, 2009 07:19 AM |
|
Edited by SimonaK at 07:20, 26 Apr 2009.
|
spells xdb files allow to modify their values about mastery of spell schools
so you can adjust these values linearly or exponentialy.
but never these files allow to modify spell values about the hero spellpower.
I made a mod using exponential calculation about mastery of spell schools
http://heroescommunity.com/viewthread.php3?TID=29043
then all of that is a little bit possible but not exactly for all what you're talking
ex: for Estates, I don't see how we can do it even with xdb files.
|
|
|