Making an income in game? (RPG maker xp)

Status
Not open for further replies.

Cremno

Villager
Member
Joined
Apr 19, 2013
Messages
10
Reaction score
0
First Language
English
Primarily Uses
I'm not sure this is the right place to post, if not, I'm sorry...

Anyway, I've been thinking of ways to make an income in game. Say you own a building making a set income, how would I go about it...

I've been trying to experiment with timers, making it so you can go collect your money every time it reaches 0, however, this poses several problems, since the timer does all sort of things when reaching 0.

Then I thought of using steps, however the fact that you can't reset the step counter makes this impossible too.

And even if one of the above worked, it would only work for one shop, making each shop have a different system for income.

So! Does anyone know of a good income system? I searched the internet, but I was unable to find a good way of doing so, so any help is appreciated!

Edit: I'm sorry, this post is totally in the wrong section! Can a mod help me move it to XP support?
 
Last edited by a moderator:

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,511
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
Use a parallel Common Event with a variable timer? Then when the player collects the money it resets the variable.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
count steps up instead of down - checking current steps in a parallel process and flag the income whenever (steps modulo 1000) equals zero (or any number of steps you choose instead of 1000)
 

Cremno

Villager
Member
Joined
Apr 19, 2013
Messages
10
Reaction score
0
First Language
English
Primarily Uses
Use a parallel Common Event with a variable timer? Then when the player collects the money it resets the variable.
I'm not too sure of how that would work, since the timer would still be present, would it not? Since, once the timer reaches 0, battle is no longer possible and such? Or am I wrong?

count steps up instead of down - checking current steps in a parallel process and flag the income whenever (steps modulo 1000) equals zero (or any number of steps you choose instead of 1000)
I'm sorry, but how would this work? I can't seem to figure out how this would be done?
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,511
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
I'm not too sure of how that would work, since the timer would still be present, would it not? Since, once the timer reaches 0, battle is no longer possible and such? Or am I wrong?
I don't understand... how would battle not be possible because of a timer?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
I'm sorry, but how would this work? I can't seem to figure out how this would be done?
The modulo operator (that is one of the basic mathematical operations like plus, minus, division, multiplication found under control variable in VX Ace, and it should be similiar for XP) equals zero only on multiples of the second operand. So when counting steps, the operation (steps modulo 1000) gets zero at 1000 steps, 2000 steps, 3000 steps and so on. If you check that there is no need to reset the steps, the income will come every thousand steps.

And you should be able to check that condition in something like a parallel process even in XP (don't own it, therefore I can't show beyond the basics for you).
 

Cremno

Villager
Member
Joined
Apr 19, 2013
Messages
10
Reaction score
0
First Language
English
Primarily Uses
I don't understand... how would battle not be possible because of a timer?
When a timer hits zero it will auto exit all battles, and some people have said it does things when in shop too. This makes it hard to deal with :/

The modulo operator (that is one of the basic mathematical operations like plus, minus, division, multiplication found under control variable in VX Ace, and it should be similiar for XP) equals zero only on multiples of the second operand. So when counting steps, the operation (steps modulo 1000) gets zero at 1000 steps, 2000 steps, 3000 steps and so on. If you check that there is no need to reset the steps, the income will come every thousand steps.

And you should be able to check that condition in something like a parallel process even in XP (don't own it, therefore I can't show beyond the basics for you).
So if I use the MOD it will automatically add the income for every 1000 steps? But then comes the question, would that not need a constant event to run in the background? Should I then have to place an event activating it in all maps? A call common event?
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,511
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
When a timer hits zero it will auto exit all battles, and some people have said it does things when in shop too. This makes it hard to deal with :/
Oh, never used XP, so wouldn't know. Although a variable timer is quite different from the regular timer.
 

Cremno

Villager
Member
Joined
Apr 19, 2013
Messages
10
Reaction score
0
First Language
English
Primarily Uses
Oh, never used XP, so wouldn't know. Although a variable timer is quite different from the regular timer.
Don't you need a normal timer to make a variable timer function? The variable will simply follow the timer?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
would that not need a constant event to run in the background
Parallel common event runs on all maps.


Your income would not increase during battle, or in any other scene, but there are probably ways to get around that.


I don't know what kind of scripts they have in XP.
 
Last edited by a moderator:

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,511
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
Don't you need a normal timer to make a variable timer function? The variable will simply follow the timer?
Parallel common event that does:


-Increase or decrease variable by 1.


-Wait command set to 1 second.
 

Cremno

Villager
Member
Joined
Apr 19, 2013
Messages
10
Reaction score
0
First Language
English
Primarily Uses
Parallel common event that does:

-Increase or decrease variable by 1.

-Wait command set to 1 second.
Ah, I see! I'll use this! Thanks! 
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top