It is currently 08 Sep 2025, 20:57
   
Text Size

Coat of Arms

Post MTG Forge Related Programming Questions Here

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

Coat of Arms

Postby moomarc » 04 Feb 2013, 10:18

I was looking to add Velis Vel for Planechase matches and decided to try script it instead of adding to the hard coded bit for Coat of Arms. I've tested everything I could think of including multiple CoA's and cards with changeling, multiplayer and single player. I tried the CoA's with different controllers etc and made sure that AddPower/Toughness still works for straight integers and X/Y values (while I was in the area I made the variable names flexible - no longer only X or Y).

Everything works, but maybe one of the code gurus should check it out to make sure I didn't use any suboptimal code, or just see if it needs to be cleaned up.

Edit: Oops. Forgot to commit one of the files. Now everything should work for everyone.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Coat of Arms

Postby Hellfish » 04 Feb 2013, 14:31

I'm not too familiar with the static abilities code but I do know Alpha Status should be similarly convertable. :mrgreen:
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: Coat of Arms

Postby moomarc » 04 Feb 2013, 15:09

Hellfish wrote:I'm not too familiar with the static abilities code but I do know Alpha Status should be similarly convertable. :mrgreen:
Excellent. I was going to ask whether anyone knew of any similar cards next.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Coat of Arms

Postby moomarc » 05 Feb 2013, 11:17

Thanks Sloth for those fixes. I was convinced I caught everything, but I guess not.

Then on to brighter things, Alpha Status is converted to script. Any other cards that we have (or don't have) that might use the same approach?
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 68 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 68 users online :: 0 registered, 0 hidden and 68 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 68 guests

Login Form