tesbs tweaked spells

tesb

Emperor
Joined
Jan 16, 2010
Messages
1,593
Motivation:

I never really liked the abundance of Spells from which only a few are used. For one it causes the player to endlessly search through her or his spells in order to find the right one and secondly it forces the player to bring more mages along just keep buffs up, while the mages themselves can't really do anything. With that in Mind i asked Sephi if he could deliver a tag that made spells obsolete and he thankfully delivered.



Introduction:

The module "OsbsoletedbySpell" merges certain spells, once the perquisites for those spells are all met.

For Example:
A mage with the promotions "Enchantment II" and "Nature II" can cast three spells: "Poisoned Blade", "Enchanted Blade" and "Flaming Arrows". With this module the same mage can no longer cast any of those spells, instead he gains a new spell "Adaptive Enchantment" which has the combined effect of all the three spells mentioned above. So if a player has an army and adds reinforcements to it, she or he has no longer to worry what spell to cast, just a click on "Adaptive Enchantment" will give all recon units the promotion "Poisoned Blade", all melee units "Enchanted Blade" and all archers the promotion "Flaming Arrows", while still removing the "Rusted" Promotion.



The merged Spells:

Spoiler :


attachment.php






Current Issues:
None that i know of, if you find any please let me know.



Further Plans:
This Module is deemed complete by me, however if you have issues, further suggestions or requests feel free to post them.


The Module:
Most, if not all spells are merged in the newest version of Wildmana.
So no separate download should be necessary.
 
Hello,

Sounds very promising. I would also like some sort of better interface system for spells.

Not sure if it's possible, but perhaps one can categorize the spells by their spheres. Say, for example, a caster has AirIII/FireII/MetamagicII. Instead of displaying all the spell icons, he can show just 3 icons, one for each of the spheres. When you click one of them, some sort of dropdown list/popup would display all the spells of that category. Again, not sure if this is possible, just doing a little late night brainstorming.
 
i don't know if this is possible either. what i do know is that i can't do it, but i would love to :)
 
:) good to hear

the only problem that may arise is the tag <AddPromotionTypeX>
where X ranges from 1 to 3 (i don't know if can go over three).

If i can only apply 3 Promotions with one spell i need to make new Promotions that is some further work, but should be possible

If you can indeed go over 3 then there are no problems

I have not tried to go over three yet.

As of now, i just wait for sephi to release a new patch with the new tags :whipped: :)


Edit: just tested it and it is not possible to go over 3


Edit 2: @Sephi/Modders if you could add the lines <AddPromotionTypeX> (with X going from 1 to 8, instead of 3) it would not only save me some work but would make this project much more clearly laid out for the player, since my solution would be new promotions that are not really necessary.

Edit 3: just adding <AddPromotionType4> to the spellschema sadly does not cut it alone
 
:) good to hear

the only problem that may arise is the tag <AddPromotionTypeX>
where X ranges from 1 to 3 (i don't know if can go over three).

If i can only apply 3 Promotions with one spell i need to make new Promotions that is some further work, but should be possible

If you can indeed go over 3 then there are no problems

I have not tried to go over three yet.

As of now, i just wait for sephi to release a new patch with the new tags :whipped: :)

tesb,

some of the stuff you are working is past my experience level, but if you create a list of new spell names, then i could make the text tags for those, and with an understanding of them i can make the "help" and "strategy" tags as well if you need.

the coding elements im still a rookie on :bowdown:
 
i don't want to plan too far ahead since it is very well possible that i have to adjust some concepts when i run into problems, like the one above.

what it comes down to is wait for sephi to release the new tag, then i go on coding. i will upload a preview version once this is done and then you can add the tags.

as of now it is all on the drawing board (or rather on a some pieces of paper on my desk) :)
 
i don't want to plan too far ahead since it is very well possible that i have to adjust some concepts when i run into problems, like the one above.

what it comes down to is wait for sephi to release the new tag, then i go on coding. i will upload a preview version once this is done and then you can add the tags.

as of now it is all on the drawing board (or rather on a some pieces of paper on my desk) :)

very good and understood. jsut give me a shout when your ready for me to pitch in, otherwise i will have to force myself to look for those hidden ones in the game.....

its a dirty job but somebodys got to do it..... haha
 
honestly I'd much rather see more spells than merging them. I've always thought ffh2 was lacking in that department when compared to other fantasy TBS games. VERY lacking actually, 3 spells per sphere just doesn't do it for me :lol:
 
