The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: G-Man on November 11, 2006, 09:21:13 PM

Title: Certain variables
Post by: G-Man on November 11, 2006, 09:21:13 PM
I learned how to use switches and variables last night!  :zoid:

But there's something I need help with. :-\

How do I make variables that make NPC's tell me how much XP/MP/HP/GP i have or what level I currently am. I read how to do it on a guide on a website but it confuses me and I cant do it right

And I would also like to know if it's just fork conditions that you use for NPC's to tell you whether you have enough XP/MP/HP/GP/Level to continue or not?

Any help would be appreciated!  ;D







Title: Re: Certain variables
Post by: darkelementwars on November 11, 2006, 09:31:39 PM
i dont know if theres a way to do that with just events, u may need to look at some scripts (this is for XP)
Title: Re: Certain variables
Post by: :) on November 11, 2006, 09:33:42 PM
can't you use a message system, and some good events to do this?
Title: Re: Certain variables
Post by: G-Man on November 11, 2006, 09:34:29 PM
I'm using 2000 not XP
Title: Re: Certain variables
Post by: G-Man on November 11, 2006, 09:37:32 PM
What I want to know is how i type the variable out to make NPC's show how much XP/MP/GP/HP/Level I have. I know how to use message systems and create events but i don't know how to type the variable out or make it increase as i kill each monster or complete a quest etc
Title: Re: Certain variables
Post by: Zeriab on November 12, 2006, 12:00:54 PM
Here you can see the special message codes:
http://rmrk.net/index.php?topic=18.0
You just have to store the information in the variables.

I would guess it's just fork conditions that you should use.

Sorry for the vague response. Been a long time since I used RPG Maker 2000
- Zeriab
Title: Re: Certain variables
Post by: Lavos84 on November 16, 2006, 05:29:39 AM
Here's what you can do:

1) Have the hero talk to an NPC.
2) In the event commands, page 1, select "Change Variable"
3) Name variable#0001 "experience points"
4) Set variable "experience points" to -Hero(pick which hero): Exp.  (Hero is the sixth option down)
5) Click OK
6) In the event commands, page 2, select "Show Message"
---THIS IS THE IMPORTANT PART---
7) Type something like, "Hero, you have earned \V[1] experience points!"

The answer to your question is the \V[1].  That will display the value in variable# 0001, which we named experience points.

It must look like this!  \V[1].  If you want to show the value in variable# 0007, you'd type \V[7].  Got it?