~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  ChatChat  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  

Share | 
 

 [Script System][Suggestions] GetArmyStrength(hero, creature) and more

View previous topic View next topic Go down 
AuthorMessage
Unknown_Hero
Minotaur
Minotaur
avatar

Messages : 313
Quality Points : 37
Registration Date : 2015-09-06

PostSubject: [Script System][Suggestions] GetArmyStrength(hero, creature) and more   2017-03-29, 05:48

GetArmyStrength(hero, creature)

Returns the strength of the specified creature's army present in the specified hero's inventory.

*

GetHeroArmyStrength(hero)

Returns the total strength of all the armies present in the specified hero's inventory.

*

GetCreatureStrength(creature)

Returns the strength of the specified creature.
Back to top Go down
XT3RM1N8R
Gargoyle
Gargoyle
avatar

Messages : 21
Quality Points : 1
Registration Date : 2016-11-06
Age : 20
Location : USA

PostSubject: Potential Implementation Requested   2017-04-04, 20:36

Hello,

I'm not very sure I understand how these functions may be used. Could you provide an example as to how a mapmaker might use this information?

Thank You,
XT3RM1N8R

________________________
Lazy Signature
Back to top Go down
Unknown_Hero
Minotaur
Minotaur
avatar

Messages : 313
Quality Points : 37
Registration Date : 2015-09-06

PostSubject: Re: [Script System][Suggestions] GetArmyStrength(hero, creature) and more   2017-04-06, 06:41

GetArmyStrength(hero, creature)

This instruction will be used to determine which army is the most powerful in order to reorganize the position of the different troops in the army of an AI hero for a better combat effectiveness (on the adventure map so that the human player can know, with a right click, the position of AI hero's troops before engaging the combat).

This instruction will be used in coordination with the instructions GetArmyInSlotCreature(hero, slot), GetArmyInSlotQuantity(hero, slot) and SetArmyInSlot(hero, slot, creature, quantity) in order to reorganize the position of the different troops in the army of an AI hero for a better combat effectiveness.

*

GetHeroArmyStrength(hero)

This instruction will be used to make comparisons to validate conditions.

For example, if the hero's army strength reaches a certain level, all the wandering creatures of a certain type on the adventure map will join the hero when the hero attacks them (when he moves to one of the adjacent squares of the troop).

*

GetCreatureStrength(creature)

This instruction will be used to calculate the strength of a troop of creatures.

For example, how many creatures of a certain type do you need to have to reach the desired strength.
Back to top Go down
 
[Script System][Suggestions] GetArmyStrength(hero, creature) and more
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» James Connolly: A Working Class Hero
» One Woman in India dies every hour due to the dowry system
» Immune System
» Chelino Travel System
» Minecraft's Coordinate 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: