Skip to content

Help for the Heroes 4 Map Editor.

User Avatar
#5
Auto-translated
Event Scripts
Build Building: Builds a building in the specified town.
Change Owner: The specified object passes to the control of another player.
Clear Defeat Conditions: Removes the text specified in the Defeat Conditions window of the Scenario Information menu.
Clear Defeat Message: Removes the text that informs the player of their defeat.
Clear Victory Conditions: Removes the text specified in the Victory Conditions window of the Scenario Information menu.
Clear Victory Message: Removes the text that informs the player of their victory.
Battle: Creates an army that enters into battle with the forces of the specified player.
Conditional Actions: Creates a condition script, for example: "If the player owns the specified town, they receive 10,000 gold".
Decrease Current Magic Points: Decreases the current pool of magic points of the specified hero by a given number of units.
Decrease Attack: Decreases the attack value of the specified hero by a given number of units.
Decrease Luck: Decreases the luck of the specified army by a given number of units.
Decrease Defense: Decreases the defense of the specified hero by a given number of units.
Decrease Maximum Magic Points: Decreases the maximum amount of magic points of the specified hero by a given number of units.
Decrease morale: Decreases the morale of the specified army by a given number of units.
Decrease Dwelling Population: Decreases the current population of the specified dwelling by a given number of creatures.
Decrease Speed: Decreases the speed of the specified hero by a given number of units.
Remove Object: Removes the specified object from the map. The 'Bomb' pointer object marks which objects will be removed during the game.
Disable Standard Victory Conditions: Disables standard victory conditions for the specified player.
Show Message: Displays a text message on the screen.
Enable Standard Victory Conditions: Allows the specified player to win by fulfilling the standard victory conditions.
Give Artifacts: Gives the selected artifact(s) to the specified army.
Give Warriors: Gives the selected number of creatures to the specified army.
Give Resources: Gives the selected amount of resources to the specified player.
Give Skill: Teaches the specified hero a given skill.
Give Spell: Teaches the specified hero a given spell.
Increase Mobility: Increases the movement point pool of the specified army.
Increase Magic Point Pool: Increases the current pool of magic points of the specified hero.
Increase Attack: Increases the attack value of the specified hero.
Increase Experience: Increases the experience of the specified hero by a given number of points.
Increase Experience Level: Raises the level of the specified hero.
Increase Luck: Increases the luck of the selected army.
Increase Health: Increases the health points of the selected hero.
Increase Maximum Magic Points: Increases the maximum amount of magic points of the selected hero.
Increase morale: Increases the morale of the selected army.
Increase Creature Growth: Increases the creature growth in a given dwelling.
Increase Skill: The specified hero increases their proficiency level in a given skill.
Increase Speed: Increases the speed value of the specified hero.
Do Nothing: Nothing happens.
Defeat: Leads to the defeat of the specified player.
Ask Question: Allows asking a question that can be answered "yes" or "no", attaching scripts to both answer options.
Remove Script: Removes the specified event script. This should be done at the end of local events so they do not repeat.
Remove Object: Allows removing the selected object from the map.
Sequence: Allows creating a chain of linked scripts that will be executed one after another. Used in most cases.
Set Variable: Allows setting a true/false variable. For example, we set it so that if a player steps on this square, the variable becomes true, and if they step on another square, a script triggers that wasn't there before.
Set Defeat Description: Allows setting text containing the description of defeat conditions.
Set Defeat Message: Allows setting the text that the player will see in case of defeat.
Set Numeric Variable: Allows creating a variable that can track events or count them (for example, armies passing through a certain point). If an army passes through the point 4 times, for instance, the player loses.
Set Victory Description: Allows setting text containing the description of victory conditions.
Set Victory Message: Allows setting the text that the player will see in case of victory.
Take Artifacts: Takes specific artifact(s) from a given army.
Take Warriors: Takes a certain number of warriors from the specified army.
Take Resources: Takes a given amount of resources from the treasury of the specified hero.
Event Trigger: Allows activating a previously defined event.
We will talk about them later.
Victory: Leads to the victory of a specific player.
Boolean (Conditional) Expressions
And: Allows setting multiple conditions for the same event. For example, this particular player AND this particular hero.
Belongs to Faction: Checks if this army belongs to certain factions.
Has Hero: Checks if the required hero is in the ranks of the army.
Can Give Skill: Checks if a hero can learn a specific skill (if there is a free slot for learning).
Equal: Checks if an equals sign can be placed between two expressions. For example, amount of wood equals 30.
False: Checks if this condition is false.
Greater Than: Checks if the first expression is greater than the second.
Greater Than or Equal: Checks if the first expression is greater than or equal to the second. Usually used in quests like "bring 8000 gold". A condition of greater than or equal to 8000 must be set.
Possesses Artifact: Checks if this army possesses the required artifact.
Specific Hero Dead: Checks if a specific hero is dead.
Specific Hero Imprisoned: Checks if a specific hero is in prison.
Less Than: Checks if the first expression is less than the second.
Less Than or Equal: Checks if the first expression is less than or equal to the second.
Not: Allows negating a certain variable, so all conditions except the special one are checked. A player does something, the variable becomes true; if the variable is not true, something else happens.
Or: Allows setting a choice condition where it is sufficient to fulfill either of the two parts.
Player Belongs to Certain Factions: Checks if this player belongs to certain factions.
Player of Specific Color: Determines if this player belongs to the required color.
Computer Player: Checks if this player is a computer player.
Player Destroyed: Checks if all forces of this player have been completely destroyed.
Human Player: Checks if this player is a human player.
Player Possesses Hero: Checks if this player possesses a specific hero.
Player Owns Specific Town: Checks if this player owns a specific town.
True: Checks if this condition is true.
Variable: Allows specifying the name of a variable.
Numeric Expressions
Number of Warriors in Army: Specifies the number of warriors of a certain type in this army.
Current Day: Shows the current date, with the start of the game as the reference point.
Day of Week: Shows the current day of the week; there are seven days in a week, with the start of the game as the reference point.
Divide By: Allows dividing the first expression by the second.
Experience Level: Displays the experience level of this hero.
Proficiency Level: Reflects the hero's proficiency level in a particular skill.
Number: Specifies a specific number.
Amount of Resources: Specifies the number of units of resources of each type.
Minus: Allows subtracting one expression from another.
Month: Shows the current game month, with the starting month of the game as the first.
Negation: Allows creating a negative expression.
Player: Identifies a specific player.
Plus: Allows adding two expressions.
Random Number: Generates a random number. You can set its maximum and minimum possible values.
Remainder: Indicates that there was a remainder when dividing two expressions.
Multiplication: Allows multiplying one expression by another.
Total Number of Warriors in Army: Displays the total number of creatures in this army regardless of their type.
Total Number of Heroes in Army: Displays only the total number of heroes in this army.
Variable: Allows specifying the name of a variable.
Week: Shows the current week, with the start of the game as the reference point.
Week of Month: Specifies the current week of the month; there are four weeks in each month.
Not that short, but it seems everything is clear)
Where do we go?
Where do we end up when we save the world?