Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Kon-Tiki on April 17, 2003, 02:55:14 PM

Title: Displaying values
Post by: Kon-Tiki on April 17, 2003, 02:55:14 PM
Does anybody know how to display or print the value of a var? Both would be even better.

-Kon-Tiki-
Title: Re:Displaying values
Post by: Eero R on April 17, 2003, 03:07:44 PM
For example:

display(0,0,"You've got %v100 bucks.");
print("You've got %v100 bucks and %v101 cents.");

Hope that's helpful... ;)
Title: Re:Displaying values
Post by: MagickPoultry on April 17, 2003, 03:09:48 PM
You use a percent sign.  For example,

print("You have %v50 pulsating ulcers on your back.");

and it works for display, too. Is that what you meant?

Oops, it appears someone beat me to it.
Title: Re:Displaying values
Post by: Kon-Tiki on April 17, 2003, 04:58:03 PM
*Slaps himself on the forehead*
Should've known that. Have already used that as tests some time ago.
Thanks.

-Kon-Tiki-
Title: Re:Displaying values
Post by: StrangeQuark on April 19, 2003, 09:37:48 AM
Oops, it appears someone beat me to it.

MMIIIIIIIIIIIIIIIIIINNNDDPPIIIIIIIIIIIIIIISSSSSS!!!!!!!!!

Nobody here knows what I'm on about, so I'll just get my coat now...