It is currently 26 May 2013, 09:42
   
Text Size

Report cards error here

Moderator: CCGHQ Admins

Re: Report cards error here

Postby Proxius » 19 Dec 2010, 05:00

Update:
I have been trying a couple of things to attempt to find the source of the error with Priest of Titania's activated ability.
-->

<TOKEN_REGISTRATION type="_GREEN_MANA_Token" reservation="1" />

<!--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

<ACTIVATED_ABILITY tag="PRIEST_OF_TITANIA_RULE_1" layer="0"

forced_skip="1" >

<COST type="TapSelf" />

<EFFECT>
ProduceGreenMana( CountCreaturesOfType( CREATURE_TYPE_ELF ) )
</EFFECT>

</ACTIVATED_ABILITY>
I took out the "if" statement and the local variable myelves.

I still cannot get it to work. The ability breaks after about 15 elves in play.


Thanks for help anyone can provide, and all the hard work of the people who have made these mods available. Thank you.
-Proxius
Proxius
 
Posts: 8
Joined: 03 Dec 2010, 00:49
Has thanked: 0 time
Been thanked: 1 time

Re: Report cards error here

Postby IceManOnline » 22 Dec 2010, 16:01

It's me again ^^
I just played some of the non-custom challenges of the game and noticed, that Protean Hulk doesn't work, like it should.
So I looked at the code and found out, that it only triggers up to 4 targets but it doesn't check against the convertedmanacost, like it should.
I decided to try to add the code to my own collection, but I can't get the convertedmanacost to work...
This is my trigger
Code: Select all
<TRIGGERED_ABILITY tag="PROTEAN_HULK_RULE_1" layer="0" zone="Graveyard">
         <TRIGGER value="HIT_GRAVEYARD">
            return SelfTriggered()
         </TRIGGER>
         <PRE_EFFECT>
            Object():GetFilter():Clear()
            Object():GetFilter():NotTargetted()
            Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
            Object():GetFilter():SetPlayer( Object():GetOwner() )
            Object():GetFilter():SetZone( ZONE_LIBRARY )
            Object():GetFilter():May()
            Object():GetPlayer():SetTargetCount( 9 )
            Object():GetPlayer():SetTargetPrompt( 0, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 1, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 2, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 3, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 4, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 5, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 6, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 7, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 8, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():ChooseTargetsWithFlags( QUERY_FLAG_CAN_BE_FINISHED_EARLY )
         </PRE_EFFECT>
         <EFFECT>
            for i=0,8 do
               if (Object():GetNthTargetCard( i ) ~= nil) then
                  Object():GetNthTargetCard( i ):PutIntoPlay( Object():GetOwner() )
               end
            end

            Object():GetOwner():ShuffleLibrary()
         </EFFECT>
The trigger itself is working, but if i add
Code: Select all
Object():GetFilter():SetConvertedCostMax(6)
there is no difference.
I also tried it with local variables and tried to get the manacost of each target card with
Code: Select all
while manacost &lt; 7 do
Object():GetPlayer():SetTargetPrompt(i),"SearchYourLibraryForCreaturesTotalSixOfLess")
manacost = manacost + Object():GetNthTargetCard(i):GetConvertedManaCost()
i = i+1
but with the above code there isn't even a TargetPrompt...

I don't know what's wrong, I just wanted to make the card work, like it should ;)
IceManOnline
 
Posts: 79
Joined: 12 Dec 2010, 19:00
Has thanked: 0 time
Been thanked: 0 time

Re: Report cards error here

Postby kevlahnota » 22 Dec 2010, 17:30

hmmmm, can you try this code :?: :
Code: Select all
    <TRIGGERED_ABILITY tag="PROTEAN_HULK_RULE_1" layer="0" zone="Graveyard">
             <TRIGGER value="HIT_GRAVEYARD">
                return SelfTriggered()
             </TRIGGER>
             <PLAYTIME>
                Object():GetFilter():Clear()
      Object():GetFilter():NotTargetted()
      Object():GetFilter():SetPlayer( Object():GetPlayer() )
      Object():GetFilter():SetZone( ZONE_LIBRARY )
                Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
      Object():GetFilter():SetConvertedCostMax( 6 )
                Object():Register_Set(0, Object():GetFilter():Count())      
             </PLAYTIME>
             <PRE_EFFECT>
              if Object():Register_Get(0) &gt; 0 then
                Object():GetFilter():Clear()
      Object():GetFilter():NotTargetted()
      Object():GetFilter():SetPlayer( Object():GetPlayer() )
      Object():GetFilter():SetZone( ZONE_LIBRARY )
                Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
      Object():GetFilter():SetConvertedCostMax( 6 )
      Object():GetPlayer():SetTargetCount( Object():Register_Get(0) )
        Object():GetFilter():May()
      for i=0,Object():Register_Get(0)-1 do
                Object():GetPlayer():SetTargetPrompt( i, "SearchYourLibraryForCreaturesTotalSixOfLess" )
                end
      Object():GetPlayer():ChooseTargets()
              end
             </PRE_EFFECT>
             <EFFECT>
                for i=0,Object():Register_Get(0)-1 do
                   if (Object():GetNthTargetCard( i ) ~= nil) then
                      Object():GetNthTargetCard( i ):PutIntoPlay( Object():GetOwner() )
                   end
                end

                Object():GetOwner():ShuffleLibrary()
             </EFFECT>
IceManOnline wrote:It's me again ^^
I just played some of the non-custom challenges of the game and noticed, that Protean Hulk doesn't work, like it should.
So I looked at the code and found out, that it only triggers up to 4 targets but it doesn't check against the convertedmanacost, like it should.
I decided to try to add the code to my own collection, but I can't get the convertedmanacost to work...
This is my trigger
Code: Select all
<TRIGGERED_ABILITY tag="PROTEAN_HULK_RULE_1" layer="0" zone="Graveyard">
         <TRIGGER value="HIT_GRAVEYARD">
            return SelfTriggered()
         </TRIGGER>
         <PRE_EFFECT>
            Object():GetFilter():Clear()
            Object():GetFilter():NotTargetted()
            Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
            Object():GetFilter():SetPlayer( Object():GetOwner() )
            Object():GetFilter():SetZone( ZONE_LIBRARY )
            Object():GetFilter():May()
            Object():GetPlayer():SetTargetCount( 9 )
            Object():GetPlayer():SetTargetPrompt( 0, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 1, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 2, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 3, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 4, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 5, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 6, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 7, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():SetTargetPrompt( 8, "SearchYourLibraryForCreaturesTotalSixOrLess" )
            Object():GetPlayer():ChooseTargetsWithFlags( QUERY_FLAG_CAN_BE_FINISHED_EARLY )
         </PRE_EFFECT>
         <EFFECT>
            for i=0,8 do
               if (Object():GetNthTargetCard( i ) ~= nil) then
                  Object():GetNthTargetCard( i ):PutIntoPlay( Object():GetOwner() )
               end
            end

            Object():GetOwner():ShuffleLibrary()
         </EFFECT>
The trigger itself is working, but if i add
Code: Select all
Object():GetFilter():SetConvertedCostMax(6)
there is no difference.
I also tried it with local variables and tried to get the manacost of each target card with
Code: Select all
while manacost &lt; 7 do
Object():GetPlayer():SetTargetPrompt(i),"SearchYourLibraryForCreaturesTotalSixOfLess")
manacost = manacost + Object():GetNthTargetCard(i):GetConvertedManaCost()
i = i+1
but with the above code there isn't even a TargetPrompt...

I don't know what's wrong, I just wanted to make the card work, like it should ;)
User avatar
kevlahnota
Programmer
 
Posts: 418
Joined: 19 Jul 2010, 17:45
Location: Philippines
Has thanked: 5 times
Been thanked: 97 times

Re: Report cards error here

Postby IceManOnline » 22 Dec 2010, 18:06

Nope, not working.
I just tried it and was able to get 3 Hedron Crab + 3 Sakura-Tribe Elder...

Dammit. I just want to test some of the new combo decks (I quit playing MTG a couple of years ago), but none of them work ^^
I don't know of a possibility to add counters to a player (for counting storm and/or poison), we don't have a possibility to let the opponent skip his turn (yet) and Hulkflash or Goblin Charbelcher are not (correctly) implemented yet ;(
IceManOnline
 
Posts: 79
Joined: 12 Dec 2010, 19:00
Has thanked: 0 time
Been thanked: 0 time

Re: Report cards error here

Postby heyitskrunk » 27 Jan 2011, 07:52

Found a bug; using Animate Dead on a Doomed Necromancer will still allow the Doomed Necromancer to use his ability, without him being sacrificed. :mrgreen:
heyitskrunk
 
Posts: 1
Joined: 25 Jan 2011, 03:47
Has thanked: 0 time
Been thanked: 0 time

Re: Report cards error here

Postby kevlahnota » 03 Feb 2011, 06:33

Animate Dead fixed! :D

heyitskrunk wrote:Found a bug; using Animate Dead on a Doomed Necromancer will still allow the Doomed Necromancer to use his ability, without him being sacrificed. :mrgreen:
User avatar
kevlahnota
Programmer
 
Posts: 418
Joined: 19 Jul 2010, 17:45
Location: Philippines
Has thanked: 5 times
Been thanked: 97 times

Re: Report cards error here

Postby Shatterhouse » 28 Apr 2011, 03:55

Terramorphic Expanse is very blatantly broken. I thought I was imagining things when the AI traded one for a Soul Warden. I was paying attention the second time when it brought out a Knight of the Reliquary.

Why not just copy Evolving Wilds' code line for line?
Shatterhouse
 
Posts: 69
Joined: 20 Apr 2011, 00:07
Has thanked: 0 time
Been thanked: 1 time

Re: Report cards error here

Postby Shatterhouse » 14 May 2011, 02:10

Animate Dead still bugged. Apparently the animated creature cannot be killed, at least not by Gelectrode.
Shatterhouse
 
Posts: 69
Joined: 20 Apr 2011, 00:07
Has thanked: 0 time
Been thanked: 1 time

Re: Report cards error here

Postby Shatterhouse » 14 May 2011, 03:13

Dream Halls is bugged. Its effect is supposed to be optional. Currently it requires you to discard another card, even if the spell you're trying to cast is free.
Shatterhouse
 
Posts: 69
Joined: 20 Apr 2011, 00:07
Has thanked: 0 time
Been thanked: 1 time

Re: Report cards error here

Postby Shatterhouse » 14 May 2011, 03:41

Silvergill Adept - AI doesn't reveal any cards for the additional cost.
Shatterhouse
 
Posts: 69
Joined: 20 Apr 2011, 00:07
Has thanked: 0 time
Been thanked: 1 time

Re: Report cards error here

Postby Wheely » 04 Jun 2011, 10:57

Hi dear community,

I am new here and first of all thanks for the great work on creating those custom cards, you are awesome. I play a lot with them and recently a friend made a Merfolk Deck and we wanted to play the Coop Campaign with it, but the game always crashes after we played the "Stonybrook Banneret". I cannot figure out why, so my question is, is that a known problem. I would post the whole deck but there is no problem until we play that card. Thanks in advance!
Wheely
 
Posts: 3
Joined: 04 Jun 2011, 10:53
Has thanked: 0 time
Been thanked: 0 time

Re: Report cards error here

Postby DarkusChi » 04 Jun 2011, 11:52

Hi, try changing the layer of both of the static cost reducing abilities to layer 8, if not just copy the code from goblin warchief, replacing goblin with mefolk and wizard. Ok sorted it out, copied code from Goblin Warchief and also IslandWalk() needs a capital W as lua is case sensitive, here's the code:

Code: Select all
 <STATIC_ABILITY layer="8" tag="STONYBROOK_BANNERET_RULE_1" influencing_zone="Hand">
         
         <FILTER>
            return (OwnedByYou() and InHand() and Subject():GetSubType():Test( CREATURE_TYPE_MERFOLK ) ~= 0)
         </FILTER>
         
         <EFFECT>
            DecreaseCost( 1 )
         </EFFECT>
         
      </STATIC_ABILITY>
      
      <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
      
      <STATIC_ABILITY layer="8" influencing_zone="Hand">
         
         <FILTER>
            return (OwnedByYou() and InHand() and Subject():GetSubType():Test( CREATURE_TYPE_WIZARD ) ~= 0)
         </FILTER>
         
         <EFFECT>
            DecreaseCost( 1 )
         </EFFECT>
         
      </STATIC_ABILITY>
      
      <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
      
      <STATIC_ABILITY tag="STONYBROOK_BANNERET_RULE_2" layer="0">
         
         <EFFECT>
            IslandWalk()
         </EFFECT>
         
      </STATIC_ABILITY>
Last edited by DarkusChi on 04 Jun 2011, 12:25, edited 1 time in total.
DarkusChi
 
Posts: 15
Joined: 10 May 2011, 23:42
Has thanked: 0 time
Been thanked: 0 time

Re: Report cards error here

Postby Wheely » 04 Jun 2011, 12:18

Thank you for the quick reply ... meanwhile I managed it myself but in the same way you suggested. Changing the layer did not the trick but just copying code from the Undead Warchief and changing Islandwalk to IslandWalk made the card playable :) Once more, thank you. By the way, do you know if the repository is still updated?
Wheely
 
Posts: 3
Joined: 04 Jun 2011, 10:53
Has thanked: 0 time
Been thanked: 0 time

Re: Report cards error here

Postby DarkusChi » 04 Jun 2011, 12:27

Not at the moment, most have left and kev is waiting for the release of DOTP 2012
DarkusChi
 
Posts: 15
Joined: 10 May 2011, 23:42
Has thanked: 0 time
Been thanked: 0 time

Re: Report cards error here

Postby Wheely » 04 Jun 2011, 12:32

okay, thanks for the info ... if I was not that lazy I would try to make some cards on my own, but I think I will also wait until DOTP 2012 is out :)
Wheely
 
Posts: 3
Joined: 04 Jun 2011, 10:53
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 0 guests


Who is online

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests (based on users active over the past 10 minutes)
Most users ever online was 177 on 10 Oct 2011, 16:37

Users browsing this forum: No registered users and 0 guests

Login Form