Display a variable numeric value in the clipboard?

Started by Momotaro, January 10, 2010, 01:01:17 PM

Previous topic - Next topic

Momotaro

Hi,
For a debugging use I would like to display the numeric value of a variable
If it was only 0 and 1, it would be easier, ut the range is [0,500].

I would like to display it in the clipboard when debugging my char.

Any idea how to do it?

Thanks in advance.

Byakko

.... I don't get it, what's the problem ?
Quote from: Example from one of my chars
[State -2, Clipboard]
type = DisplayToClipboard
trigger1 = 1
text = "Dist X : %f, parry : %d, button : %d, Combo : %f, Dampener (Combo>5) : %f"; \n CvS2 Sakazaki Ryo by Byakko"
params = P2BodyDist X,var(3),Var(4), fvar(10), fvar(11)
ignorehitpause = 1
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Momotaro

So you can directly display a variable value to clipboard.
Sorry about it. :-X
I was pretty sure it have to be done by converting the var value to his equivalent number.

So it's easier than I tought.

Bastard Mami

%d and %f take care of that, just read the docs, they explain how and which one to use.

Momotaro

Thanks it's already done. ;)

Before reading this part of the doc
I was sure, this function only display text but no variable or numeric values