Coat of Arms
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
4 posts
• Page 1 of 1
Coat of Arms
by 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.
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
-
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
by 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. 

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
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
-
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
by moomarc » 04 Feb 2013, 15:09
Excellent. I was going to ask whether anyone knew of any similar cards next.Hellfish wrote:I'm not too familiar with the static abilities code but I do know Alpha Status should be similarly convertable.
-Marc
-
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
by 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?
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
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 68 guests