%S, %D and other gripes

Started by rtf, Thu 04/03/2004 01:06:49

Previous topic - Next topic

rtf

OK, here is another one of those "Bird's Nest" topics (I have began calling them that, beause birds biuld nests from instinct) that everyone seems to know how to do, but isn't in the forums.
I have searched the manual, and I have searched the forums, yet I still do not understand the %S and %D things.

How can I use them?  Are they constants?  Are they variables?  How does the editor understand what to put in place of them?  How can I get the strings on the TopBar?  How can I make a cursor where it says the name right near the cursor like on "The Uncertainty Machine?"

A lot of people know this, so there is no excuse.

If I don't get a reply in 2 hours, everyone will perish.


that is all
I fail at art.

Gilbert

They're string formatting commands so to be replaced by other values. %d is for integers, %s for string.

You can read about it in the Display() function entry of the manual.

rtf

#2
OK, thanks for the assistance.

But now I ask this:

How can I use them to my advantage by displaying the object that the mouse is over on the status bar at the top of the screen?
I fail at art.

Ishmael

I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk