<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/feed.php">
        <title>The Modder's Workshop Wiki scripting:advmap</title>
        <description></description>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/</link>
        <image rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/lib/images/favicon.ico" />
       <dc:date>2026-04-30T07:32:48+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:addherocreatures?rev=1182801886"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:addobjectcreatures?rev=1182808118"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:blockgame?rev=1182808256"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:calcheromovecost?rev=1182808390"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:canmovehero?rev=1182808514"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:changeherostat?rev=1182808964"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:createmonster?rev=1182809748"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:deployreservehero?rev=1220778746"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:enableheroai?rev=1221378736"/>
                <rdf:li rdf:resource="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:talkboxforplayers?rev=1225046506"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/lib/images/favicon.ico">
        <title>The Modder's Workshop Wiki</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/</link>
        <url>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:addherocreatures?rev=1182801886">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-25T22:04:46+02:00</dc:date>
        <title>scripting:advmap:addherocreatures</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:addherocreatures?rev=1182801886</link>
        <description>Syntax

AddHeroCreatures(heroname, creatureID, quantity);

Description

Adds a quantity of creatures of creatureID type to the army of the hero heroname. heroname is the hero’s internal name, set when the map is created. The command works regardless of where the hero is: he may be absent from the map (being in a town or among the dead (?)).</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:addobjectcreatures?rev=1182808118">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-25T23:48:38+02:00</dc:date>
        <title>scripting:advmap:addobjectcreatures</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:addobjectcreatures?rev=1182808118</link>
        <description>Syntax

AddObjectCreatures(objectName, creatureID, quantity);

Description

This function adds a quantity of creatures of creatureID type to the army of the object objectName. Creatures can be added to any map object that can have an army (including monsters and heroes). Monsters can only have creatures of the same type that the monster already contains added.</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:blockgame?rev=1182808256">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-25T23:50:56+02:00</dc:date>
        <title>scripting:advmap:blockgame</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:blockgame?rev=1182808256</link>
        <description>Syntax

BlockGame(void);

Description

The command blocks the user interface and the AI work as well as the camera management. This way, the world comes to a stop, and the script remains as the only source of in-game events. The command also stops the running heroes (while preserving their paths). To unblock the game, the UnblockGame() command should be used. Game blocks are accumulated, which means that the game will be unblocked once the number of calls for UnblockGame() will be equal to that …</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:calcheromovecost?rev=1182808390">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-25T23:53:10+02:00</dc:date>
        <title>scripting:advmap:calcheromovecost</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:calcheromovecost?rev=1182808390</link>
        <description>Syntax

CalcHeroMoveCost(heroName, x, y, floorID = -1);

heroName – the hero’s name x, y – the target tile’s coordinates floorID – the floor number (-1 by default, which means the floor in which the hero is located)

Description

This function calculates the hero’s movement cost to the specified point, using movement points as the calculating unit. If the floor is not specified, the one in which the hero is currently located is used. This function can only be invoked for heroes contr…</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:canmovehero?rev=1182808514">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-25T23:55:14+02:00</dc:date>
        <title>scripting:advmap:canmovehero</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:canmovehero?rev=1182808514</link>
        <description>Syntax

CanMoveHero(heroName, x, y, floorID = -1);

heroName – the hero’s name x, y – the target tile’s coordinates floorID – the floor number (-1 by default, which means the floor in which the hero is located)

Description

This function returns true if the specified point can be reached by the hero. Otherwise it returns false. If the floor is not specified, the one in which the hero is currently located is used. This function can only be invoked for heroes controlled by the AI player…</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:changeherostat?rev=1182808964">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-26T00:02:44+02:00</dc:date>
        <title>scripting:advmap:changeherostat</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:changeherostat?rev=1182808964</link>
        <description>Syntax

ChangeHeroStat(heroName, statID, delta);

heroName – the hero’s name statID – the stat’s ID delta – stat modification value

Description

This function modifies the hero’s specified stat by delta. The following stats can be modified: experience, attack, defense, spell power, knowledge, luck, morale, move points, mana points. delta can take on either positive (the stat is increased) or negative (the stat is decreased) values for all stats except experience, since experience ca…</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:createmonster?rev=1182809748">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-26T00:15:48+02:00</dc:date>
        <title>scripting:advmap:createmonster</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:createmonster?rev=1182809748</link>
        <description>Syntax

CreateMonster(monsterName, creatureType, creaturesCount, x, y, floorID, mood=MONSTER_MOOD_AGGRESSIVE, courage=MONSTER_COURAGE_CAN_FLEE_JOIN, rotation=0);

monsterName – name of the monster, which can then be used in other script commands. creatureType – type of creatures that form the monster. creaturesCount – number of creatures that form the monster. x, y – coordinates of the tile onto which the monster is to be placed. floorID – the number of the floor onto which the monster…</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:deployreservehero?rev=1220778746">
        <dc:format>text/html</dc:format>
        <dc:date>2008-09-07T11:12:26+02:00</dc:date>
        <title>scripting:advmap:deployreservehero</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:deployreservehero?rev=1220778746</link>
        <description>Syntax

DeplyReserveHero (heroName, x, y, floorID)

Description

heroName must be hero’s internal name, not descriptive name. x and y coordinates are obvious. for FloorID, 0 meas the surface, 1 is the underground.

This command is useful for singlepayer maps, as instantly spawns the desired hero on the tile with apriopriate coordinates. If the tile is ocupied by another army, the combat will start.</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:enableheroai?rev=1221378736">
        <dc:format>text/html</dc:format>
        <dc:date>2008-09-14T09:52:16+02:00</dc:date>
        <title>scripting:advmap:enableheroai</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:enableheroai?rev=1221378736</link>
        <description>Syntax

EnableHeroAI(heroName,false)

Description

heroName is internal name of the hero controlled by computer
 Second argument takes values true (enable) or false (disable).

Function returns console error as if there was no value of “false” variable. Of course it makes no sense in terms of logic and should be ignored, function does work as desired nontheless.’</description>
    </item>
    <item rdf:about="http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:talkboxforplayers?rev=1225046506">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-26T19:41:46+02:00</dc:date>
        <title>scripting:advmap:talkboxforplayers</title>
        <link>http://www.heroesofmightandmagic.com/heroes5/modding_wiki/scripting:advmap:talkboxforplayers?rev=1225046506</link>
        <description>There’s a new interesting function in 3.1 (undocumented by Nival)

It allows you to create a complex message box with up to 5 options to choose from (and on top of that a ok/cancel button, or just an ok one). Maybe you’ll find it useful for some quests and other things’’</description>
    </item>
</rdf:RDF>