technically they are new spells, i can see your point though, but keep in mind that

1)
in dnd you would still cast lower tier spells because you run out of higher tier spells quickly so you need backup, in FfH however there is no reason why you would cast fireball in favor of shooting stars, just to give an example. (also dnd 3.5 has a bit too much spells for my taste and cool ones from 2.x are gone)

2)
the ui is terrible. get an omnipotent archmage and you see what i mean you will scroll through 3-4 lines of spells and most of them you will never use

and since i can't fix the ui or alter game mechanics i try to make it more streamlined without removing anything.
 
:) good to hear

the only problem that may arise is the tag <AddPromotionTypeX>
where X ranges from 1 to 3 (i don't know if can go over three).

If i can only apply 3 Promotions with one spell i need to make new Promotions that is some further work, but should be possible

If you can indeed go over 3 then there are no problems

I have not tried to go over three yet.

As of now, i just wait for sephi to release a new patch with the new tags :whipped: :)


Edit: just tested it and it is not possible to go over 3


Edit 2: @Sephi/Modders if you could add the lines <AddPromotionTypeX> (with X going from 1 to 8, instead of 3) it would not only save me some work but would make this project much more clearly laid out for the player, since my solution would be new promotions that are not really necessary.

Edit 3: just adding <AddPromotionType4> to the spellschema sadly does not cut it alone

I have added AddPromotionType4 and AddPromotionType5. I think in the case of more than 5 promotions its better to pack some of them before. That also helps to make the promotion list screen less crowded ;)
 
[to_xp]Gekko;9107599 said:
honestly I'd much rather see more spells than merging them. I've always thought ffh2 was lacking in that department when compared to other fantasy TBS games. VERY lacking actually, 3 spells per sphere just doesn't do it for me :lol:
it's about 12-15 spells per sphere (alteration, divination, necromancy, elementalism). It's quite a lot if you compare it to other games. I doubt that even Master of Magic had more.
 
ok since sephi was quick in releasing the patch, my first preview batch is ready.


New Spells:

Shadowwalk + Dance of Blades = Shadowstep (requires Shadow 2 and Chaos 1)

Echanted Blade + Flaming Arrows + Poisoned Blade = Adaptive Enchantment (requires Enchantment 2 and Nature 2)(not allowed for cult of esus)

Loyalty + Valor + Courage = Bravery (requires Spirit 1 and Law 3) (not allowed for Cult of Esus)

Spellstaff + Stoneskin = Battle Preparation (requires Enchantment 3 and Earth 2)


Fireball will be replaced by Shooting Stars

Poisoned Blade will be replaced by Poisoned Blade (A second Version that requires of the caster to be following the cult of esus)

Notes:
1) the biggest obstacles are:
<PromotionPrereqX> only 2 (this is minor)
<AddPromotionTypeX> only 3 (this is a bigger pain) -- Edit: did not read sephis post was busy programming nothing to see here :)

2) there are some issues with cult of esus, when you look at Adaptive Enchantment the first two spells are locked for the cult, while the last one is not.
I did create a workaround: if you are a follower of the cult of esus and have a nature 2 mage then everything will be fine. if you have a mage with nature 2 and enchantment 2 you can only cast poisoned blade, if that mage follows the cult of esus.
If someone finds a better workaround let me know, although this should be fine.



@Sephi

3) and this is rather important: an spell that got obsoleted by it's successor still shows up, although you can't cast it (the autocast is not darkened)
just look at the picture in the attachment.




4) the spell blur is obsoleted by shadowwalk, yet i can not find this in the actual code o.O (i can find that scorch obsoletes spring in the code though). how did you manage that is still works?

Spoiler :
Code:
<SpellInfo>
            <Type>SPELL_BLUR</Type>
            <Description>TXT_KEY_SPELL_BLUR</Description>
            <Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
            <PromotionPrereq1>PROMOTION_SHADOW1</PromotionPrereq1>
            <bAllowAI>1</bAllowAI>
            <bAllowAuto>1</bAllowAuto>						
            <bDisplayWhenDisabled>1</bDisplayWhenDisabled>
            <bHasCasted>1</bHasCasted>
            <AddPromotionType1>PROMOTION_BLUR</AddPromotionType1>
            <Effect>EFFECT_SPELL1</Effect>
            <Sound>AS3D_SPELL_CHARM_PERSON</Sound>
            <Button>, ,Art/Interface/Buttons/Promotions/Promotions_Atlas1.dds,1,2</Button>
        </SpellInfo>



