Page 1 of 1

Bottomless Pit Wont Trigger

PostPosted: 22 Mar 2013, 18:46
by diabolicseraph
Hi Folks,

Hope you could help out here.
I've been trying different combinations to make Bottomless Pit work but it just won't trigger properly.
Your assistance would be much appreciated.
Thank you!

Code: Select all
<?xml version='1.0'?>
<CARD_V2 custom="true">
  <FILENAME text="BOTTOMLESS PIT_888190575" />
  <CARDNAME text="BOTTOMLESS PIT" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Bottomless Pit]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="888190575" />
  <ARTID value="BOTTOMLESS PIT" />
  <FRAMECOLOUR name="A" />
  <COLOUR value="Z" />
  <ARTIST name="Kev Walker" />
  <CASTING_COST cost="{1}{B}{B}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“I’m sure it came with the place. I don’t think you build one on purpose.”
Gerrard]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <TYPE metaname="Enchantment" order_de-DE="0" order_es-ES="0" order_fr-FR="0" order_it-IT="0" order_jp-JA="0" />
  <EXPANSION value="ST" />
  <RARITY metaname="U" />
  <TRIGGERED_ABILITY filter_zone="ZONE_IN_PLAY">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of each player’s upkeep, that player discards a card at random.]]></LOCALISED_TEXT>
   <TRIGGER value="BEGINNING_OF_STEP">
    return MTG():GetStep() == STEP_UPKEEP and l_11_0:MyTurn() ~= 0 and TriggerPlayer() == l_11_0
   end
        </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    local player = TriggerPlayer
    if player ~= nil then
     player:DiscardRandomCard()
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
</CARD_V2>

Re: Bottomless Pit Wont Trigger

PostPosted: 22 Mar 2013, 19:05
by thefiremind
You are doing a couple of things wrong here, but first, are you making this for DotP2012 or DotP2013? Having only 6 languages and the FRAMECOLOUR and COLOUR blocks make me think about DotP2012.

Re: Bottomless Pit Wont Trigger

PostPosted: 22 Mar 2013, 21:18
by diabolicseraph
Hi!

I'm using it for 2013.

The Card Framework I got from one of the generator websites

This is the first time I've gone back to MTG for a long time, and I've been trying to rebuild my old deck from the day.




thefiremind wrote:You are doing a couple of things wrong here, but first, are you making this for DotP2012 or DotP2013? Having only 6 languages and the FRAMECOLOUR and COLOUR blocks make me think about DotP2012.

Re: Bottomless Pit Wont Trigger

PostPosted: 22 Mar 2013, 21:36
by thefiremind
OK then, you are using a generator for DotP2012... may I suggest you to try my generator here? Not only it's specific for DotP2013, but it also auto-completes some of the simplest abilities (like flying, haste, etc.).

Anyway, the ability on Bottomless Pit should be:
Code: Select all
    <TRIGGER value="BEGINNING_OF_STEP">
    return TriggerPlayer():MyTurn() ~= 0 and MTG():GetStep() == STEP_UPKEEP
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    local player = TriggerPlayer()
    if player ~= nil then
       player:DiscardRandomCard()
    end
    </RESOLUTION_TIME_ACTION>
Your code has a "l_11_0" variable that you didn't declare anywhere, an "end" that has no beginning, and TriggerPlayer is missing the function parentheses ().

Re: Bottomless Pit Wont Trigger

PostPosted: 22 Mar 2013, 22:28
by diabolicseraph
Thank You Much, Kind Sir!