Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: Using complex math
Thread: Using complex math
Ataman
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
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
EliteKill
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?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Ataman
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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
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
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Lord_Immortal
Lord_Immortal


Famous Hero
DoR Dev Team
posted April 25, 2009 06:08 PM

Realy Complex Maths!I don't Understand it!!!!!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Fauch
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
SimonaK
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.


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0217 seconds