~ 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] MapPutArmy(x, y, creature, quantity) Icon_minitimeby DanilaRud015 2024-07-25, 23:37

» ...to XP run...
[Script System] MapPutArmy(x, y, creature, quantity) Icon_minitimeby Darmani 2024-07-18, 21:34

» fheroes2 General Announcements
[Script System] MapPutArmy(x, y, creature, quantity) Icon_minitimeby sirDranik 2024-07-15, 00:28

» Silence of the Siren (HoMM like scifi game)
[Script System] MapPutArmy(x, y, creature, quantity) Icon_minitimeby Sir Albe 2024-07-13, 08:09

» Songs of Silence (HoMM like game)
[Script System] MapPutArmy(x, y, creature, quantity) Icon_minitimeby Blake01 2024-07-07, 21:12

» Lego Heroes of Might & Magic
[Script System] MapPutArmy(x, y, creature, quantity) Icon_minitimeby Blake01 2024-07-07, 21:00

» 5Kings1Ring
[Script System] MapPutArmy(x, y, creature, quantity) Icon_minitimeby GodRage 2024-07-01, 10:33

Poll
Global announcements should be:
Everlasting, 1 for each project.
[Script System] MapPutArmy(x, y, creature, quantity) Redbar110%[Script System] MapPutArmy(x, y, creature, quantity) Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
[Script System] MapPutArmy(x, y, creature, quantity) Redbar11100%[Script System] MapPutArmy(x, y, creature, quantity) Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
[Script System] MapPutArmy(x, y, creature, quantity) Redbar110%[Script System] MapPutArmy(x, y, creature, quantity) 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] MapPutArmy(x, y, creature, quantity)

Go down 
2 posters
AuthorMessage
Unknown_Hero
Mage
Mage
Unknown_Hero


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

[Script System] MapPutArmy(x, y, creature, quantity) Empty
PostSubject: [Script System] MapPutArmy(x, y, creature, quantity)   [Script System] MapPutArmy(x, y, creature, quantity) Icon_minitime2017-03-06, 01:54

Tested with Ironfist version 1.2.1+ (version of December 15, 2016).

*

MapPutArmy(x, y, creature, quantity)
x: X coordinate on the world map.
y: Y coordinate on the world map.
creature: the creature to be placed on the map.
quantity: the number of creatures.

Places a group of creatures on the world map that you can battle against.

*

Small "bug" for the current version.
With "MapPutArmy(x, y, creature, quantity)" the horizontal axis and the vertical axis are inverted.
The "x" value is used for the vertical axis and the "y" value is used for the horizontal axis unlike for all other uses where the "x" value is used for the horizontal axis and the "y" value is used for the vertical axis.

*

Suggestions:

MapPutArmy(10, 19, CREATURE_ZOMBIE, 0);

Here, it would be really nice if, as in the map editor, the value "0" would generate a random number of Zombies.

*

The mapmaker must know what he is doing when he uses "MapPutArmy", however, I see two cases where he cannot know what is going on:
If a hero is positioned on the square where the group of creatures will be generated with "MapPutArmy".
If a group of wandering creatures was generated with "The month of the creature" on the square where the group of creatures will be generated with "MapPutArmy".

The same cases can also happen with "TeleportHero".

It would be nice to have the possibility to check if the destination square of "MapPutArmy" is occupied either by a troop of wandering creatures or by a hero.

MapIsOccupiedByHero(x, y)
x: X coordinate on the world map.
y: Y coordinate on the world map.

Returns true if there is a hero at this position, false otherwise.

MapIsOccupiedByArmy(x, y)
x: X coordinate on the world map.
y: Y coordinate on the world map.

Returns true if there is a group of creatures at this position, false otherwise.

*

"MapPutArmy" enhanced version:

MapPutArmy(x, y, creature, quantity, group, growth, aggressiveness, morale, luck)
x: X coordinate on the world map.
y: Y coordinate on the world map.
creature: the creature to be placed on the map.
quantity: the number of creatures.
group: determines the number of creature groups at the start of combat.
The number of groups can be set with values from 0 to 5.
- "0" the program automatically selects the number of groups at the start of combat.
- "1" to "5" sets the number of groups from 1 to 5.
growth: determines whether the number of creatures will increase over time, can be set to "0" or "1".
- "0" the group of creatures will never grow.
- "1" the group of creatures will grow at start of the week.
aggressiveness: determines whether the creatures will join the hero, can be:
- "0" for Compliant (will always join).
- "1" for Friendly (will likely join).
- "2" for Aggressive (may join).
- "3" for Hostile (unlikely to join).
- "4" for Savage (will never join).
The default setting is "2" (aggressive), this is also the setting that "Week of the Creature" stacks will have.
morale: determines the level of Morale of the creatures at start of combat, it can eventually be affected according to the situation.
The Morale value can be set from "-3" to "+3", the value "0" being neutral Morale.
luck: determines the level of Luck of the creatures at start of combat, it can eventually be affected according to the situation.
The Luck value can be set from "-3" to "+3", the value "0" being neutral Luck.

***** Updated on March 25, 2017 *****

GetMapArmyCreature(x, y)

GetMapArmyQuantity(x, y)

GetMapArmyGroup(x, y)

GetMapArmyGrowth(x, y)

GetMapArmyAgressiveness(x, y)

GetMapArmyMorale(x, y)

GetMapArmyLuck(x, y)


Last edited by Unknown_Hero on 2017-03-26, 08:56; edited 1 time in total
Back to top Go down
Darmani
Master Modder
Master Modder
Darmani


Messages : 289
Quality Points : 47
Registration Date : 2014-12-27

[Script System] MapPutArmy(x, y, creature, quantity) Empty
PostSubject: Re: [Script System] MapPutArmy(x, y, creature, quantity)   [Script System] MapPutArmy(x, y, creature, quantity) Icon_minitime2017-03-13, 07:56

Noted
Back to top Go down
 
[Script System] MapPutArmy(x, y, creature, quantity)
Back to top 
Page 1 of 1
 Similar topics
-
» [Script System][Suggestions] AddPrimarySkill(hero, skill, quantity, duration) and more
» [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

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: