Freezing a unit and delayed effects

By on July 14, 2014 9:55:40 AM from Elemental Forums Elemental Forums

Replicators

Join Date 05/2006
+7

Is it possible to create a spell that freezes a unit in battle?

 

Gameplay effects should be that it cannot move, it cannot attack, it cannot dodge, and the part that I am stuck on, it cannot retaliate. How can I get about in doing this?

 

Visually speaking, would it be possible to pause the idle animation of the unit for the duration of the freeze? Maybe apply a blue alpha over the textures too?

 

I'd also like to add a feature for delayed effects.

 

For example, I cast a spell on a unit, something happens to that unit, then after 1 turn, something else happens to it.

 

Is this possible?

 

Thanks.

Locked Post 8 Replies
Search this post
Subscription Options


Reason for Karma (Optional)
Successfully updated karma reason!
July 14, 2014 10:33:42 AM from Elemental Forums Elemental Forums

Quoting ,

Is it possible to create a spell that freezes a unit in battle?

 

Gameplay effects should be that it cannot move, it cannot attack, it cannot dodge, and the part that I am stuck on, it cannot retaliate. How can I get about in doing this?

 

If you make them Stunned, that should stop them retaliating... I think.  If not set Counterattack to zero.  Combine that with effects like setting Move, Dodge to zero etc.  Should work.

 


Visually speaking, would it be possible to pause the idle animation of the unit for the duration of the freeze? Maybe apply a blue alpha over the textures too?

Fairly sure that's a no.

 


 


I'd also like to add a feature for delayed effects.

 

For example, I cast a spell on a unit, something happens to that unit, then after 1 turn, something else happens to it.

I don't that is possible.  The only thing you could so is.... if you want a delayed effect on a unitstat... you could set a negative value for 3 turns, then a positive value for 10 turns... and then for the first 3 turns i would counter each value out (no effect)... then after 3 turns only one value would be active.  Kinda dodgy but that would probably work.
 


Reason for Karma (Optional)
Successfully updated karma reason!
July 14, 2014 10:39:27 AM from Elemental Forums Elemental Forums

Quoting abob101,

 
If you make them Stunned, that should stop them retaliating... I think.  If not set Counterattack to zero.  Combine that with effects like setting Move, Dodge to zero etc.  Should work.

Code: xml
  1.         
  2.   <GameModifier>
  3.             <ModType>TacticalUnit</ModType>
  4.             <Attribute>ChanceToLoseNextTurn</Attribute>
  5.             <DisplayName>Dazed</DisplayName>
  6.             <Duration>999</Duration>
  7.             <Value>100</Value>
  8.         </GameModifier> 

 

I tried this, but the enemy was able to retaliate.

Reason for Karma (Optional)
Successfully updated karma reason!
July 14, 2014 10:53:18 AM from Elemental Forums Elemental Forums

Quoting Replicators,
I tried this, but the enemy was able to retaliate.

When you say retaliate, you mean Counterattack?

Reason for Karma (Optional)
Successfully updated karma reason!
July 14, 2014 10:56:59 AM from Elemental Forums Elemental Forums

N/A

Reason for Karma (Optional)
Successfully updated karma reason!
July 14, 2014 11:03:39 AM from Elemental Forums Elemental Forums

And if you want to stop them casting spells also, you'll want something like this from spell Silence...

 


<GameModifier>
  <ModType>Unit</ModType>
  <Attribute>PreventSpellcasting</Attribute>
  <DisplayName>Silenced</DisplayName>
  <Duration>3</Duration>
  <PerTurn>1</PerTurn>
</GameModifier>

Reason for Karma (Optional)
Successfully updated karma reason!
July 14, 2014 11:24:35 AM from Elemental Forums Elemental Forums

Fantastic responses guys!

 

Quoting abob101,

And if you want to stop them casting spells also, you'll want something like this from spell Silence...

 


<GameModifier>
  <ModType>Unit</ModType>
  <Attribute>PreventSpellcasting</Attribute>
  <DisplayName>Silenced</DisplayName>
  <Duration>3</Duration>
  <PerTurn>1</PerTurn>
</GameModifier>

 

Question, the Duration is how long it will last and per turn is a Boolean value?

Reason for Karma (Optional)
Successfully updated karma reason!
July 14, 2014 11:38:24 AM from Elemental Forums Elemental Forums

Yep.

Reason for Karma (Optional)
Successfully updated karma reason!
July 14, 2014 11:53:42 AM from Elemental Forums Elemental Forums

Quoting abob101,

Yep.

 

Thank you guys, you have all been really helpful!

 

Reason for Karma (Optional)
Successfully updated karma reason!
Stardock Forums v1.0.0.0    #108432  walnut2   Server Load Time: 00:00:00.0000078   Page Render Time: