~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» Heroes of Might & Magic 2 Civilization 2 Mod!
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Icon_minitimeby Blake01 2019-10-13, 21:20

» HoMM Similar Games & HoMM Total Conversion Mods List
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Icon_minitimeby Blake01 2019-10-13, 21:18

» New Old School Might and Magic Game
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Icon_minitimeby GodRage 2019-10-13, 18:20

» Succession Wars v 0.8.1 Beta Installation Issue
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Icon_minitimeby Orzie 2019-10-08, 03:19

» [H3SW 0.8.1] Along The Coast
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Icon_minitimeby Sibernethy 2019-10-06, 11:30

» Project Ironfist announcements
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Icon_minitimeby Darmani 2019-10-04, 12:32

» [H3SW 0.8.1] Flint's Flight
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Icon_minitimeby Ctesiphon 2019-10-01, 23:19

Poll
"Wait" in HoMM2?
Yes
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Redbar1180%[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Redbar12
 80% [ 55 ]
No
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Redbar1120%[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Redbar12
 20% [ 14 ]
Total Votes : 69
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
H3SW General Discussion
H3SW: Dwelling Development
H3SW Map List: Work in progress
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
Heroes III: The Succession Wars v0.8.1 Beta
Welcome fellow Enrothians!
Enrothian Fan Art
H3SW Recruitment Point - Enroth Needs You!

Share
 

 [Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more

Go down 
AuthorMessage
Unknown_Hero
Vampire
Vampire
Unknown_Hero

Messages : 472
Quality Points : 63
Registration Date : 2015-09-06

[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Empty
PostSubject: [Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more   [Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more Icon_minitime2017-03-16, 22:49

Currently, there is no way to check/change the global upgrade cost of creatures.

*

GetGlobalCreatureUpgradeCost(value)

Returns the global value utilised to calculate the upgrade cost of creatures.

In original Heroes 2, this global value is "2". How is that calculated?

The upgrade cost of creature is calculated based on the price difference between the price of the base creature and the price of the upgraded creature.
This difference is multiplied by 2 to get the upgrade cost of creature.
This is applied for the cost in gold and the cost in resources.

So, the upgrade cost of creatures is 2 times the price difference for the gold and for the resources.

SetGlobalCreatureUpgradeCost(value)

Sets the global value utilised to calculate the upgrade cost of creatures.

Example of use:

SetGlobalCreatureUpgradeCost(1);

With this setting, the upgrade cost of creatures is equal to 1 time the price difference between the cost of the base creature and the cost of the upgraded creature.
Therefore, only the difference in price.
Back to top Go down
 
[Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more
Back to top 
Page 1 of 1
 Similar topics
-
» Help with snow script and java.
» Strike System
» Radio script on every pages
» sub domain error? just propagation or is it still in your system?
» Any New Java Script removes Chatbox from Toolbar?

Permissions in this forum:You cannot reply to topics in this forum
~ Forums of Enroth ~ :: Modding Guild :: Heroes of Might and Magic II: Project Ironfist :: Modding and Mapmaking-
Jump to: