Main Menu
  • Welcome to The RPG Maker Resource Kit.

how to show Varible numbers? (rpgxp)

Started by TwichyBoy, April 22, 2007, 04:39:27 AM

0 Members and 1 Guest are viewing this topic.

TwichyBoy

I want to make it so when your showing text it displays the value of a varible is it possible?

Erk64

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]
[spoiler=My Game Recommendations] 1) Demon Gate --- A great game with a terrific character-relationship system, an engaging story, and plenty of secrets and options for players who wish to be good/evil.
http://www.raizap.com/demongate/

2) Midnight --- A survival-horror game created with RPG Maker XP. Combat plays out in the smoothest running real-time battle system I have seen yet.
http://rmrk.net/index.php/topic,23239.0.html

3) The Healer --- A charming game with beautiful mapping and a fun battle system. One of the few games to use a healer as a main character, and so far it's pulled off well.
http://rmrk.net/index.php/topic,23524.0.html[/spoiler]

TwichyBoy

but the value of the varible constantly changing

magic2345

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.
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%

TwichyBoy

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

Kokowam

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)

magic2345

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!
Game I'm Working on:
-ADVENT-
Progress:
Story: 96%
Maps: 4%
Characters: 70%