Remembering Integers

moomarc wrote: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.
Continueing this where I'd originally meant to post this...friarsol wrote: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
I had initially wanted (and tried) to implement this directly in xCount but couldn't work out how to get the same value (eg card toughness) at different points of resolution. It seems like it has to be stored temporarily. You said yourself to Mark that we needed the facility to store a value for cards like Tree of Redemption. But if you can give me some hints on how to do it I'll try to add directly to count again. Or perhaps I'm just misunderstanding what you want.