Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Aging Characters wioth Variables
Geekman
post Jan 25 2013, 03:36 PM
Post #1


Level 3
Group Icon

Group: Member
Posts: 32
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
   
 
Start new topic
Replies
Shaddow
post Jan 27 2013, 02:45 PM
Post #2


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: 18th May 2013 - 04:31 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker