RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Certain variables

Started by G-Man, November 11, 2006, 09:21:13 PM

0 Members and 1 Guest are viewing this topic.

G-Man

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








darkelementwars

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)
My Project: Dark Empire
http://rmrk.net/index.php/topic,7815.0.html
Official Site: http://darkempirerpg.tripod.com
Process: Getting back to work.

Always looking for sprites, if your interested, PM.

"But then I realized, why stop things from exploding, when in fact it is in exploding that things reach their perfect form. Of course, they only reach it for a few glorious seconds, but during that short time there is no object in the universe more beautiful." -Kite Rockswell, the Mad-Mad Bomber, from The Final War, my very own novel project.  PM me if you would like to read.

"Oh, sure, blaim the wizards..."

:)

can't you use a message system, and some good events to do this?
Watch out for: HaloOfTheSun

G-Man


G-Man

#4
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

Zeriab

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

Lavos84

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?