~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  ChatChat  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» Latest version of Ironfist
by Unknown_Hero 2018-09-23, 07:07

» Changes to the game's graphics
by Unknown_Hero 2018-09-23, 05:22

» "www.ironfi.st" website broken
by Unknown_Hero 2018-09-23, 05:11

» Локации из кампании в Энроте
by Markon Phoenix 2018-09-22, 21:50

» [Ironfist ver 1.3.0] .ogg file playback feature in the "MUSIC" folder
by Unknown_Hero 2018-09-19, 02:59

» The "Monster Yotta Pack" aka the "MYP" from the FoE
by Unknown_Hero 2018-09-17, 22:55

» H1 Masquerade by Morglin
by Mefista 2018-09-13, 14:25

Poll
"Wait" in HoMM2?
Yes
80%
 80% [ 55 ]
No
20%
 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
Welcome fellow Enrothians!
Commanders?
Enrothian Fan Art
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
Dervish Faction General Concept

Share | 
 

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

Go down 
AuthorMessage
Unknown_Hero
Minotaur
Minotaur
avatar

Messages : 378
Quality Points : 56
Registration Date : 2015-09-06

PostSubject: [Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more   2017-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
-
» [Script System][Suggestions] So, which expressions are the most desirable?
» One Woman in India dies every hour due to the dowry system
» Minecraft's Coordinate System
» Award system
» Latest Topics (new system)

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: