It is currently 16 Apr 2024, 11:22
   
Text Size

Formal Request Thread

Moderator: CCGHQ Admins

Re: Formal Request Thread

Postby migookman » 07 Dec 2015, 11:53

Having problems coding the following:

Anthroplasm. It goes to the graveyard when the +1+1 counters are removed.
Code: Select all
<COST mana_cost="{X}" type="Mana" />
 
   <COST type="TapSelf" />
    <PLAY_TIME_ACTION>
         local count = EffectSource():CountCounters( MTG():PlusOnePlusOneCounters() )
         EffectSource():RemoveCounters( MTG():PlusOnePlusOneCounters(), count )
      </PLAY_TIME_ACTION>
        <RESOLUTION_TIME_ACTION>
   local effectSource = EffectSource()
            if effectSource ~= nil then
               effectSource:AddCounters( MTG():PlusOnePlusOneCounters(), GetEffectX())
            end
      </RESOLUTION_TIME_ACTION>
  </ACTIVATED_ABILITY>
Antagonism. Players always get the 2 damage.
Code: Select all
 <TRIGGER value="BEGINNING_OF_PLAYERS_STEP">
         return MTG():GetStep() == STEP_END_OF_TURN
      </TRIGGER>
         <AVAILABILITY>
    local num_starting_players = MTG():GetNumberOfStartingPlayers()
    for i=0,(num_starting_players-1) do
        local player = MTG():GetNthStartingPlayer(i)
        if (player ~= nil and player:GetTeam() ~= EffectController():GetTeam()) then
          local interrogation = MTG():ClearInterrogationQuery()
          interrogation:SetSecondaryPlayer(player)
             
          if interrogation:Test( INTERROGATE_DAMAGE_DEALT, INTERROGATE_THIS_TURN ) then
             -- bloodthirst!
             return true
          end
       end
    end
    -- no bloodthirst!
    return false
    </AVAILABILITY>
      <RESOLUTION_TIME_ACTION>
    if EffectSource() ~= nil then
       EffectSourceLKI():DealDamageTo(2, TriggerPlayer())
    end
    </RESOLUTION_TIME_ACTION>
         </TRIGGERED_ABILITY>
User avatar
migookman
 
Posts: 135
Joined: 05 Aug 2014, 06:37
Has thanked: 21 times
Been thanked: 28 times

Re: Formal Request Thread

Postby Xander9009 » 07 Dec 2015, 14:58

For the first one, I don't see what's wrong. Try removing "count-1" counters to see if the other counters are being added properly. If they are, move the counter addition to the same RTA.

For the second one, and availability block decides when an activated ability can be activated. It has no meaning in a triggered ability that I know of. Move that to the RTA, and instead of returning true, deal the damage on the "return true" line.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby RiiakShiNal » 10 Dec 2015, 15:12

For Anthroplasm your problem is that you are removing the +1/+1 counters during play time when you should be removing them at resolution time. State based effects are checked between play time and resolution time (sometimes checked multiple times) and thus when you remove the +1/+1 counters at play time your Anthroplasm becomes 0/0 and dies before the new +1/+1 counters can be added.
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 496 times

Re: Formal Request Thread

Postby Tejahn » 11 Jan 2016, 03:21

Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Formal Request Thread

Postby Finnical » 04 Feb 2016, 12:38

Ayli, Eternal Pilgrim please. Abilities are pretty straightforward, shouldn't be too tough I think.
Finnical
 
Posts: 108
Joined: 03 Aug 2015, 08:13
Has thanked: 2 times
Been thanked: 5 times

Re: Formal Request Thread

Postby Xander9009 » 05 Feb 2016, 19:30

Finnical wrote:Ayli, Eternal Pilgrim please. Abilities are pretty straightforward, shouldn't be too tough I think.
Untested but done.

Tejahn wrote:I want to request three cards.

Caller of the Pack
Mazirek, Kraul Death Priest
Mystic Confluence
The first two are done (but untested). For Mystic Confluence, I'm not sure how to code it. Maybe someone else will have an idea about how to allow a mode to be chosen more than once. Best idea I've got is to make it three separate but identical abilities, each with the three modes. You'd be forced to pick the mode three times in a row and they shouldn't affect one another. That's how I'm going to do it when I get the chance (probably later tonight) unless I'm informed that will have issues.

EDIT: I had a chance to try it out, but it failed. You can never choose to counter spells, you can however choose to bounce creatures, and you can choose to draw a card. However, you only get one choice. If you choose to draw, then you draw 3 cards. If you choose to bounce, you choose three creatures, but only the last one is bounced. I 'm not sure how else to approach it. I could just use multiple choices, but then it won't be copied correctly, if I recall correctly. Thoughts?

EDIT2: I had a thought, but it didn't work, unfortunately. I figured if we could show enough modes, then you could select ONE mode, but each mode would be some combination of the three. However, there are 10 combinations but only 7 possible modes.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Nick26 » 12 Feb 2016, 20:48

I tried to code the confluence too using cryptic command as a starting point but I had the same issue. The game forces me to choose the same thing 3 times. Do we have to code a card with 10 different choices? :cry:
Nick26
 
Posts: 71
Joined: 23 Mar 2015, 16:40
Has thanked: 14 times
Been thanked: 0 time

Re: Formal Request Thread

Postby Xander9009 » 12 Feb 2016, 22:04

Nick26 wrote:I tried to code the confluence too using cryptic command as a starting point but I had the same issue. The game forces me to choose the same thing 3 times. Do we have to code a card with 10 different choices? :cry:
We CAN'T code a card with 10 choices. 7 is the maximum. I've not had any ideas for it, but I've also been focused pretty heavily on coding the OGW set.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Jsleung » 16 Feb 2016, 07:21

Now that Oath of the Gatewatch is in the CW, any chance for Eldrazi Temple to be added?
Jsleung
 
Posts: 2
Joined: 16 Feb 2016, 07:15
Has thanked: 0 time
Been thanked: 0 time

Re: Formal Request Thread

Postby Xander9009 » 16 Feb 2016, 15:39

Jsleung wrote:Now that Oath of the Gatewatch is in the CW, any chance for Eldrazi Temple to be added?
I'm more than willing to add the card, but keep in mind that restricted mana cannot be properly coded for abilities. It can only be coded for casting cards. So, it won't be usable by colorless eldrazi for the abilities.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Jsleung » 16 Feb 2016, 19:13

As long as I don't have to take 2 damage every time from ancient tombs to play a deck similar to modern eldrazi...sounds good to me! Thanks so much!
Jsleung
 
Posts: 2
Joined: 16 Feb 2016, 07:15
Has thanked: 0 time
Been thanked: 0 time

Re: Formal Request Thread

Postby Shoggoththe12 » 20 Mar 2016, 21:37

Shoggoththe12
 
Posts: 9
Joined: 18 Dec 2015, 03:43
Has thanked: 0 time
Been thanked: 0 time

Re: Formal Request Thread

Postby Finnical » 29 Apr 2016, 22:23

The Gustcloak bird soldiers:

(Gustcloak -)
Harrier
Sentinel
Skirmisher
Cavalier
Runner
Savior

I figure they might interact well with some of the Mardu stuff. They might be weird to code...
Finnical
 
Posts: 108
Joined: 03 Aug 2015, 08:13
Has thanked: 2 times
Been thanked: 5 times

Re: Formal Request Thread

Postby Xander9009 » 30 Apr 2016, 00:06

_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Finnical » 14 May 2016, 05:36

Finnical
 
Posts: 108
Joined: 03 Aug 2015, 08:13
Has thanked: 2 times
Been thanked: 5 times

PreviousNext

Return to 2014

Who is online

Users browsing this forum: No registered users and 35 guests


Who is online

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

Login Form