Good Morning
I'm at it again: Attempting to improve my Catapult's Mod for the LH 1.5 release.
Currently I'm tweaking the Stinking Mud tactical in order to 'reduce' units movement through the hit 3x3 zone. I plan to have it resistible in which each turn the unit can attempt to move normally if successfully resists.
I've come across some peculiar results which leads me to the side question of: Does Stinking Mud work the way it is suppose to? (can someone smarter than me confirm this?)
Problems I am currently having:
- The spell + particle effect is indefinite. How do I change the timing so that the spell only lasts for a set number of turns?
- For some reason, my sovereign is able to cast the spell as well. How do I make it so that does not happen?
- How do I confirm that each unit has the chance to resist, either when entering a sticky mud tile, or starting the turn in one?
Here's what I have for the code so far:
<SpellDef InternalName="Sticky_Mud">
<DisplayName>Sticky Mud</DisplayName>
<Description>Launches VERY sticky mud at a 3x3 area. Units cannot travel through this sticky mud.</Description>
<Image>T_StinkingMud_Painting.png</Image>
<IconFG>T_StinkingMud_Icon.png</IconFG>
<AutoUnlock>1</AutoUnlock>
<Cooldown>6</Cooldown>
<SpellType>Tactical</SpellType>
<SpellTargetTileOccupied>EnemyOrEmpty</SpellTargetTileOccupied>
<HideInHiergamenon>1</HideInHiergamenon>
<AllowFriendlyFireInRadius>1</AllowFriendlyFireInRadius>
<Radius>1</Radius>
<IsResistable>1</IsResistable>
<GameModifier>
<ModType>Map</ModType>
<Attribute>CreateWorldProp</Attribute>
<StrVal>Stinking_Mud</StrVal>
<Duration>1</Duration>
</GameModifier>
<GameModifier>
<ModType>Unit</ModType>
<Attribute>SetUnitStat</Attribute>
<StrVal>UnitStat_Moves</StrVal>
<ApplyToTile>1</ApplyToTile>
<Duration>1</Duration>
<DurationOnTile>1</DurationOnTile>
<Value>1</Value>
</GameModifier>
<AIData AIPersonality="AI_General">
<AIPriority>5</AIPriority>
</AIData>
<SpellCastSoundFX>Catapult_Toss</SpellCastSoundFX>
<SpellCastEffectName>Catapult_Particle</SpellCastEffectName>
<SpellCastEffectScale>0.9</SpellCastEffectScale>
<SpellCastProjectile>1</SpellCastProjectile>
<SpellCastProjectileSpeed>450</SpellCastProjectileSpeed>
<HitSoundFX>Spell_StinkingMud_01</HitSoundFX>
<SpellDefEffect>
<EffectName>T_StinkingMud_Particle</EffectName>
<LocalPosition>0, 0 ,0</LocalPosition>
<EffectScale>0.50</EffectScale>
<EffectDelay>0.25</EffectDelay>
<SnapToTerrain>1</SnapToTerrain>
</SpellDefEffect>
</SpellDef>