It is currently 31 Oct 2025, 19:29
   
Text Size

Wurmcoil Engine tokens

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Wurmcoil Engine tokens

Postby Chris H. » 02 Oct 2010, 15:33

I made a minor edit to Wurmcoil Engine. This card will now create tokens with the image name "c_3_3_wurm_deathtouch.jpg" and "c_3_3_wurm_lifelink.jpg". We have a few other icons that required us to use this image name system.

A couple of LQ icons for anyone who is interested is attached below.

Code: Select all
        //*************** START *********** START **************************
        else if(cardName.equals("Wurmcoil Engine")) {
            final Ability ability = new Ability(card, "0") {
               
                @Override
                public void resolve() {
                    makeTokens();
                }//resolve()
               
                void makeTokens() {
                    CardFactoryUtil.makeToken("Wurm", "C 3 3 Wurm Deathtouch", card, "", new String[] {
                            "Artifact", "Creature", "Wurm"}, 3, 3, new String[] {"Deathtouch"});
                    CardFactoryUtil.makeToken("Wurm", "C 3 3 Wurm Lifelink", card, "", new String[] {
                            "Artifact", "Creature", "Wurm"}, 3, 3, new String[] {"Lifelink"});
                }//makeToken()
            };//Ability
           
            Command makeTokens = new Command() {
               
                private static final long serialVersionUID = 8458814538376248271L;

                public void execute() {
                    StringBuilder sb = new StringBuilder();
                    sb.append(card.getName()).append(" - put creature tokens into play.");
                    ability.setStackDescription(sb.toString());
                    AllZone.Stack.add(ability);
                }
            };//Command
           
            card.addDestroyCommand(makeTokens);
           
        }//*************** END ************ END **************************
`
Attachments
c_3_3_wurm_lifelink.jpg
c_3_3_wurm_deathtouch.jpg
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 29 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 29 users online :: 0 registered, 0 hidden and 29 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 29 guests

Login Form