It is currently 06 Jun 2024, 04:57
   
Text Size

Giving a card a secondary casting cost from exile?

Moderator: CCGHQ Admins

Giving a card a secondary casting cost from exile?

Postby fallenangle » 19 Aug 2014, 01:39

I'm trying to code a card that costs W normally so that I can cast it from exile by paying only 1 colorless mana. I'm not sure how to go about coding this, though I'm guessing it needs to be through some utility ability. If anyone could be so kind as to provide advice on how to do this or code with annotations, I would be very grateful. Thanks in advance for all of your help.
fallenangle
 
Posts: 319
Joined: 20 Jul 2013, 02:31
Has thanked: 73 times
Been thanked: 41 times

Re: Giving a card a secondary casting cost from exile?

Postby sweetLu » 19 Aug 2014, 03:18

You can do it as alternate casting cost. For an example of a card with an alternate casting cost look at Force of Will.


Force of Will Alt Casting Cost | Open
Code: Select all
   <UTILITY_ABILITY qualifier="Alternate">
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[You may pay 1 life and exile a blue card from your hand rather than pay Force of Will’s mana cost.]]></LOCALISED_TEXT>
      <COST type="Life" amount="1" />
      <COST type="Exile" definition="0" compartment="1" query_tag="CARD_QUERY_CHOOSE_CARD_TO_EXILE" item_count="1" amount="1" />
      <COST_DEFINITION id="0">
    local filter = ClearFilter()
    filter:SetZone( ZONE_HAND, EffectController() )
    filter:Add( FE_COLOUR, OP_IS, COLOUR_BLUE)
    filter:Add( FE_CARD_INSTANCE, OP_NOT, EffectSource())
    </COST_DEFINITION>
      <ABILITY_TEXT tag="CARD_QUERY_FORCE_OF_WILL_PAY_1_LIFE_AND_EXILE_BLUE_CARD" />
   </UTILITY_ABILITY>
Now in your case you do not need the loss of 1 life or to exile a card. You can delete all of the cost blocks in the Force of Will alternate casting cost and replace with a simple <COST mana_cost="{1}" type="Mana" />. Now you just have to make sure you can only use the ability from the exile zone. For that you'll need to set the active zone. See if this works.


Cast from Exile | Open
Code: Select all
   <UTILITY_ABILITY qualifier="Alternate" active_zone="ZONE_EXILE">
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}: Cast this card from exile.]]></LOCALISED_TEXT>
      <COST mana_cost="{1}" type="Mana" />
   </UTILITY_ABILITY>
sweetLu
 
Posts: 181
Joined: 16 Jul 2014, 01:24
Has thanked: 21 times
Been thanked: 22 times


Return to 2014

Who is online

Users browsing this forum: No registered users and 4 guests

cron

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 4 guests

Login Form