5) (last edit i swear) it is not possible to merge hope, inspiration and wall of stone since you can only add one "building" a time with the current *.xml code



if you want to try the new mechanics install the files below.
All modified/new files are already in their respective place
 
ok i am finally done editing the above post, you may read it now without fear of changing before your eyes :)
 
yeah go ahead.
i suggest you try it out first most is pretty much self-explanatory.

there are still some spells on the drawing board that did not make it in the first batch, but the fundament is laid.
 
yeah go ahead.
i suggest you try it out first most is pretty much self-explanatory.

there are still some spells on the drawing board that did not make it in the first batch, but the fundament is laid.

i will make the tag files as you post them like below

after i finish this first batch, i will post here for you and Sephi to review
 
tesb/sephi

below are the tag files for the four new spells for your review (they are cut/edited from the comlete xml tabs)

Spoiler :
<TEXT>
<Tag>TXT_KEY_SPELL_SHADOWSTEP</Tag>
<English>Shadowstep</English>

<Tag>TXT_KEY_SPELL_SHADOWSTEP_HELP</Tag>
<English>Requires Shadow 2 & Chaos 1 Levels!</English>

<TEXT>
<Tag>TXT_KEY_SPELL_SHADOWSTEP_STRATEGY</Tag>
<English>By combining the power of the Shadowwalk & the Dance of Blades Spells, your magic users can produce the Shadowstep Spell!</English>

<TEXT>
<Tag>TXT_KEY_SPELL_BATTLE_PREPARATION</Tag>
<English>Battle Preparation</English>

<TEXT>
<Tag>TXT_KEY_SPELL_BATTLE_PREPARATION_HELP</Tag>
<English>Requires Enchantment 3 & Earth 2 Levels!</English>

<TEXT>
<Tag>TXT_KEY_SPELL_BATTLE_PREPARATION_STRATEGY</Tag>
<English>By combining the power of the Spellstaff & Stonekin, your magic users can produce the Battle Preparation Spell!</English>

</TEXT>
<TEXT>
<Tag>TXT_KEY_SPELL_BRAVERY</Tag>
<English>Bravery</English>

<TEXT>
<Tag>TXT_KEY_SPELL_BRAVERY_HELP</Tag>
<English>Requires Spirit 1 & Law 3 Levels (Not allowed for Cult of Esus)!</English>

<TEXT>
<Tag>TXT_KEY_SPELL_BRAVERY_STRATEGY</Tag>
<English>By combining the power of the Loyalty, Valour & Courage spells, your magic users can produce the Bravery Spell, if you do not follow the Cult of Esus!</English>

<TEXT>
<Tag>TXT_KEY_SPELL_ADAPTIVE_ENCHANTMENT</Tag>
<English>Adaptive Enchantment</English>

<TEXT>
<Tag>TXT_KEY_SPELL_ADAPTIVE_ENCHANTMENT_HELP</Tag>
<English>Requires Enchantment 2 & Nature 2 Levels (Not allowed for Cult of Esus)!</English>

<Tag>TXT_KEY_SPELL_ADAPTIVE_ENCHANTMENT_STRATEGY</Tag>
<English>By combining the power of the Enchanted Blade, Flaming Arrows & Poisoned Blade Spells, your magic users can produce the Adaptive Enchantment Spell!</English>
 
i apologize i already have done the txt tags

Spoiler :
Code:
<Civ4GameText xmlns="http://www.firaxis.com">
	<TEXT>
        <Tag>TXT_KEY_SPELL_SHADOWSTEP</Tag>
        <English>Shadowstep</English>
        <French>Shadowstep</French>
        <German>Shadowstep</German>
        <Italian>Shadowstep</Italian>
        <Spanish>Shadowstep</Spanish>
    </TEXT>
	<TEXT>
        <Tag>TXT_KEY_SPELL_ADAPTIVE_ENCHANTMENT</Tag>
        <English>Adaptive Enchantment</English>
        <French>Adaptive Enchantment</French>
        <German>Adaptive Enchantment</German>
        <Italian>Adaptive Enchantment</Italian>
        <Spanish>Adaptive Enchantment</Spanish>
    </TEXT>
	<TEXT>
        <Tag>TXT_KEY_SPELL_BRAVERY</Tag>
        <English>Bravery</English>
        <French>Bravery</French>
        <German>Bravery</German>
        <Italian>Bravery</Italian>
        <Spanish>Bravery</Spanish>
    </TEXT>
	<TEXT>
        <Tag>TXT_KEY_SPELL_RECOVERING_FLURRY</Tag>
        <English>Recovering Flurry</English>
        <French>Recovering Flurry</French>
        <German>Recovering Flurry</German>
        <Italian>Recovering Flurry</Italian>
        <Spanish>Recovering Flurry</Spanish>
    </TEXT>
	<TEXT>
        <Tag>TXT_KEY_SPELL_BATTLE_PREPARATION</Tag>
        <English>Battle Preparation</English>
        <French>Battle Preparation</French>
        <German>Battle Preparation</German>
        <Italian>Battle Preparation</Italian>
        <Spanish>Battle Preparation</Spanish>
    </TEXT>
	<TEXT>
        <Tag>TXT_KEY_SPELL_POISONED_BLADE_ESUS</Tag>
        <English>Poisoned Blade</English>
        <French>Poisoned Blade</French>
        <German>Poisoned Blade</German>
        <Italian>Poisoned Blade</Italian>
        <Spanish>Poisoned Blade</Spanish>
    </TEXT>
</Civ4GameText>


this is the CIV4StreamlinedSpellsText.xml which is already included in the download above

the help texts are useful as are the strategy tags :) good work just one minor detail:
the message that a spell is disabled for the cult of esus already shows up if you hover above the spell (like all other spells that are disabled for cult of esus just go in the pedia and look at sanctify for example)


edit: the spells themselves currently have no strategy tag/ help tag see here but i add them in the next batch ;) or you do it just tell me what i shall do :)

Spoiler :
Code:
<Civ4SpellInfos xmlns="x-schema:StreamlinedSpells_CIV4UnitSpellSchema.xml">
    <SpellInfos>
        <SpellInfo>
            <Type>SPELL_SHADOWSTEP</Type>
            <Description>TXT_KEY_SPELL_SHADOWSTEP</Description>
            <Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
            <PromotionPrereq1>PROMOTION_SHADOW2</PromotionPrereq1>
			<PromotionPrereq2>PROMOTION_CHAOS1</PromotionPrereq2>
            <bAllowAI>1</bAllowAI>
            <bAllowAuto>1</bAllowAuto>															
            <bDisplayWhenDisabled>1</bDisplayWhenDisabled>
            <bHasCasted>1</bHasCasted>
            <AddPromotionType1>PROMOTION_SHADOWWALK</AddPromotionType1>
			<AddPromotionType2>PROMOTION_DANCE_OF_BLADES</AddPromotionType2>
            <Effect>EFFECT_SWORDS_SPARKS</Effect>
            <Sound>AS3D_SPELL_ENCHANTMENT</Sound>
            <Button>Art/Interface/Buttons/Promotions/Shadowwalk.dds</Button>
        </SpellInfo>
		<SpellInfo>
            <Type>SPELL_ADAPTIVE_ENCHANTMENT</Type>
            <Description>TXT_KEY_SPELL_ADAPTIVE_ENCHANTMENT</Description>
            <Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
            <PromotionPrereq1>PROMOTION_ENCHANTMENT2</PromotionPrereq1>
			<PromotionPrereq2>PROMOTION_NATURE2</PromotionPrereq2>
            <bAllowAI>1</bAllowAI>
            <bAllowAuto>1</bAllowAuto>												
            <bDisplayWhenDisabled>1</bDisplayWhenDisabled>
            <bHasCasted>1</bHasCasted>
            <AddPromotionType1>PROMOTION_ENCHANTED_BLADE</AddPromotionType1>
            <RemovePromotionType1>PROMOTION_RUSTED</RemovePromotionType1>
			<AddPromotionType2>PROMOTION_FLAMING_ARROWS</AddPromotionType2>
			<AddPromotionType3>PROMOTION_POISONED_BLADE</AddPromotionType3>
            <Effect>EFFECT_ENCHANTED_BLADE</Effect>
            <Sound>AS3D_SPELL_ENCHANTMENT</Sound>
            <Button>, ,Art/Interface/Buttons/Promotions/Promotions_Atlas1.dds,3,8</Button>
        </SpellInfo>
		<SpellInfo>
            <Type>SPELL_BRAVERY</Type>
            <Description>TXT_KEY_SPELL_BRAVERY</Description>
            <Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
            <PromotionPrereq1>PROMOTION_SPIRIT1</PromotionPrereq1>
			<PromotionPrereq2>PROMOTION_LAW3</PromotionPrereq2>
            <bAllowAI>1</bAllowAI>
            <bAllowAuto>1</bAllowAuto>									
            <bDisplayWhenDisabled>1</bDisplayWhenDisabled>
            <bHasCasted>1</bHasCasted>
            <AddPromotionType1>PROMOTION_COURAGE</AddPromotionType1>
			<AddPromotionType2>PROMOTION_VALOR</AddPromotionType2>
			<AddPromotionType3>PROMOTION_LOYALTY</AddPromotionType3>
            <bImmuneNotAlive>1</bImmuneNotAlive>
            <Effect>EFFECT_CREATION</Effect>
            <Sound>AS3D_SPELL_BLESS</Sound>
            <Button>, ,Art/Interface/Buttons/Promotions/Promotions_Atlas1.dds,1,16</Button>
        </SpellInfo>
		<SpellInfo>
            <Type>SPELL_RECOVERING_FLURRY</Type>
            <Description>TXT_KEY_SPELL_RECOVERING_FLURRY</Description>
            <Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
            <PromotionPrereq1>PROMOTION_BODY1</PromotionPrereq1>
			<PromotionPrereq2>PROMOTION_BODY2</PromotionPrereq2>
            <bAllowAI>1</bAllowAI>
            <bAllowAuto>1</bAllowAuto>												
            <bDisplayWhenDisabled>1</bDisplayWhenDisabled>
            <bHasCasted>1</bHasCasted>
            <AddPromotionType1>PROMOTION_HASTED</AddPromotionType1>
            <RemovePromotionType1>PROMOTION_SLOW</RemovePromotionType1>
			<AddPromotionType2>PROMOTION_REGENERATION</AddPromotionType2>
            <bImmuneNeutral>1</bImmuneNeutral>
            <bImmuneEnemy>1</bImmuneEnemy>
            <bImmuneNotAlive>1</bImmuneNotAlive>
            <Effect>EFFECT_WIND_SWIRL</Effect>
            <Sound>AS3D_SPELL_HASTE</Sound>
            <Button>, ,Art/Interface/Buttons/Promotions/Promotions_Atlas1.dds,5,11</Button>
        </SpellInfo>
        <SpellInfo>
            <Type>SPELL_BATTLE_PREPARATION</Type>
            <Description>TXT_KEY_SPELL_BATTLE_PREPARATION</Description>
            <Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
            <PromotionPrereq1>PROMOTION_ENCHANTMENT3</PromotionPrereq1>
			<PromotionPrereq2>PROMOTION_EARTH2</PromotionPrereq2>
            <bAllowAI>1</bAllowAI>
            <bDisplayWhenDisabled>1</bDisplayWhenDisabled>
            <bHasCasted>1</bHasCasted>
            <AddPromotionType1>PROMOTION_SPELLSTAFF</AddPromotionType1>
            <bBuffCasterOnly>1</bBuffCasterOnly>
			<AddPromotionType2>PROMOTION_STONESKIN</AddPromotionType2>
            <bBuffCasterOnly>1</bBuffCasterOnly>
            <Effect>EFFECT_SWORDS_SPARKS</Effect>
            <Sound>AS3D_SPELL_ENCHANTMENT</Sound>
            <Button>Art/Interface/Buttons/Promotions/Spellstaff.dds</Button>
        </SpellInfo>
		<SpellInfo>
            <Type>SPELL_POISONED_BLADE_ESUS</Type>
            <Description>TXT_KEY_SPELL_POISONED_BLADE_ESUS</Description>
            <Civilopedia>TXT_KEY_SPELL_PLACEHOLDER_PEDIA</Civilopedia>
            <PromotionPrereq1>PROMOTION_NATURE2</PromotionPrereq1>
			<ReligionPrereq>RELIGION_COUNCIL_OF_ESUS</ReligionPrereq>
            <bAllowAI>1</bAllowAI>
            <bAllowAuto>1</bAllowAuto>												
            <bDisplayWhenDisabled>1</bDisplayWhenDisabled>
            <bHasCasted>1</bHasCasted>
            <AddPromotionType1>PROMOTION_POISONED_BLADE</AddPromotionType1>
            <bImmuneNeutral>1</bImmuneNeutral>
            <Effect>EFFECT_SPELL1</Effect>
            <Sound>AS3D_SPELL_ENCHANTMENT</Sound>
            <Button>, ,Art/Interface/Buttons/Spells/Spells_Atlas1.dds,7,7</Button>
        </SpellInfo>
    </SpellInfos>
</Civ4SpellInfos>
 
Back
Top Bottom