The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => Topic started by: TwichyBoy on April 22, 2007, 04:39:27 AM

Title: how to show Varible numbers? (rpgxp)
Post by: TwichyBoy on April 22, 2007, 04:39:27 AM
I want to make it so when your showing text it displays the value of a varible is it possible?
Title: Re: how to show Varible numbers?
Post by: Erk64 on April 22, 2007, 04:49:50 AM
Yes, it's possible, and it's quite simple too. Just type \v[n] in the text box to display the value of the variable. The "n" represents the variable you want to display. For example, if you want the text box to show the value stored in variable #7, you would type \v[7]
Title: Re: how to show Varible numbers?
Post by: TwichyBoy on April 22, 2007, 05:02:03 AM
but the value of the varible constantly changing
Title: Re: how to show Varible numbers? (rpgxp)
Post by: magic2345 on April 22, 2007, 07:14:44 AM
Constantly changing? Well I've never tried it, but I don't think that while the text is showing, the variable can change....unless you have some kind of parallel common event.
Title: Re: how to show Varible numbers? (rpgxp)
Post by: TwichyBoy on April 22, 2007, 08:44:13 AM
the varible isn't changing during when it's being shown
here is what i'm working on
I put in day to night feture and you have a certain amount of days to do reach a certain area
and every night the varible increases one per night and i want to make it so you can check how many days you have left
Title: Re: how to show Varible numbers? (rpgxp)
Post by: Kokowam on April 22, 2007, 10:34:03 AM
Oh... Well, you're going to either need scripts to show it, or you're going to need 10 pictures that you can use a parallel process to display the 10 digits for the time. I think... Script works best but eventing takes a bit longer (unless you can't script, but still XP)
Title: Re: how to show Varible numbers? (rpgxp)
Post by: magic2345 on April 22, 2007, 10:40:49 AM
If you want to check how much days you have left, and you want it through events. Here's what you could do:

- Make another variable. We'll call it, "Max Day". We'll call the variable that increases one every night, "Day Count".
- Lets say the "certain amount of days" is 10.
- Make "Max Day"'s value 10.
- To check the amount of days left, simply substract the "Day Count" from "Max Day".
- Then, in the text. Make it show Max Day. It will show you how much days you have left.
- Make the "Max Day"'s value 10 again.

And thats it!