Remembering Integers
by mtgrares
Moderators: timmermac, moomarc, DennisBergkamp, Rob Cashwalker, Chris H., CCGHQ Admins
Remembering Integers
by moomarc » 06 Apr 2012, 20:32
I've just committed some work that enables the ability to remember and recall integer values. This is needed for cards like Tree of Redemption where the referenced value might change. It currently only supports RememberToughness, but it can be referenced easily for other values. To recall the value, use SVar:X:Number$RememberedValue.
It would probably be better to expand it to the form of RememberValue$Toughness instead of RememberToughness$True. It would make it neater to expand, but I couldn't get it to work properly. Anyway, the groundwork is there with a nice test-piece (Tree of Redemption) if anyone feels it needs to be improved.
It would probably be better to expand it to the form of RememberValue$Toughness instead of RememberToughness$True. It would make it neater to expand, but I couldn't get it to work properly. Anyway, the groundwork is there with a nice test-piece (Tree of Redemption) if anyone feels it needs to be improved.
-Marc
-

moomarc - Pixel Commander
- Posts: 1773
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 282 times
- Been thanked: 298 times
Re: Remembering Integers
by friarsol » 06 Apr 2012, 20:43
It'd probably be even better if we reused Count for this, which already does this same thing, but doesn't store it anywhere.
RememberValue$ CardToughness
RememberValue$ CardToughness
- friarsol
- Programmer
- Posts: 4122
- Joined: 15 May 2010, 04:20
- Has thanked: 70 times
- Been thanked: 313 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: Niv-Mizzet and 3 guests


