英雄无敌5-控制台修改及代码

来源:925游戏时间:2009-06-29

-
使用方法如下:
      第一步: 在安装文件夹下的profiles里找到autoexec.cfg。记事本打开。最后一行。
       加上:setvar dev_console_password = schwinge-des-todes

       改后效果:
//============================================================================
// Startup
mainmenu
setvar dev_console_password = schwinge-des-todes


      第二步:我的文档mygamesHeroes of Might and Magic V名字input.cfg

      打开。找到
// obsolete, but strictly need for compability with some interfaces
bind close_window 'ESC'
bind confirm_action        'ENTER'
bind show_console  '`'(此行自己添加)


     第三步:关键一步。。。。打开游戏。。。进入地图。。。按`键
     输入enable_cheats

      然后会看到诸如使用cheat会失去游戏乐趣的厚道提示云云。。

    然后就可以使用控制台了。

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    另外。有些特殊的功能比如解除战争迷雾和隐藏操作界面什么的。需要自己修改input.cfg

   这里不多说了。奉上我的input.cfg。需要的自行下载。

使用该input.cfg以后,可以:
             
SCROLL键 显示FPS和其它我不懂的参数

CTRL + I   隐藏操作界面,多干净漂亮的画面,全快捷键操作吧.

CTRL+P   障碍物半透明转换,
在地下冒险就不会被上面黑黑的乳钟石挡住了,很好用.

CTRL + W  显示3D模型,纹理贴图都没有了,超快.

CTRL + Y  特殊显示效果,我搞不懂,多按几次就变回正常了.

CTRL + SHIFT + M   清理内存
不知道有没效果,反正我是1G内存的,存取档都很快.(这里引用某人帖子。。。忘记谁的了。。- -b)

还有些很BT的作弊键,比如

//adventure debug
bind adventure_teleport 'CTRL' + 'SHIFT' + 'T       传送
bind adventure_remove_object 'CTRL' + 'D'        移除
//END adventure debug

//combat debug
bind combat_killcreature 'CTRL' + 'D'         杀死生物   
bind combat_creaturegiveturn 'CTRL' + 'F'     进度条
//end combat debug

代码

(1)普通作弊码
"add_skill + 技能名/数字" 可以给选定英雄加技能,例如在控制台中输入:
add_skill Necromancy
这个可以加巫术
或者在后边加数字:
add_skill 19
可以加寻路术。这些数字对应的技能可以用写字板打开datadata.pakscriptsadvmap-startup.lua这个文件察看
注意这个data.pak是个压缩文件,可以用解压软件(winrar,winzip等)把它打开并把想要的文件解压出来。
用这种方法所加的技能数量是可以超出原有限制,虽然不会显示出来,但是效果还在

add_army 种族代码, 是否升级
加生物
种族代码对应如下:
HEAVEN(圣堂) = 0
PRESERVE(森林) = 1
ACADEMY(学院) = 2
DUNGEON(地牢)=  3
NECRO(不死) = 4
INFERNO(炼狱) = 5
例如:
add_army 5, 0
会给英雄加升级前的7种炼狱生物各十(至于原来的兵会怎样?试过就知道了)
add_army 4, 1
加升级后的七种不死生物各十
add_all_spells
使英雄学会所有魔法,不受技能限制(包括使用这些魔法)
set_hero_luck_morale M N
改变英雄的基本运气(M)和士气(N),例如 set_hero_luck_morale 5 3
show_player_money N
显示玩家N所拥有的资源,例如 show_player_money 2
show_hero_mp
Shows detailed movement point stats for currently selected hero - exact quantity, stats for currently plotted path(how many points it'll take).
add_exp N
加经验,例如add_exp 5000
add_money N
加金币1000*N,其他所有资源加N
(2)调用函数
上边的都只算小儿科,下边来点真格的
在data.pak或你所解出来的文件夹里的.lua 、.xdb文件里边你通常会看到一大堆函数,游戏中的所有事件(如征兵,学技能等)都是通过这些函数实现的。开始游戏时这些文件会对游戏进行初始化。然而通过控制台你可以在游戏中调用这些函数,也就是说,只要你知道了这些函数,几乎可以人为的实现在游戏中可能实现的一切
要在游戏中使用这些函数,只要调用控制台,在这些函数前加上@,并使用相关参数就可以了。例如:
文件中有这么一句:
GiveExp("Isabell",5000)
会给Isabell 5000经验(太明显啦!)
那么在控制台里,你可以输入:
@GiveExp("x", y)
会给英雄 x 增加经验值 y
或者更简单的:
@Win()
直接取得胜利
@Loose()
失败
下边列几个比较实用的:
@GiveArtefact("x", y)
给英雄x加上物品y,y可以是物品名或者物品代码,
@TeachHeroSpell("Isabell",SPELL_PHANTOM)
使Isabell学会法术PHANTOM, 也可以用法术代码
@AddHeroSkill('Isabell', 13)
加技能13
@AddHeroCreatures( "Agrael", CREATURE_HELL_HOUND, 1000 );
给Agreal加1000只Hell Hound
@SetTownBuildingLimitLevel('Putor', 13, 1);
设定城镇Putor的建设等级
@OpenCircleFog (0, 0, 0, 9999, PLAYER_x);
给第x位玩家开图(地面)
如果是地底的话
@OpenCircleFog (0, 0, 1, 9999, PLAYER_x);
@SetPlayerResource(PLAYER_1,x,y);
把玩家1的资源x设为y,x对应资源GOLD,WOOD,ORE,GEM,SULFER,MERCURY,CRYSTAL ;y对应数字
@ChangeHeroStat( 'Isabell', STAT_ATTACK, 9999 );
使Isabell的攻击变为9999
@AddHeroWarMachine('Isabell',1)
给英雄加战争机器
这里的部分代码我会在后边列出,当然你最好可以自己去查lua文件,我比较常用/data/script/里边的
注意: 游戏里显示的名称(如英雄名,城镇名等)往往跟在程序里使用的内部名称不一样,对于英雄名,可以用这个命令
@print(GetPlayerHeroes(PLAYER_x))
显示第x位玩家的英雄名。至于其他的,也可以在/data/text/里边查找,不过比较麻烦,希望有高手能解决这个问题
没见过作弊能这么bt的。不过,我喜欢。
这么强大的控制台并不一定要拿来作弊的,比如说在最后大局已定英雄毒孤求拜时,可以放几百条黑龙出来耍耍
又或者让一队地狱犬在清掉一群骷髅后说:“Mmmmm, yummy......”
活活, yy无限啊
当然这个也可以方便制作mod的玩家进行调试,本来就是debug用的
6月2日更新:
@print(GetObjectPos('heroname'))
会显示英雄的坐标
@SetObjectPos('heroname',x,y,0)
瞬移(地面)
@SetObjectPos('heroname',x,y,1)
瞬移(地底)
@CreateMonster('Peasant',CREATURE_PEASANT,100,30,40,1)
在地底坐标(30,40)处放100个农民
附:
技能代码
物品代码
法术代码(这个好像不止法术而已,而且看起来有点恐怖,如果能全部挖掘的话)
英雄属性
兵种及英雄代码
技能代码

-- Skill type IDs
        --
        -- Basic Skills
        SKILL_LOGISTICS = 1
        SKILL_WAR_MACHINES = 2
        SKILL_LEARNING = 3
        SKILL_LEADERSHIP = 4
        SKILL_LUCK = 5
        SKILL_OFFENCE = 6
        SKILL_DEFENCE = 7
        SKILL_SORCERY = 8
        SKILL_DESTRUCTIVE_MAGIC = 9
        SKILL_DARK_MAGIC = 10
        SKILL_LIGHT_MAGIC = 11
        SKILL_SUMMONING_MAGIC = 12
        -- Class skills
        SKILL_TRAINING   = 13
        SKILL_GATING     = 14
        SKILL_NECROMANCY = 15
        SKILL_AVENGER = 16
        SKILL_ARTIFICIER = 17
        SKILL_INVOCATION = 18
        -- Perks
        PERK_PATHFINDING = 19
        PERK_SCOUTING = 20
        PERK_NAVIGATION = 21
        PERK_FIRST_AID = 22
        PERK_BALLISTA = 23
        PERK_CATAPULT = 24
        PERK_INTELLIGENCE = 25
        PERK_SCHOLAR = 26
        PERK_EAGLE_EYE = 27
        PERK_RECRUITMENT = 28
        PERK_ESTATES = 29
        PERK_DIPLOMACY = 30
        PERK_RESISTANCE = 31
        PERK_LUCKY_STRIKE = 32
        PERK_FORTUNATE_ADVENTURER = 33
        PERK_TACTICS = 34
        PERK_ARCHERY = 35
        PERK_FRENZY = 36
        PERK_PROTECTION = 37
        PERK_EVASION = 38
        PERK_TOUGHNESS = 39
        PERK_MYSTICISM = 40
        PERK_WISDOM = 41
        PERK_ARCANE_TRAINING = 42
        PERK_MASTER_OF_ICE = 43
        PERK_MASTER_OF_FIRE = 44
        PERK_MASTER_OF_LIGHTNINGS = 45
        PERK_MASTER_OF_CURSES = 46
        PERK_MASTER_OF_MIND = 47
        PERK_MASTER_OF_SICKNESS = 48
        PERK_MASTER_OF_BLESSING = 49
        PERK_MASTER_OF_ABJURATION = 50
        PERK_MASTER_OF_WRATH = 51
        PERK_MASTER_OF_QUAKES = 52
        PERK_MASTER_OF_CREATURES = 53
        PERK_MASTER_OF_ANIMATION = 54
        -- Knight perks
        PERK_HOLY_CHARGE = 55
        PERK_PRAYER = 56
        PERK_EXPERT_TRAINER = 57
        -- Demonlord perks
        PERK_CONSUME_CORPSE = 58
        PERK_DEMONIC_FIRE = 59
        PERK_DEMONIC_STRIKE = 60
        -- Necromancer perks
        PERK_RAISE_ARCHERS          = 61
        PERK_NO_REST_FOR_THE_WICKED = 62
        PERK_DEATH_SCREAM           = 63
        -- Ranger perks
        PERK_MULTISHOT = 64
        PERK_SNIPE_DEAD = 65
        PERK_IMBUE_ARROW = 66
        -- Wizard perks
        PERK_MAGIC_BOND = 67
        PERK_MELT_ARTIFACT = 68
        PERK_MAGIC_MIRROR = 69
        -- Warlock perks
        PERK_EMPOWERED_SPELLS = 70
        PERK_DARK_RITUAL = 71
        PERK_ELEMENTAL_VISION = 72
        -- Feats
        -- Knight
        KNIGHT_FEAT_ROAD_HOME = 73
        KNIGHT_FEAT_TRIPLE_BALLISTA = 74
        KNIGHT_FEAT_ENCOURAGE = 75
        KNIGHT_FEAT_RETRIBUTION = 76
        KNIGHT_FEAT_HOLD_GROUND = 77
        KNIGHT_FEAT_GUARDIAN_ANGEL = 78
        KNIGHT_FEAT_STUDENT_AWARD = 79
        KNIGHT_FEAT_GRAIL_VISION = 80
        KNIGHT_FEAT_CASTER_CERTIFICATE = 81
        KNIGHT_FEAT_ANCIENT_SMITHY = 82
        KNIGHT_FEAT_PARIAH = 83
        KNIGHT_FEAT_ELEMENTAL_BALANCE = 84
        KNIGHT_FEAT_ABSOLUTE_CHARGE = 85
        -- Demon Lord
        DEMON_FEAT_QUICK_GATING = 86
        DEMON_FEAT_MASTER_OF_SECRETS = 87
        DEMON_FEAT_TRIPLE_CATAPULT = 88
        DEMON_FEAT_GATING_MASTERY = 89
        DEMON_FEAT_CRITICAL_GATING = 90
        DEMON_FEAT_CRITICAL_STRIKE = 91
        DEMON_FEAT_DEMONIC_RETALIATION = 92
        DEMON_FEAT_EXPLODING_CORPSES = 93
        DEMON_FEAT_DEMONIC_FLAME = 94
        DEMON_FEAT_WEAKENING_STRIKE = 95
        DEMON_FEAT_FIRE_PROTECTION = 96
        DEMON_FEAT_FIRE_AFFINITY = 97
        DEMON_FEAT_ABSOLUTE_GATING = 98
        -- Necromancer
        NECROMANCER_FEAT_DEATH_TREAD = 99
        NECROMANCER_FEAT_LAST_AID = 100
        NECROMANCER_FEAT_LORD_OF_UNDEAD = 101
        NECROMANCER_FEAT_HERALD_OF_DEATH = 102
        NECROMANCER_FEAT_DEAD_LUCK = 103
        NECROMANCER_FEAT_CHILLING_STEEL = 104
        NECROMANCER_FEAT_CHILLING_BONES = 105
        NECROMANCER_FEAT_SPELLPROOF_BONES = 106
        NECROMANCER_FEAT_DEADLY_COLD = 107
        NECROMANCER_FEAT_SPIRIT_LINK = 108
        NECROMANCER_FEAT_TWILIGHT = 109
        NECROMANCER_FEAT_HAUNT_MINE = 110
        NECROMANCER_FEAT_ABSOLUTE_FEAR = 111
        -- Ranger
        RANGER_FEAT_DISGUISE_AND_RECKON = 112
        RANGER_FEAT_IMBUE_BALLISTA = 113
        RANGER_FEAT_CUNNING_OF_THE_WOODS = 114
        RANGER_FEAT_FOREST_GUARD_EMBLEM = 115
        RANGER_FEAT_ELVEN_LUCK = 116
        RANGER_FEAT_FOREST_RAGE = 117
        RANGER_FEAT_LAST_STAND = 118
        RANGER_FEAT_INSIGHTS = 119
        RANGER_FEAT_SUN_FIRE = 120
        RANGER_FEAT_SOIL_BURN = 121
        RANGER_FEAT_STORM_WIND = 122
        RANGER_FEAT_FOG_VEIL = 123
        RANGER_FEAT_ABSOLUTE_LUCK = 124
        -- Wizard
        WIZARD_FEAT_MARCH_OF_THE_MACHINES = 125
        WIZARD_FEAT_REMOTE_CONTROL = 126
        WIZARD_FEAT_ACADEMY_AWARD = 127
        WIZARD_FEAT_ARTIFICIAL_GLORY = 128
        WIZARD_FEAT_SPOILS_OF_WAR = 129
        WIZARD_FEAT_WILDFIRE = 130
        WIZARD_FEAT_SEAL_OF_PROTECTION = 131
        WIZARD_FEAT_COUNTERSPELL = 132
        WIZARD_FEAT_MAGIC_CUSHION = 133
        WIZARD_FEAT_SUPRESS_DARK  = 134
        WIZARD_FEAT_SUPRESS_LIGHT  = 135
        WIZARD_FEAT_UNSUMMON  = 136
        WIZARD_FEAT_ABSOLUTE_WIZARDY = 137
        -- warlock
        WARLOCK_FEAT_TELEPORT_ASSAULT = 138
        WARLOCK_FEAT_SHAKE_GROUND = 139
        WARLOCK_FEAT_DARK_REVELATION = 140
        WARLOCK_FEAT_FAST_AND_FURIOUS = 141
        WARLOCK_FEAT_LUCKY_SPELLS = 142
        WARLOCK_FEAT_POWER_OF_HASTE = 143
        WARLOCK_FEAT_POWER_OF_STONE = 144
        WARLOCK_FEAT_CHAOTIC_SPELLS = 145
        WARLOCK_FEAT_SECRETS_OF_DESTRUCTION = 146
        WARLOCK_FEAT_PAYBACK = 147
        WARLOCK_FEAT_ELITE_CASTERS = 148
        WARLOCK_FEAT_ELEMENTAL_OVERKILL        = 149
        WARLOCK_FEAT_ABSOLUTE_CHAINS = 150
物品代码:     
                     ARTIFACT_SWORD_OF_RUINS = 1
        ARTIFACT_GREAT_AXE_OF_GIANT_SLAYING = 2
        ARTIFACT_WAND_OF_X = 3
        ARTIFACT_UNICORN_HORN_BOW = 4
        ARTIFACT_TITANS_TRIDENT = 5
        ARTIFACT_STAFF_OF_VEXINGS = 6
        ARTIFACT_SHACKLES_OF_WAR = 7
        ARTIFACT_FOUR_LEAF_CLOVER = 8
        ARTIFACT_ICEBERG_SHIELD = 9
        ARTIFACT_GOLDEN_SEXTANT = 10
        ARTIFACT_CROWN_OF_COURAGE = 11
        ARTIFACT_CROWN_OF_MANY_EYES = 12
        ARTIFACT_PLATE_MAIL_OF_STABILITY = 13
        ARTIFACT_BREASTPLATE_OF_PETRIFIED_WOOD = 14
        ARTIFACT_PEDANT_OF_MASTERY = 15
        ARTIFACT_NECKLACE_OF_BRAVERY = 16
        ARTIFACT_WEREWOLF_CLAW_NECKLACE = 17
        ARTIFACT_EVERCOLD_ICICLE = 18
        ARTIFACT_NECKLACE_OF_POWER = 19
        ARTIFACT_RING_OF_LIGHTING_PROTECTION = 20
        ARTIFACT_RING_OF_LIFE = 21
        ARTIFACT_RING_OF_HASTE = 22
        ARTIFACT_NIGHTMARISH_RING = 23
        ARTIFACT_BOOTS_OF_SPEED = 24
        ARTIFACT_GOLDEN_HORSESHOE = 25
        ARTIFACT_WAYFARER_BOOTS = 26
        ARTIFACT_BOOTS_OF_INTERFERENCE = 27
        ARTIFACT_ENDLESS_SACK_OF_GOLD = 28
        ARTIFACT_ENDLESS_BAG_OF_GOLD = 29
        ARTIFACT_ANGEL_WINGS = 30
        ARTIFACT_LION_HIDE_CAPE = 31
        ARTIFACT_PHOENIX_FEATHER_CAPE = 32
        ARTIFACT_CLOAK_OF_MOURNING = 33
        ARTIFACT_HELM_OF_ENLIGHTMENT = 34
        ARTIFACT_CHAIN_MAIL_OF_ENLIGHTMENT = 35
        ARTIFACT_DRAGON_SCALE_ARMOR = 36
        ARTIFACT_DRAGON_SCALE_SHIELD = 37
        ARTIFACT_DRAGON_BONE_GRAVES = 38
        ARTIFACT_DRAGON_WING_MANTLE = 39
        ARTIFACT_DRAGON_TEETH_NECKLACE = 40
        ARTIFACT_DRAGON_TALON_CROWN = 41
        ARTIFACT_DRAGON_EYE_RING = 42
        ARTIFACT_DRAGON_FLAME_TONGUE = 43
        ARTIFACT_ROBE_OF_MAGI = 44
        ARTIFACT_STAFF_OF_MAGI = 45
        ARTIFACT_CROWN_OF_MAGI = 46
        ARTIFACT_RING_OF_MAGI = 47
        ARTIFACT_DWARVEN_MITHRAL_CUIRASS = 48
        ARTIFACT_DWARVEN_MITHRAL_GREAVES = 49
        ARTIFACT_DWARVEN_MITHRAL_HELMET = 50
        ARTIFACT_DWARVEN_MITHRAL_SHIELD = 51
        ARTIFACT_SCROLL_OF_SPELL_X = 52
        ARTIFACT_GRAAL = 53
        ARTIFACT_BOOTS_OF_LEVITATION = 54
        ARTIFACT_SKULL_HELMET = 55
        ARTIFACT_VALORIOUS_ARMOR = 56
        ARTIFACT_BOOTS_OF_SWIFTNESS = 57
        ARTIFACT_MOONBLADE = 58
        ARTIFACT_RING_OF_CELERITY = 59
        ARTIFACT_BAND_OF_CONJURER = 60
        ARTIFACT_EARTHSLIDERS = 61
        ARTIFACT_RIGID_MANTLE = 62
        ARTIFACT_JINXING_BAND = 63
        ARTIFACT_BONESTUDDED_LEATHER = 64
        ARTIFACT_WISPERING_RING = 65
        ARTIFACT_HELM_OF_CHAOS = 66
        ARTIFACT_TWISTING_NEITHER = 67
        ARTIFACT_SANDALS_OF_THE_SAINT = 68
        ARTIFACT_SHAWL_OF_GREAT_LICH = 69
        ARTIFACT_RING_OF_DEATH = 70
        ARTIFACT_NECROMANCER_PENDANT = 71
        ARTIFACT_FREIDA = 72
        ARTIFACT_RING_OF_THE_SHADOWBRAND = 73
        ARTIFACT_ARTIFACT_EFFECT_COUNT = 74

法术代码:
SPELL_NONE = 0;
    SPELL_MAGIC_ARROW = 1;
    SPELL_MAGIC_FIST = 2;
    SPELL_LIGHTNING_BOLT = 3;
    SPELL_ICE_BOLT = 4;
    SPELL_FIREBALL = 5;
    SPELL_FROST_RING = 6;
    SPELL_CHAIN_LIGHTNING = 7;
    SPELL_METEOR_SHOWER = 8;
    SPELL_IMPLOSION = 9;
    SPELL_ARMAGEDDON = 10;
    SPELL_CURSE = 11;
    SPELL_SLOW = 12;
    SPELL_DISRUPTING_RAY = 13;
    SPELL_PLAGUE = 14;
    SPELL_WEAKNESS = 15;
    SPELL_ABILITY_WEAKNING_STRIKE = 16;
    SPELL_FORGETFULNESS = 17;
    SPELL_BERSERK = 18;
    SPELL_BLIND = 19;
    SPELL_HYPNOTIZE = 20;
    SPELL_UNHOLY_WORD = 21;
    SPELL_UNHOLY_WORD_HIT_EFFECT = 22;
    SPELL_BLESS = 23;
    SPELL_HASTE = 24;
    SPELL_STONESKIN = 25;
    SPELL_DISPEL = 26;
    SPELL_DISPEL_FAIL = 27;
    SPELL_BLOODLUST = 28;
    SPELL_DEFLECT_ARROWS = 29;
    SPELL_DEFLECT_ARROWS_HIT_EFFECT = 30;
    SPELL_ANTI_MAGIC = 31;
    SPELL_TELEPORT = 32;
    SPELL_TELEPORT_FINISH_EFFECT = 33;
    SPELL_CELESTIAL_SHIELD = 34;
    SPELL_HOLY_WORD = 35;
    SPELL_HOLY_WORD_HIT_EFFECT = 36;
    SPELL_ARMAGEDDON_HIT_EFFECT = 37;
    SPELL_LAND_MINE = 38;
    SPELL_WASP_SWARM = 39;
    SPELL_PHANTOM = 40;
    SPELL_EARTHQUAKE = 41;
    SPELL_ANIMATE_DEAD = 42;
    SPELL_SUMMON_ELEMENTALS = 43;
    SPELL_EFFECT_SUMMON_ELEMENTALS_AIR = 44;
    SPELL_EFFECT_SUMMON_ELEMENTALS_EARTH = 45;
    SPELL_EFFECT_SUMMON_ELEMENTALS_FIRE = 46;
    SPELL_EFFECT_SUMMON_ELEMENTALS_WATER = 47;
    SPELL_RESURRECT = 48;
    SPELL_SUMMON_BOAT = 49;
    SPELL_DIMENSION_DOOR = 50;
    SPELL_TOWN_PORTAL = 51;
    SPELL_ENCOURAGE = 52;
    SPELL_HOLY_CHARGE = 53;
    SPELL_PRAYER = 54;
    SPELL_DEMONIC_STRIKE_CAST = 55;
    SPELL_DEMONIC_STRIKE = 56;
    SPELL_CONSUME_CORPSE = 57;
    SPELL_SPIRIT_LINK = 58;
    SPELL_DEATH_SCREAM = 59;
    SPELL_SNIPE_DEAD = 60;
    SPELL_MULTISHOT = 61;
    SPELL_IMBUE_ARROW = 62;
    SPELL_ABILITY_MAGIC_BOND = 63;
    SPELL_ABILITY_MELT_ARTIFACT = 64;
    SPELL_ABILITY_COUNTERSPELL = 65;
    SPELL_ABILITY_UNSUMMON = 66;
    SPELL_ABILITY_DARK_RITUAL = 67;
    SPELL_SKILL_OFFENCE1 = 68;
    SPELL_SKILL_OFFENCE2 = 69;
    SPELL_SKILL_OFFENCE3 = 70;
    SPELL_SKILL_ARCHERY = 71;
    SPELL_SKILL_FRENZY = 72;
    SPELL_SKILL_DEFENCE1 = 73;
    SPELL_SKILL_DEFENCE2 = 74;
    SPELL_SKILL_DEFENCE3 = 75;
    SPELL_SKILL_PROTECTION = 76;
    SPELL_SKILL_EVASION = 77;
    SPELL_SKILL_TOUGHNESS = 78;
    SPELL_SKILL_LUCK1 = 79;
    SPELL_SKILL_LUCK2 = 80;
    SPELL_SKILL_LUCK3 = 81;
    SPELL_SKILL_RESISTANCE = 82;
    SPELL_SKILL_LUCKY_STRIKE = 83;
    SPELL_SKILL_LEADERSHIP1 = 84;
    SPELL_SKILL_LEADERSHIP2 = 85;
    SPELL_SKILL_LEADERSHIP3 = 86;
    SPELL_SKILL_WAR_MACHINES1 = 87;
    SPELL_SKILL_WAR_MACHINES2 = 88;
    SPELL_SKILL_WAR_MACHINES3 = 89;
    SPELL_SKILL_FIRST_AID = 90;
    SPELL_SKILL_BALLISTA = 91;
    SPELL_SKILL_CATAPULT = 92;
    SPELL_SKILL_DEMONIC_FIRE = 93;
    SPELL_SKILL_ELVEN_VOLLEY = 94;
    SPELL_SKILL_MATRON_SALVO = 95;
    SPELL_SKILL_ANCIENT_SMITHY = 96;
    SPELL_SKILL_FIRE_PROTECTION = 97;
    SPELL_SPEC_JOUSTER = 98;
    SPELL_SPEC_PEASANTS = 99;
    SPELL_SPEC_ARCHERS = 100;
    SPELL_SPEC_FOOTMEN = 101;
    SPELL_SPEC_GRIFFINS = 102;
    SPELL_SPEC_ARTILLERYMAN = 103;
    SPELL_SPEC_FURIOUS = 104;
    SPELL_SPEC_BOMBARDIER = 105;
    SPELL_SPEC_IMPREGNABLE = 106;
    SPELL_SPEC_FLAGBEARER_OF_DARKNESS = 107;
    SPELL_SPEC_HOUNDS = 108;
    SPELL_SPEC_SUCCUBUSES = 109;
    SPELL_SPEC_BLADE_MASTER = 110;
    SPELL_SPEC_ELVES = 111;
    SPELL_SPEC_UNICORNS = 112;
    SPELL_SPEC_ELVEN_FURY = 113;
    SPELL_SPEC_FOREST_GUARDIAN = 114;
    SPELL_SPEC_ZOMBIES = 115;
    SPELL_SPEC_VAMPIRES = 116;
    SPELL_SPEC_EMPIRIC = 117;
    SPELL_SPEC_SOULHUNTER = 118;
    SPELL_SPEC_MASTER_OF_ELEMENTS = 119;
    SPELL_SPEC_GREMLINS = 120;
    SPELL_SPEC_GOLEMS = 121;
    SPELL_SPEC_MAGES = 122;
    SPELL_SPEC_PRUDENT = 123;
    SPELL_SPEC_EVASIVE = 124;
    SPELL_SPEC_RIDERS = 125;
    SPELL_SPEC_MATRON_SALVO = 126;
    SPELL_SPEC_SAVAGE = 127;
    SPELL_SPEC_WITCHES = 128;
    SPELL_SPEC_MINOTAURS = 129;
    SPELL_TOWN_OFFENCE_P1 = 130;
    SPELL_TOWN_OFFENCE_M1 = 131;
    SPELL_TOWN_DEFENCE_P1 = 132;
    SPELL_TOWN_DEFENCE_M1 = 133;
    SPELL_TOWN_OFFENCE_DEFENCE_P1 = 134;
    SPELL_TOWN_OFFENCE_DEFENCE_M1 = 135;
    SPELL_TOWN_OFFENCE_P2 = 136;
    SPELL_TOWN_OFFENCE_M2 = 137;
    SPELL_TOWN_DEFENCE_P2 = 138;
    SPELL_TOWN_DEFENCE_M2 = 139;
    SPELL_TOWN_OFFENCE_DEFENCE_P2 = 140;
    SPELL_TOWN_OFFENCE_DEFENCE_M2 = 141;
    SPELL_TOWN_LUCK_P1 = 142;
    SPELL_TOWN_LUCK_M1 = 143;
    SPELL_TOWN_MORALE_P1 = 144;
    SPELL_TOWN_MORALE_M1 = 145;
    SPELL_TOWN_ELVEN_CAPITAL = 146;
    SPELL_TOWN_WALLS = 147;
    SPELL_TOWN_TOWERS = 148;
    SPELL_TOWN_UNHOLY_TEMPLE = 149;
    SPELL_TOWN_DARK_GUARDIAN = 150;
    SPELL_TOWN_SPARKLING_FOUNTAIN = 151;
    SPELL_TOWN_DIETY_OF_FIRE = 152;
    SPELL_TOWN_INFERNAL_LOOM = 153;
    SPELL_ABILITY_BATTLE_DIVE = 154;
    SPELL_ABILITY_BATTLE_DIVE_FINISH = 155;
    SPELL_ABILITY_LAY_HANDS = 156;
    SPELL_ABILITY_RESURRECT_ALLIES = 157;
    SPELL_ABILITY_SCATTER_SHOT = 158;
    SPELL_ABILITY_GATING = 159;
    SPELL_ABILITY_FEAR = 160;
    SPELL_ABILITY_SUMMON_BALOR = 161;
    SPELL_ABILITY_EXPLOSION = 162;
    SPELL_ABILITY_EXPLOSION_EFFECT = 163;
    SPELL_ABILITY_CHAIN_SHOT_END_EFFECT = 164;
    SPELL_ABILITY_MANA_DESTROY = 165;
    SPELL_ABILITY_MANA_STEAL = 166;
    SPELL_ABILITY_LIFE_DRAIN = 167;
    SPELL_ABILITY_MANA_DRAIN = 168;
    SPELL_ABILITY_DEATH_CLOUD = 169;
    SPELL_ABILITY_HARM_TOUCH = 170;
    SPELL_ABILITY_MANA_FEED = 171;
    SPELL_ABILITY_ENTANGLING_ROOTS = 172;
    SPELL_ABILITY_REPAIR = 173;
    SPELL_ABILITY_RANDOM_CAST_DARK = 174;
    SPELL_ABILITY_RANDOM_CAST_DARK_LIGHT = 175;
    SPELL_ABILITY_DASH = 176;
    SPELL_ABILITY_DASH_EFFECT = 177;
    SPELL_REMOTE_CONTROL = 178;
    SPELL_EFFECT_ARMOR_CRUSHING = 179;
    SPELL_ABILITY_POISONOUS_ATTACK = 180;
    SPELL_LIZARD_BITE_HIT = 181;
    SPELL_EFFECT_REGENRATION = 182;
    SPELL_EFFECT_REBIRTH = 183;
    SPELL_ABILITY_FROST_BREATH = 184;
    SPELL_EFFECT_BAD_LUCK = 185;
    SPELL_EFFECT_GOOD_LUCK = 186;
    SPELL_EFFECT_BAD_MORALE = 187;
    SPELL_EFFECT_GOOD_MORALE = 188;
    SPELL_EFFECT_FIRST_AID_TENT_HEAL = 189;
    SPELL_EFFECT_CLERIC_HIT = 190;
    SPELL_EFFECT_COMBAT_HIT_00 = 191;
    SPELL_EFFECT_COMBAT_HIT_01 = 192;
    SPELL_EFFECT_COMBAT_HIT_02 = 193;
    SPELL_EFFECT_WAR_MACHINE_HIT = 194;
    SPELL_EFFECT_FIRST_AID_HIT = 195;
    SPELL_EFFECT_FIRE_HIT = 196;
    SPELL_EFFECT_BASH_HIT = 197;
    SPELL_EFFECT_SUN_FIRE = 198;
    SPELL_EFFECT_SOIL_BURN = 199;
    SPELL_EFFECT_CATAPULT_CHARGE_EXPLOSION = 200;
    SPELL_EFFECT_FROZEN = 201;
    SPELL_EFFECT_FIRE_DAMAGE = 202;
    SPELL_EFFECT_LAND_MINE_EXPLOSION = 203;
    SPELL_EFFECT_PHANTOM_OUT = 204;
    SPELL_EFFECT_FIRE_SHIELD = 205;
    SPELL_EFFECT_DIMENSION_DOOR_END = 206;
    SPELL_SKILL_CHILLING_BONES = 207;
    SPELL_DEBUG_TELEPORT = 208;
    SPELL_ABILITY_ENRAGED = 209;
    SPELL_MASS_CURSE = 210;
    SPELL_MASS_DISRUPTING_RAY = 211;
    SPELL_MASS_SLOW = 212;
    SPELL_MASS_FORGETFULNESS = 213;
    SPELL_MASS_PLAGUE = 214;
    SPELL_MASS_WEAKNESS = 215;
    SPELL_MASS_BLESS = 216;
    SPELL_MASS_DISPEL = 217;
    SPELL_MASS_STONESKIN = 218;
    SPELL_MASS_DEFLECT_ARROWS = 219;
    SPELL_MASS_BLOODLUST = 220;
    SPELL_MASS_HASTE = 221;
    SPELL_ABILITY_CALL_LIGHTNING = 222;
    SPELL_EMPOWERED_MAGIC_ARROW = 223;
    SPELL_EMPOWERED_MAGIC_FIST = 224;
    SPELL_EMPOWERED_LIGHTNING_BOLT = 225;
    SPELL_EMPOWERED_ICE_BOLT = 226;
    SPELL_EMPOWERED_FIREBALL = 227;
    SPELL_EMPOWERED_FROST_RING = 228;
    SPELL_EMPOWERED_CHAIN_LIGHTNING = 229;
    SPELL_EMPOWERED_METEOR_SHOWER = 230;
    SPELL_EMPOWERED_IMPLOSION = 231;
    SPELL_EMPOWERED_ARMAGEDDON = 232;
    SPELL_EMPOWERED_STONE_SPIKES = 233;
    SPELL_SUMMON_CREATURES = 234;
    SPELL_CONJURE_PHOENIX = 235;
    SPELL_FIREWALL = 236;
    SPELL_STONE_SPIKES = 237;
        SPELL_UBER_CHAIN_LIGHTNING = 238;
        SPELL_DEMON_SOVEREIGN_FX = 239;

英雄属性
   STAT_EXPERIENCE = 0
    STAT_ATTACK = 1
    STAT_DEFENCE = 2
    STAT_SPELL_POWER = 3
    STAT_KNOWLEDGE = 4
    STAT_LUCK = 5
    STAT_MORALE = 6
    STAT_MOVE_POINTS = 7
    STAT_MANA_POINTS = 8
兵种及英雄代码
Academy(学院)
Console name / Real name
Astral / Nur
Calid / Grawl
Efion / Alastor
Isher / Razzak
Nur / Nathir
Razzak / Narxes
Sufi / Jhora
Tan / Galib
Timerkhan / Temkhan
Creature ID / Creature name
57 = Gremlin
59 = Stone Gargoyle
61 = Iron Golem
63 = Mage
65 = Djinn
67 = Rakshasa Rani
69 = Colossus
Dungeon(地牢)
Console name / Real name
Almegir / Yrbeth
Dalom / Lethos
Ferigl / Sorgal
Inagost / Sinitar
Kelodin / Shadya
Menel / Kythra
Ohtar / Ohtar
Ohtarig / Vayshan
Urunir / Yrwanna
Creature ID / Creature name
71 = Scout
73 = Blood maiden
75 = Minotaur
77 = Dark Raider
79 = Hydra
81 = Shadow Witch
83 = Shadow Dragon
Haven(圣堂)
Console name / Real name
Axel / Freyda
Brem / Rutger
Christian / Vittorio
Isabell / Isabel
Mardigo / Laszlo
Nathaniel / Ellaine
Orrin / Dougal
Sarge / Klaus
Ving / Irina
Creature ID / Creature name
01 = Peasant
03 = Archer
05 = Footman
07 = Griffin
09 = Priest
11 = Cavalier
13 = Angel
Inferno(炼狱)
Console name / Real name
Calid / Grawl
Deleb / Deleb
Efion / Alastor
Jazaz / Nebiros
Marder / Marbas
Nymus / Nymus
Oddrema / Jezebeth
Creature ID / Creature name
15 = Imp
17 = Horned demon
19 = Hell hound
21 = Succubus
23 = Hell Charger
25 = Pit Fiend
27 = Devil
Necropolis(墓地)
Console name / Real name
Aberrar / Zoltan
Berein / Markal
Effig / Raven
Gles / Kaspar
Muscip / Naadir
Nemor / Deirdre
Nikolay / Nicolai
Pelt / Vladimir
Straker / Orson
Tamika / Lucretia
Creature ID / Creature name
29 = Skeleton
31 = Zombie
33 = Ghost
35 = Vampire
37 = Lich
39 = Wight
41 = Bone Dragon
Sylvan(森林)
Console name / Real name
Diraya / Dirael
Elleshar / Vinrael
Gillion / Gilraen
Heam / Findan
Ildar / Alaron
Itil / Ylthin
Linaas / Wyngaal
Metlirn / Anwen
Nadaur / Talanar
Creature ID / Creature name
43 = Pixie
45 = Blade dancer
47 = Hunter
49 = Druid
51 = Unicorn
53 = Treant
55 = Green Dragon
所有英雄技能代码
后勤(Logistics)
                                <Item>HERO_SKILL_LOGISTICS</Item>
战争机器(War Machines)
                                <Item>HERO_SKILL_WAR_MACHINES</Item>
学习(Learning)
                                <Item>HERO_SKILL_LEARNING</Item>
领导(Leadership)
                                <Item>HERO_SKILL_LEADERSHIP</Item>
幸运(Luck)
                                <Item>HERO_SKILL_LUCK</Item>
进攻(Offence)
                                <Item>HERO_SKILL_OFFENCE</Item>
防御(Defence)
                                <Item>HERO_SKILL_DEFENCE</Item>
巫术(Sorcery)
                                <Item>HERO_SKILL_SORCERY</Item>
破坏魔法(Destructive Magic)
                                <Item>HERO_SKILL_DESTRUCTIVE_MAGIC</Item>
黑暗魔法(Dark Magic)
                                <Item>HERO_SKILL_DARK_MAGIC</Item>
光明魔法(Light Magic)
                                <Item>HERO_SKILL_LIGHT_MAGIC</Item>
召唤魔法(Summoning Magic)
                                <Item>HERO_SKILL_SUMMONING_MAGIC</Item>
骑士技能
                                <Item>HERO_SKILL_TRAINING</Item>
恶魔技能
                                <Item>HERO_SKILL_GATING</Item>
不死技能
                                <Item>HERO_SKILL_NECROMANCY</Item>
游侠技能
                                <Item>HERO_SKILL_AVENGER</Item>
术士技能
                                <Item>HERO_SKILL_ARTIFICIER</Item>
妖术师技能
                                <Item>HERO_SKILL_INVOCATION</Item>
探路(Pathfinding)
                                <Item>HERO_SKILL_PATHFINDING</Item>
侦察(Scouting)
                                <Item>HERO_SKILL_SCOUTING</Item>
领航(Navigation)
                                <Item>HERO_SKILL_NAVIGATION</Item>
急救(First Aid)
                                <Item>HERO_SKILL_FIRST_AID</Item>
弩车(Ballista)
                                <Item>HERO_SKILL_BALLISTA</Item>
炮手(Cannoneer)
                                <Item>HERO_SKILL_CATAPULT</Item>
理解(Intelligence)
                                <Item>HERO_SKILL_INTELLIGENCE</Item>
学者(Scholar)
                                <Item>HERO_SKILL_SCHOLAR</Item>
鹰眼(Arcane Intuition)
                                <Item>HERO_SKILL_EAGLE_EYE</Item>
募兵(Recruitment)
                                <Item>HERO_SKILL_RECRUITMENT</Item>
理财(Estates)
                                <Item>HERO_SKILL_ESTATES</Item>
外交(Diplomacy)
                                <Item>HERO_SKILL_DIPLOMACY</Item>
抗魔(Magic Resistance)
                                <Item>HERO_SKILL_RESISTANCE</Item>
士兵之幸(Soldier`s Luck)
                                <Item>HERO_SKILL_LUCKY_STRIKE</Item>
丰富资源(Resourcefulness)
                                <Item>HERO_SKILL_FORTUNATE_ADVENTURER</Item>
战术(Tactics)
                                <Item>HERO_SKILL_TACTICS</Item>
箭术(Archery)
                                <Item>HERO_SKILL_ARCHERY</Item>
战争狂(Battle Frenzy)
                                <Item>HERO_SKILL_FRENZY</Item>
保护(Protection)
                                <Item>HERO_SKILL_PROTECTION</Item>
躲避(Evasion)
                                <Item>HERO_SKILL_EVASION</Item>
活力(Vitality)
                                <Item>HERO_SKILL_TOUGHNESS</Item>
MAMA REGENERATION
                                <Item>HERO_SKILL_MYSTICISM</Item>
MAGIC INSIGHT
                                <Item>HERO_SKILL_WISDOM</Item>
ARCANE TRAINING
                                <Item>HERO_SKILL_ARCANE_TRAINING</Item>
MASTER_OF_ICE
                                <Item>HERO_SKILL_MASTER_OF_ICE</Item>
MASTER_OF_FIRE
                                <Item>HERO_SKILL_MASTER_OF_FIRE</Item>
MASTER_OF_LIGHTNINGS
                                <Item>HERO_SKILL_MASTER_OF_LIGHTNINGS</Item>
MASTER_OF_CURSES
                                <Item>HERO_SKILL_MASTER_OF_CURSES</Item>
MASTER_OF_MIND
                                <Item>HERO_SKILL_MASTER_OF_MIND</Item>
MASTER_OF_PAIN
                                <Item>HERO_SKILL_MASTER_OF_SICKNESS</Item>
MASTER_OF_BLESSING
                                <Item>HERO_SKILL_MASTER_OF_BLESSING</Item>
MASTER_OF_BLESSING
                                <Item>HERO_SKILL_MASTER_OF_ABJURATION</Item>
MASTER_OF_WRATH
                                <Item>HERO_SKILL_MASTER_OF_WRATH</Item>
MASTER_OF_EARTHBLOOD
                                <Item>HERO_SKILL_MASTER_OF_QUAKES</Item>
MASTER_OF_CONJURATION
                                <Item>HERO_SKILL_MASTER_OF_CREATURES</Item>
MASTER_OF_LIFE
                                <Item>HERO_SKILL_MASTER_OF_ANIMATION</Item>
复仇打击 RETALIATION STRIKE
                                <Item>HERO_SKILL_HOLY_CHARGE</Item>
祈福仪式 BENEDICTION
                                <Item>HERO_SKILL_PRAYER</Item>
训练专家 EXPERT TRAINER
                                <Item>HERO_SKILL_EXPERT_TRAINER</Item>
熔毁尸体 CONSUME CORPSE
                                <Item>HERO_SKILL_CONSUME_CORPSE</Item>
地狱烈火 HELLFIRE
                                <Item>HERO_SKILL_DEMONIC_FIRE</Item>
恶魔标靶 MARK OF THE DAMNED
                                <Item>HERO_SKILL_DEMONIC_STRIKE</Item>
骷髅射手 SKELETON ARCHERS
                                <Item>HERO_SKILL_RAISE_ARCHERS</Item>
永恒奴役 ETERNAL SERVITUDE
                                <Item>HERO_SKILL_NO_REST_FOR_THE_WICKED</Item>
女妖嚎叫 BANSHEE HOWL
                                <Item>HERO_SKILL_DEATH_SCREAM</Item>
飞蝗箭雨 Rain of Arrows
                                <Item>HERO_SKILL_MULTISHOT</Item>
精准射击 Deadeye shot
                                <Item>HERO_SKILL_SNIPE_DEAD</Item>
注魔箭矢 IMBUE_ARROW
                                <Item>HERO_SKILL_IMBUE_ARROW</Item>
术士标靶 MARK OF THE WIZARD
                                <Item>HERO_SKILL_MAGIC_BOND</Item>
熔毁宝物 CONSUME ARTIFACE
                                <Item>HERO_SKILL_MELT_ARTIFACT</Item>
魔镜 MAGIC MIRROR
                                <Item>HERO_SKILL_MAGIC_MIRROR</Item>
法术强化 EMPOWERED SPELLS
                                <Item>HERO_SKILL_EMPOWERED_SPELLS</Item>
黑暗仪式 DARK RITUAL
                                <Item>HERO_SKILL_DARK_RITUAL</Item>
元素视角 ELEMENTAL VISION
                                <Item>HERO_SKILL_ELEMENTAL_VISION</Item>
故土 FAMILIAR GRAOUND
                                <Item>HERO_SKILL_ROAD_HOME</Item>
三连弩 TRIPLE BALLISTA
                                <Item>HERO_SKILL_TRIPLE_BALLISTA</Item>
研究者 GRADUATE
                                <Item>HERO_SKILL_ENCOURAGE</Item>
神圣指引 DRIVINE GUIDANCE
                                <Item>HERO_SKILL_RETRIBUTION</Item>
阿萨之泪的视觉 Tear of Asha Vision
                                <Item>HERO_SKILL_HOLD_GROUND</Item>
守护天使 GUARDIAN ANGEL
                                <Item>HERO_SKILL_GUARDIAN_ANGEL</Item>
研究者 GRADUATE
                                <Item>HERO_SKILL_STUDENT_AWARD</Item>
阿萨之泪的视觉 Tear of Asha Vision
                                <Item>HERO_SKILL_GRAIL_VISION</Item>
神奇美德 Arcance Excellence
                                <Item>HERO_SKILL_CASTER_CERTIFICATE</Item>
炽热天谴(Fiery Wrath)
                                <Item>HERO_SKILL_ANCIENT_SMITHY</Item>
堕落骑士(Fallen Knight)
                                <Item>HERO_SKILL_PARIAH</Item>
元素平衡(Elemental Balance)
                                <Item>HERO_SKILL_ELEMENTAL_BALANCE</Item>
无敌冲锋(Unstoppable Charge)
                                <Item>HERO_SKILL_ABSOLUTE_CHARGE</Item>
敏捷异界门(Swift Gating)
                               

发表评论

最新评论(共1条)

2345市网友

图呢?????

2014-10-12 0

回复@2345网友:

  • 取消