It is currently 26 May 2013, 07:18
   
Text Size

Remembering Integers

Moderators: timmermac, moomarc, DennisBergkamp, Rob Cashwalker, Chris H., CCGHQ Admins

Remembering Integers

Postby 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.
-Marc
User avatar
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

Postby 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
--Sol, Rules Lawyer

Post a Useful Bug Report
friarsol
Programmer
 
Posts: 4122
Joined: 15 May 2010, 04:20
Has thanked: 70 times
Been thanked: 313 times


Return to Forge

Who is online

Users browsing this forum: Niv-Mizzet and 3 guests


Who is online

In total there are 4 users online :: 1 registered, 0 hidden and 3 guests (based on users active over the past 10 minutes)
Most users ever online was 177 on 10 Oct 2011, 16:37

Users browsing this forum: Niv-Mizzet and 3 guests

Login Form