~ Forums of Enroth ~

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

Share | 
 

 [Script System][Suggestions] GetArmyInSlotCreature(hero, slot) and more

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

Messages : 344
Quality Points : 40
Registration Date : 2015-09-06

PostSubject: [Script System][Suggestions] GetArmyInSlotCreature(hero, slot) and more   2017-03-30, 03:14

GetArmyInSlotCreature(hero, slot)

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

*

GetArmyInSlotQuantity(hero, slot)
slot: the number of the slot in the hero's army inventory. Can be set from "0" to "4".

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

*

SetArmyInSlot(hero, slot, creature, quantity)

Sets the specified quantity of the specified creature in the specified slot of the specified hero's army inventory.
Back to top Go down
XT3RM1N8R
Gargoyle
Gargoyle
avatar

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

PostSubject: How helpful would this be?   2017-04-04, 20:42

Hello,

I'm not sure how a mapmaker would use the information in the Get...() functions. Could you provide an example as to how they may be used? Also, I believe that you can already give a particular creature army to a hero with the GrantArmy(hero, creature, number) function.

Thank You,
XT3RM1N8R

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

Messages : 344
Quality Points : 40
Registration Date : 2015-09-06

PostSubject: Re: [Script System][Suggestions] GetArmyInSlotCreature(hero, slot) and more   2017-04-06, 06:46

These instructions will be used in coordination with the instruction GetArmyStrength(hero, creature) 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).

The GrantArmy(hero, creature, number) function puts the troops in the first empty slot, but does not allow to position the troop in a specific slot.
For example, it is not possible to add the troop to the fifth slot if the hero has only one troop, the troop will be added to the second slot.
Back to top Go down
 
[Script System][Suggestions] GetArmyInSlotCreature(hero, slot) and more
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» [Script System][Suggestions] So, which expressions are the most desirable?
» James Connolly: A Working Class Hero
» One Woman in India dies every hour due to the dowry system
» Minecraft's Coordinate System
» Award 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: