It is currently 14 May 2025, 22:09
   
Text Size

Remembering Integers

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, 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: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 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
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times


Return to Forge

Who is online

Users browsing this forum: Google [Bot] and 22 guests


Who is online

In total there are 23 users online :: 1 registered, 0 hidden and 22 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: Google [Bot] and 22 guests

Login Form