Heads up, scripters! Counters-property changed.
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
7 posts
• Page 1 of 1
Heads up, scripters! Counters-property changed.
by Hellfish » 19 Sep 2011, 10:47
The validcard-property "counters" had some niggling little annoyances that were fixed in r10546 (namely being unable to compare against svars other than "X" or "Y" and needing a workaround in order to compare with integers > 9). Unfortunately the solution required a syntax change. A simple one, yes, but it'd definitely be annoying if you didn't know about it.
The property name ("counters"), the comparator ("LT/LE/EQ/NE/GE/GT#") and counter type are now separated by underscore.
This has been a public service announcement.
The property name ("counters"), the comparator ("LT/LE/EQ/NE/GE/GT#") and counter type are now separated by underscore.
This has been a public service announcement.
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: Heads up, scripters! Counters-property changed.
by friarsol » 19 Sep 2011, 11:59
Hellfish, want to give an example or two?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Heads up, scripters! Counters-property changed.
by Hellfish » 19 Sep 2011, 12:03
Well, I guess I was a bit unclear, but the change is quite simple really:
Before:
Before:
- Code: Select all
countersGE1P1P1
- Code: Select all
counters_GE1_P1P1
- Code: Select all
...countersGEXLEVEL...
SVar:X:Number$12
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: Heads up, scripters! Counters-property changed.
by Max mtg » 19 Sep 2011, 15:05
I've noted that Arcbound Worker does not enter the battlefield correctly - it just dies (when there are no permanents that would increase toughness of all your creatures). There must be some State Based Effects Check while counters are not put yet.
Is that related to counters mechanics or my changes to PlayerZones location?
I've attached a deck for your convinience.
Is that related to counters mechanics or my changes to PlayerZones location?
I've attached a deck for your convinience.
- Attachments
-
Affinity Blue Hard.dck.txt
- (523 Bytes) Downloaded 175 times
Last edited by Max mtg on 19 Sep 2011, 15:06, edited 1 time in total.
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Heads up, scripters! Counters-property changed.
by friarsol » 19 Sep 2011, 15:05
I probably could have figured it out, but I had just woken up and didn't feel like it. Easier if there is a concrete example along with the post, so I don't have to try to find a card that does it.Hellfish wrote:Well, I guess I was a bit unclear, but the change is quite simple really:
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Heads up, scripters! Counters-property changed.
by Sloth » 19 Sep 2011, 15:40
I haven't checked what's causing this, but it must have been a very recent change. I've used Chaotic Goo this weekend (saturday?) and it worked - today it does not.Max mtg wrote:I've noted that Arcbound Worker does not enter the battlefield correctly - it just dies (when there are no permanents that would increase toughness of all your creatures). There must be some State Based Effects Check while counters are not put yet.
Is that related to counters mechanics or my changes to PlayerZones location?
I've attached a deck for your convinience.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Heads up, scripters! Counters-property changed.
by Max mtg » 20 Sep 2011, 00:27
That was my fault, sorry.Sloth wrote:I haven't checked what's causing this, but it must have been a very recent change. I've used Chaotic Goo this weekend (saturday?) and it worked - today it does not.
Well, at least I'm learning Forge's internals (not only pretty quest and deck management)
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 36 guests