~ 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
» [H3SW 0.8.2] Spicy Delivery
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby DanilaRud015 2024-07-25, 23:37

» ...to XP run...
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby Darmani 2024-07-18, 21:34

» fheroes2 General Announcements
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby sirDranik 2024-07-15, 00:28

» Silence of the Siren (HoMM like scifi game)
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby Sir Albe 2024-07-13, 08:09

» Songs of Silence (HoMM like game)
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby Blake01 2024-07-07, 21:12

» Lego Heroes of Might & Magic
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby Blake01 2024-07-07, 21:00

» 5Kings1Ring
[Script System][Suggestions] GetArmyStrength(hero, creature) and more Icon_minitimeby GodRage 2024-07-01, 10:33

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.2 Beta

 

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

Go down 
2 posters
AuthorMessage
Unknown_Hero
Mage
Mage
Unknown_Hero


Messages : 780
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 : 780
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] MapRemoveArmy(x, y, creature)
» [Script System][Suggestions] GetCreatureQuantityInGarrison(town, creature) and more
» [Script System][Suggestions] GetCreatureGrowth(town, creature) and more
» [Script System][Suggestions] GetCreatureInDwelling(town, creature) and more

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: