游侠NETSHOW论坛
标题:
高人请帮我看看这两段代码有什么问题
[打印本页]
作者:
Paradisetree
时间:
2008-11-3 16:55:25
标题:
高人请帮我看看这两段代码有什么问题
我是个编程白痴,只是看完教程后自己慢慢尝试,所以有很多地方弄不明白,希望大家不要骂我。
下方的这一段代码是,地牢英雄(阿格贝斯(Agbeth))的,这个英雄在游戏里的头像有显示错误的问题,请问那位高人能指出问题所在,谢谢~ [attach]1558615[/attach] 游戏画面选择最好是可以解决问题,可是其他的英雄也不需要啊?只有这个英雄有问题~
<?xml version="1.0" encoding="UTF-8"?>
<AdvMapHeroShared>
<Model href="/_(Model)/Heroes/DemonLord_LOD.(Model).xdb#xpointer(/Model)"/>
<AnimSet href="/_(AnimSet)/Heroes/DemonLord_LOD-adv.(AnimSet).xdb#xpointer(/AnimSet)"/>
<blockedTiles/>
<holeTiles/>
<activeTiles>
<Item>
<x>0</x>
<y>0</y>
</Item>
</activeTiles>
<passableTiles/>
<PossessionMarkerTile>
<x>0</x>
<y>0</y>
</PossessionMarkerTile>
<Effect/>
<EffectWhenOwned/>
<messagesFileRef/>
<WaterBased>false</WaterBased>
<ApplyHeroTrace>false</ApplyHeroTrace>
<SoundEffect/>
<flybyMessageFileRef href=""/>
<ObjectTypeFileRef href="/Text/Visibility_Types/Units.txt"/>
<TerrainAligned>false</TerrainAligned>
<FlyPassable>true</FlyPassable>
<AdventureSoundEffect/>
<RazedStatic/>
<Icon128 href="/UI/H5A2/Icons/Heroes/Portrets128x128/Dungeon_Agbeth.(Texture).xdb#xpointer(/Texture)"/>
<InternalName>Agbeth</InternalName>
<Class>HERO_CLASS_WARLOCK</Class>
<Specialization>HERO_SPEC_DARK_ACOLYTE</Specialization>
<PrimarySkill>
<Mastery>MASTERY_BASIC</Mastery>
<SkillID>HERO_SKILL_INVOCATION</SkillID>
</PrimarySkill>
<SpecializationNameFileRef href="/Text/Game/Heroes/Specializations/Dungeon/Dark_Acolyte/Name.txt"/>
<SpecializationDescFileRef href="/Text/Game/Heroes/Specializations/Dungeon/Dark_Acolyte/Description.txt"/>
<SpecializationIcon href="/Textures/HeroScreen/Specializations/Dungeon/Dark_Acolyte.xdb#xpointer(/Texture)"/>
<FaceTexture href="/UI/H5A2/Icons/Heroes/Portrets128x128/Dungeon_Agbeth.(Texture).xdb#xpointer(/Texture)"/>
<FaceTextureSmall href=""/>
<HeroCharacterArena href="/Characters/Heroes/Warlock.(Character).xdb#xpointer(/Character)"/>
<HeroCharacterArenaMelee/>
<HeroCharacterAdventure href="/Characters/Heroes/Warlock_LOD.(Character).xdb#xpointer(/Character)"/>
<HeroIndividualCamera/>
<CombatVisual href="/GameMechanics/CreatureVisual/Heroes/Warlock.xdb#xpointer(/CreatureVisual)"/>
<TownType>TOWN_DUNGEON</TownType>
<Editable>
<NameFileRef href="/Maps/SingleMissions/A2S3/name.1.txt"/>
<BiographyFileRef href="/Maps/SingleMissions/A2S3/bio.txt"/>
<Offence>1</Offence>
<Defence>0</Defence>
<Spellpower>3</Spellpower>
<Knowledge>1</Knowledge>
<skills>
<Item>
<Mastery>MASTERY_BASIC</Mastery>
<SkillID>HERO_SKILL_DARK_MAGIC</SkillID>
</Item>
</skills>
<perkIDs>
<Item>HERO_SKILL_DARK_RITUAL</Item>
</perkIDs>
<spellIDs>
<Item>SPELL_MAGIC_ARROW</Item>
</spellIDs>
<Ballista>false</Ballista>
<FirstAidTent>false</FirstAidTent>
<AmmoCart>false</AmmoCart>
<FavoriteEnemies/>
</Editable>
<ArrowButtonState>0</ArrowButtonState>
<Decal/>
<Selection href="/_(Model)/Heroes/Warlock_Path/Symbol.xdb#xpointer(/Model)"/>
<Trace href="/MapObjects/_(AdvMapHeroTraceSet)/Dungeon.xdb#xpointer(/AdvMapHeroTraceSet)"/>
<RaceTraitIcon/>
<RaceTraitDescFileRef href=""/>
<ScenarioHero>false</ScenarioHero>
<AdventureMusic/>
<HideInEditor>false</HideInEditor>
</AdvMapHeroShared>
--------------------------------------------------------------------------------------------------------------------------------------------------------------分割线
下方这段代码是德鲁伊长老的魔法(魔法给养)的代码
<Item>
<Spell>
SPELL_ABILITY_
MANA_FEED</Spell>
<Mastery>MASTERY_ADVANCED</Mastery>
</Item>
为什么红字部分要这样写呢?而不是这样写(
SPELL_MANA_FEED
)
还有下面这样写无法得到
魔法净化(Cleansing)
技能,错在哪里呢,应该怎么写才对呢?
<Item>
<Spell>SPELL_CLEANSING</Spell>
<Mastery>MASTERY_ADVANCED</Mastery>
</Item>
[
本帖最后由 Paradisetree 于 2008-11-3 22:19 编辑
]
作者:
Paradisetree
时间:
2008-11-3 21:46:13
没有达人帮帮我吗?其实我是很想知道多些英5编程的,好似树精MOD其实也有问题,只是自己不懂得修改罢了~
作者:
keyneslin
时间:
2008-11-3 22:49:59
标题:
回復 #1 Paradisetree 的帖子
為什麼紅字部分要這樣寫呢?而不是這樣寫(SPELL_MANA_FEED)
還有下面這樣寫無法得到魔法淨化(Cleansing)技能,錯在哪裡呢,應該怎麼寫才對呢?
SPELL_ABILITY_MANA_FEED = 171;
SPELL_DISPEL= 26; -- Cleansing
請見X:\Ubi Soft\Heroes of Might and Magic V - Tribes of the East\Editor Documentation\HOMM5_IDs_for_Scripts.pdf
欢迎光临 游侠NETSHOW论坛 (https://game.ali213.net/)
Powered by Discuz! X2