how to display a changing variable..
Displaying 1-6 of 6 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
jesusfreak

ok, day I make a Gp system ( money)
so, how would I print the "NEW" sum after buying an item?? (i have 500Gp, I buy a potion for 200Gp, so that is, Gp=(500-200)
so I go to a print string or something...

Printstring(this is where I get goofed up);

can anyone help me on how to show the new sum PHysically??"

heeellllppp PLEASE!!!! PRETTY PLEASE PRETTY PRETTY PLEASE!!



... OI have been deprived of my mountain few :( my mommy will not get it today!! she make igor angry!!

Posted on 2000-12-27 00:49:02

Praetor





Praetor - Strong enough for a man, but made for a woman.

Posted on 2000-12-27 01:11:29

TheGerf

line 244
"str(int) - converts a numerical value into string form."
line 721
"void GotoXY(int x, int y)"
Line 1019
"void PrintString(int font, string text)"

To not be a total ass:
GottoXY(100,100); printstring(0, str(gp));




TheGerf, not just any gerf.

Posted on 2000-12-27 01:39:45

Ashaman

WARNING



Posted on 2000-12-27 02:24:06

jesusfreak

A few last Questions..
[1]. I defined Gp as an int in my system.
thus meaning that is a GLOABAL int, But, I am worried about the GP changing when I change a map. Will the Gp Value Change..??

[2]. Is there a way to show my GP during the whole game?? like a nice small box in the corner with a nice tranclucency and Gp strung in it??
or is this not an option?


BTW Gerf, you are going to be in my Credits for helping me!!



... OI have been deprived of my mountain few :( my mommy will not get it today!! she make igor angry!!

Posted on 2000-12-27 04:26:34

Rysen

The GP value will not change when switching maps unless you
tell it to in the autoexec of the map's vc file. So don't worry ;)

Secondly it is possible to have a little translucent box display
in the corner showing the amount of GP the player currently has.
What I would do is to make a function called
DisplayGP(); or which ever, that will display the box plus Print
the current amount of GP the player currently holds,
and hookretrace it in the Autoexec of any map's vc that you would want
it to be displayed in. ie. hookretrace(displayGP); Don't forget to add
the letter 'R' to your maps render string, as the hookretrace won't show up
if you don't.

Hope that helps. =)





Posted on 2000-12-27 05:26:18


Displaying 1-6 of 6 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.