WarKirby
Arty person
ok, having more problems
the spells to take the sword aren't working. My spellinfos.xml
All the references in there are correct, no xml errors on startup. The spells just don't appear for other units in his tile, to take Justice.
I just copied the spells from War and changed some references.
What am I doing wrong?
the spells to take the sword aren't working. My spellinfos.xml
Spoiler :
Code:
<?xml version="1.0"?>
<!-- Created with the FfH editor by Kael -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Spell Infos -->
<Civ4SpellInfos xmlns="x-schema:sabathiel_CIV4UnitSpellSchema.xml">
<SpellInfos>
<SpellInfo> <!-- Take Justice (Promotion) -->
<Type>SPELL_TAKE_JUSTICE_PROMOTION</Type>
<Description>TXT_KEY_SPELL_TAKE_JUSTICE</Description>
<Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
<Help>TXT_KEY_SPELL_TAKE_EQUIPMENT_HELP</Help>
<PromotionInStackPrereq>PROMOTION_JUSTICE</PromotionInStackPrereq>
<bAllowAI>1</bAllowAI>
<iAIWeight>50</iAIWeight>
<bHasCasted>1</bHasCasted>
<bAbility>1</bAbility>
<PyResult>spellTakeEquipmentPromotion(pCaster,'EQUIPMENT_JUSTICE')</PyResult>
<PyRequirement>reqTakeEquipmentPromotion(pCaster,'EQUIPMENT_JUSTICE')</PyRequirement>
<Effect>EFFECT_SPELL1</Effect>
<Sound>AS3D_SPELL_TRAIN</Sound>
<bGraphicalOnly>1</bGraphicalOnly>
<Button>Modules/Sabathiel/Justice.dds</Button>
</SpellInfo>
<SpellInfo> <!-- Take Justice (Unit) -->
<Type>SPELL_TAKE_JUSTICE_UNIT</Type>
<Description>TXT_KEY_SPELL_TAKE_JUSTICE</Description>
<Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
<Help>TXT_KEY_SPELL_TAKE_EQUIPMENT_HELP</Help>
<UnitInStackPrereq>EQUIPMENT_JUSTICE</UnitInStackPrereq>
<bAllowAI>1</bAllowAI>
<iAIWeight>50</iAIWeight>
<bHasCasted>1</bHasCasted>
<AddPromotionType1>PROMOTION_JUSTICE</AddPromotionType1>
<bBuffCasterOnly>1</bBuffCasterOnly>
<bAbility>1</bAbility>
<PyResult>spellTakeEquipmentUnit(pCaster,'EQUIPMENT_JUSTICE')</PyResult>
<PyRequirement>reqTakeEquipmentUnit(pCaster,'EQUIPMENT_JUSTICE')</PyRequirement>
<Effect>EFFECT_SPELL1</Effect>
<Sound>AS3D_SPELL_TRAIN</Sound>
<bGraphicalOnly>1</bGraphicalOnly>
<Button>Modules/Sabathiel/Justice.dds</Button>
</SpellInfo>
</SpellInfos>
</Civ4SpellInfos>
All the references in there are correct, no xml errors on startup. The spells just don't appear for other units in his tile, to take Justice.
I just copied the spells from War and changed some references.
What am I doing wrong?
) is in game, and currently alive. Does this block of code accomplish that, or am I doing it horribly wrong? Don't have time to test it just now.
Put the relevant text in bold.

