Wurmcoil Engine tokens
Post MTG Forge Related Programming Questions Here
	Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
			1 post
			 • Page 1 of 1
		
	
Wurmcoil Engine tokens
by 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.
			
				
			
		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 **************************
- 
				

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
 
			1 post
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: No registered users and 95 guests