It is currently 18 Apr 2024, 12:54
   
Text Size

Bottomless Pit Wont Trigger

User-made mods in DLC (Downloadable Content) form.
Get MTG cards here for your DotP that aren't available anywhere else!

Moderator: CCGHQ Admins

Bottomless Pit Wont Trigger

Postby diabolicseraph » 22 Mar 2013, 18:46

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>
diabolicseraph
 
Posts: 10
Joined: 18 Mar 2013, 04:12
Has thanked: 7 times
Been thanked: 0 time

Re: Bottomless Pit Wont Trigger

Postby thefiremind » 22 Mar 2013, 19:05

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.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Bottomless Pit Wont Trigger

Postby diabolicseraph » 22 Mar 2013, 21:18

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.
diabolicseraph
 
Posts: 10
Joined: 18 Mar 2013, 04:12
Has thanked: 7 times
Been thanked: 0 time

Re: Bottomless Pit Wont Trigger

Postby thefiremind » 22 Mar 2013, 21:36

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 ().
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Bottomless Pit Wont Trigger

Postby diabolicseraph » 22 Mar 2013, 22:28

Thank You Much, Kind Sir!
diabolicseraph
 
Posts: 10
Joined: 18 Mar 2013, 04:12
Has thanked: 7 times
Been thanked: 0 time


Return to New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)

Who is online

Users browsing this forum: No registered users and 5 guests


Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 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 5 guests

Login Form