Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Aging Characters wioth Variables
Geekman
post Jan 25 2013, 03:36 PM
Post #1


Level 3
Group Icon

Group: Member
Posts: 33
Type: Event Designer
RM Skill: Intermediate




Can I make a variable go up everytime another variable has a certain constant?
i.e. Variable 1 has 3 as the constant. Everytime Variable 2 has a certain number as it's constant, Variable 3 raises by 1.
This could be used to make a character age, with 1 being his birthday, 2 being the number of days that have gone by, and 3 being the character's age.
If you can find another way to make a character age, please comment.
Go to the top of the page
 
+Quote Post
   
markchapman10
post Jan 25 2013, 06:27 PM
Post #2


Visit the Map Shop for all your mapping needs!
Group Icon

Group: Staff
Posts: 245
Type: Mapper
RM Skill: Skilled




Out of curiosity where would you display this variable?
Go to the top of the page
 
+Quote Post
   
Geekman
post Jan 25 2013, 06:37 PM
Post #3


Level 3
Group Icon

Group: Member
Posts: 33
Type: Event Designer
RM Skill: Intermediate




QUOTE (markchapman10 @ Jan 25 2013, 07:27 PM) *
Out of curiosity where would you display this variable?

At various points throughout the game. There might be an NPC in your home town that says: Wow! You're already [Insert Variable here]!
Go to the top of the page
 
+Quote Post
   
markchapman10
post Jan 25 2013, 06:48 PM
Post #4


Visit the Map Shop for all your mapping needs!
Group Icon

Group: Staff
Posts: 245
Type: Mapper
RM Skill: Skilled




Then why not have one variable for the age and when you hit certain points in the game change it? I didn't completely understand the first post. what are the other variables for?
Go to the top of the page
 
+Quote Post
   
Geekman
post Jan 25 2013, 06:58 PM
Post #5


Level 3
Group Icon

Group: Member
Posts: 33
Type: Event Designer
RM Skill: Intermediate




QUOTE (markchapman10 @ Jan 25 2013, 07:48 PM) *
Then why not have one variable for the age and when you hit certain points in the game change it? I didn't completely understand the first post. what are the other variables for?

The characters aren't supposed to age by storyline, but by the number of days that pass. A day would pass everytime you sleep. The game goes by a 99 day-year (which may be raised). I want to figure out how to make them age based on how many times you use an inn, which would be Variable.
Go to the top of the page
 
+Quote Post
   
markchapman10
post Jan 25 2013, 07:57 PM
Post #6


Visit the Map Shop for all your mapping needs!
Group Icon

Group: Staff
Posts: 245
Type: Mapper
RM Skill: Skilled




I would look into building an evented time system, if you think you can't do that then you should get a day/night/time script. after you have chosen one of those you can see further into this. I would have posted some examples but I'm not sure if you have stated what your using. If you have any problems with this I can help you via pm or skype.
Go to the top of the page
 
+Quote Post
   
Geekman
post Jan 26 2013, 05:38 AM
Post #7


Level 3
Group Icon

Group: Member
Posts: 33
Type: Event Designer
RM Skill: Intermediate




QUOTE (markchapman10 @ Jan 25 2013, 07:57 PM) *
I would look into building an evented time system, if you think you can't do that then you should get a day/night/time script. after you have chosen one of those you can see further into this. I would have posted some examples but I'm not sure if you have stated what your using. If you have any problems with this I can help you via pm or skype.


It's XP.
Thanks.
Go to the top of the page
 
+Quote Post
   
Shaddow
post Jan 27 2013, 02:45 PM
Post #8


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




This is actually totally possible! I do it all the time using variables for timers as such. I do not have XP so I cannot show you a screen shot or demo, but basically you just need to have a conditional branch check one of your variables constantly by putting it in a common event with parallel process running.

Next inside that same common event you will have a conditional branch that checks out the variable you are constantly raising as a timer. Once you hit whatever predetermined number you want, increase a second variable by 1, then have a second conditional branch that checks the second variable and when it reaches a certain number, increase a third variable by 1, continue this as much as possible to have minutes, hours, days, weeks, months, years, decades....pretty much anything you want. It is all rather simple.

If you need more detail, feel free to ask and I can see what else I can do for you.


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 11:51 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker