- 165
- Posts
- 19
- Years
- Seen Mar 25, 2012
Hi people!
This tutorial will show you how to make a salary system, just like in Final Fantasy 8. You will get paid everytime you walk a certain amount of steps.
Needed:
2 Switches
4 Variables
First of all, create a map with a character on it. Make them say something like : Do you want to work for me. Give a choice. If yes is chosen, turn switch 1 on, and show text explaining that you will get paid after so many steps. Your event page should look something like this:
@>Text: Do you want to work for me?
@Show Choices: Yes, No
: When [Yes]
@>Text:You will get paid for every 20 steps you take.
@>Control Switches: [Working=ON]
@>
: When [No]
@>Text:Fine then...
So now you have set up a switch to show you have started working. Now go the the database and make a Common Event. Make it a paralell process, and set it working when switch 1 is on. Do something like this for it:
@>Control Variables: [0004: Set steps] += 20
@>Control Switches: [0002: Wait for salary] = ON
@>Control Switches: [0001: Working] = OFF
This will make sure that everytime you receive your salary, you will have to wait another 20 steps for your next pay.
Now to make another Common event. This one will give you your salary, depending on what rank you are. Set this one to parallel process, and turn it on when switch 2 is on. Now, put this in.
@>Control Variables: [0003: Money] = Variable [0002: Rank]
@>Control Variables: [0002: Rank] = 5
@>Control Variables: [0001: Steps] = Steps
@>Conditional Branch: Variable [0001: Steps] == Variable [0004: Set steps]
@>Control Variables: [0003: Money] *=100
@>Chage Gold: + Variable [0003: Money Received]
@>Play ME: '007-Fanfare01', 100, 150
@>Text:-----------------------------Payday--------------------------
Rank \v[2]
Pay \v[3]
@>Control Switches: [0001: Working] = ON
@>Control Switches: [0001: Wait for salary] = OFF
@>
: Else
@>
: Branch End
@>
All this will mean that your rank * 100 is the money you receive. The last bit about switches make sure that you get your next pay in 20 steps.
I have also uploaded a demo for this tutorial, so that you can see it in action. The demo is here.
In part 2 of this tutorial, I will show how to change the rank depending on battles etc.
Please enjoy the tutorial, report bugs, and credit me! Hope you enjoy it!
:t131:Micklo
This tutorial will show you how to make a salary system, just like in Final Fantasy 8. You will get paid everytime you walk a certain amount of steps.
Needed:
2 Switches
4 Variables
First of all, create a map with a character on it. Make them say something like : Do you want to work for me. Give a choice. If yes is chosen, turn switch 1 on, and show text explaining that you will get paid after so many steps. Your event page should look something like this:
@>Text: Do you want to work for me?
@Show Choices: Yes, No
: When [Yes]
@>Text:You will get paid for every 20 steps you take.
@>Control Switches: [Working=ON]
@>
: When [No]
@>Text:Fine then...
So now you have set up a switch to show you have started working. Now go the the database and make a Common Event. Make it a paralell process, and set it working when switch 1 is on. Do something like this for it:
@>Control Variables: [0004: Set steps] += 20
@>Control Switches: [0002: Wait for salary] = ON
@>Control Switches: [0001: Working] = OFF
This will make sure that everytime you receive your salary, you will have to wait another 20 steps for your next pay.
Now to make another Common event. This one will give you your salary, depending on what rank you are. Set this one to parallel process, and turn it on when switch 2 is on. Now, put this in.
@>Control Variables: [0003: Money] = Variable [0002: Rank]
@>Control Variables: [0002: Rank] = 5
@>Control Variables: [0001: Steps] = Steps
@>Conditional Branch: Variable [0001: Steps] == Variable [0004: Set steps]
@>Control Variables: [0003: Money] *=100
@>Chage Gold: + Variable [0003: Money Received]
@>Play ME: '007-Fanfare01', 100, 150
@>Text:-----------------------------Payday--------------------------
Rank \v[2]
Pay \v[3]
@>Control Switches: [0001: Working] = ON
@>Control Switches: [0001: Wait for salary] = OFF
@>
: Else
@>
: Branch End
@>
All this will mean that your rank * 100 is the money you receive. The last bit about switches make sure that you get your next pay in 20 steps.
I have also uploaded a demo for this tutorial, so that you can see it in action. The demo is here.
In part 2 of this tutorial, I will show how to change the rank depending on battles etc.
Please enjoy the tutorial, report bugs, and credit me! Hope you enjoy it!
:t131:Micklo