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,884
Reaction score
2,052
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
33,372
Reaction score
8,395
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,884
Reaction score
2,052
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
33,372
Reaction score
8,395
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,884
Reaction score
2,052
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,878
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,884
Reaction score
2,052
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.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,902
Reaction score
14,996
First Language
English
Primarily Uses
RMMV

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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,902
Reaction score
14,996
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.

Latest Threads

Latest Posts

Latest Profile Posts

welp, I literally can't continue working on ALEX now that my MZ trial is up (unless I somehow place in the jam which I don't remotely deserve to for my unfinished crap) so I am back on my bullshit
some test stuff. Empty for now. My other project (this project) needs more attention. The lagging really kicks up when I try to capture gameplay. ✨
Real-Time Battles, Pixel Filter, Animate Cursor & Menus & Windows | RPG Maker News #114

When your side job becomes more interesting than your dayjob and you think "do I quit again or finally actually do the same thing for more than five consecutive years..." I don't think I'll ever be able to say that though, I just cannot stick with one thing like you're 'supposed to'.

Forum statistics

Threads
113,884
Messages
1,078,179
Members
147,973
Latest member
Absent_Dreamer
Top