~ Forums of Enroth ~
Would you like to react to this message? Create an account in a few clicks or log in to continue.

~ Forums of Enroth ~

The Enroth diehard fan community
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» fheroes2 General Announcements
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby sirDranik 2024-05-24, 01:00

» The YouTube thread
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby DanilaRud015 2024-05-19, 06:00

» Songs of Conquest
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby Mefista 2024-05-16, 09:29

» ...to XP run...
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby CATMAN 2024-03-30, 03:16

» WARNING - The dreaded moment is here: Heroes 6 servers shutting down
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby Blake01 2024-03-29, 23:04

» Songs of Silence (HoMM like game)
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby Blake01 2024-03-27, 16:52

» Heroes Orchestra's 5th Birthday concerts with Paul Romero
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby rrravyn 2024-03-23, 22:45

Poll
Global announcements should be:
Everlasting, 1 for each project.
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Redbar110%[Script System][Suggestions] GetArmyStrength(hero, creature) and more Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Redbar11100%[Script System][Suggestions] GetArmyStrength(hero, creature) and more Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Redbar110%[Script System][Suggestions] GetArmyStrength(hero, creature) and more Redbar12
 0% [ 0 ]
Total Votes : 6
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
Introduce yourself
H3SW General Discussion
H3SW Map List: Work in progress
H3SW: Dwelling Development
Forum Admins Feed
The Floody Land
Enrothian Fan Art
Heroes III: The Succession Wars v0.8.1 Beta

 

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

Go down 
2 posters
AuthorMessage
Unknown_Hero
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

[Script System][Suggestions] GetArmyStrength(hero, creature) and more Empty
PostSubject: [Script System][Suggestions] GetArmyStrength(hero, creature) and more   [Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitime2017-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
XT3RM1N8R


Messages : 23
Quality Points : 1
Registration Date : 2016-11-06
Age : 27
Location : USA

[Script System][Suggestions] GetArmyStrength(hero, creature) and more Empty
PostSubject: Potential Implementation Requested   [Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitime2017-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
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

[Script System][Suggestions] GetArmyStrength(hero, creature) and more Empty
PostSubject: Re: [Script System][Suggestions] GetArmyStrength(hero, creature) and more   [Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitime2017-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
Sponsored content





[Script System][Suggestions] GetArmyStrength(hero, creature) and more Empty
PostSubject: Re: [Script System][Suggestions] GetArmyStrength(hero, creature) and more   [Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitime

Back to top Go down
 
[Script System][Suggestions] GetArmyStrength(hero, creature) and more
Back to top 
Page 1 of 1
 Similar topics
-
» [Script System][Suggestions] MakeCreatureVanish(creature) and more
» [Script System][Suggestions] GetCreatureQuantityInGarrison(town, creature) and more
» [Script System][Suggestions] GetCreatureGrowth(town, creature) and more
» [Script System][Suggestions] GetCreatureInDwelling(town, creature) and more
» [Script System][Suggestions] MapRemoveArmy(x, y, creature)

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: