Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Game Creation
»
Requests
»
Tutorials
»
[TUTORIAL]DOUBLE COIN
« previous
next »
Print
Pages: [
1
]
Author
Topic: [TUTORIAL]DOUBLE COIN (Read 2713 times)
lesstor
Initiate
Posts: 11
RPG MAKER ROOOOCKSSSSSS
[TUTORIAL]DOUBLE COIN
«
on:
December 23, 2009, 02:59:07 PM »
Dual Currency
TUTORIAL DOUBLE COIN
MATERIALS NEEDED =- -=
- RPGMaker 2000/2003 1.7 or higher
- Two hands
- Basic knowledge of Forks, Variablles and Events Common
- A mouse and a keyboard (a good monitor serria tb)
- Lots of patience
PREPARATIONS =- -=
First of all, create two variables
Let's call in the case of gold and silver.
(we'll call, respectively, V1 and V2)
-= SESSION 1 - Setting the total cash =-
Open the database with F8 and go to Events tab Commons, leave start condition
PARALLEL PROCESS, leave the name you want, here we call "DETERMINING MONEY.
In the event, put a fork, a condition If, select the button variable, and select V2.Em the place to set both the value of that currency will be worth 1 point each other (eg 100 cents make a real, then if your money was the real, you should put 100 and so on, in the example, we use 75)
And let less marked maior.Desmarque exception Else.
Within this fork, place a CHANGE VARIABLE, select V1 as variable and leave as follows:
OPERATION-+ (PLUS)
OPERATING SETAR | 1 |
Therefore, another variable, as a condition, let the variable V2 and leave a message:
OPERATION-- (MORE)
OPERATING SETAR | 75 | (this will be the value that you left at the first fork.)
Will be like this:
* UNDERSTANDING *
We created an event that will be the item for sale, every time the hero interact with it, a message describing the item and the price of the same, so the option to purchase the item or not, if the player chooses to buy a fork check the variable "Age", which is the price of the item, and if the player has the necessary amount of gold, the object will be added to the inventory, and the variable of his money will decrease, because we spend money on the item, otherwise a message will say that he can not purchase the item.
-= SESSION 3 - DOUBLE COIN =-
There, items of a coin has been created just now, just copy and paste the event
the store, and change the price, description and item to be added.
Now comes the question "What if we put two coins, as we will change?"
Simple ... to open a new event and do the last process, put a message
describing the item, which will be the example, sword
and talking about its price, which in this example, is 15 parts gold and 50 silver.
Create a fork, as a condition, V2, on Sep place equal or greater, the value is 50 (silver).
Check exception else.
Inside the fork, put another fork, as a condition, V1, select or greater, and let SET
15 (Gold). Check exception else.
Within the exception of the last else fork, place something that shows that we can not
buy, as a message of type
"I have all the money"
Now, go back the last fork, place in it whatever you want, but in the end, put a
add item and select the item sold (potion) and a variable change
as a condition, Varible V2, in operation
put "-" and then in operating | 50 | (the 2nd item's price), and then another variable change
as a condition variable V1, in operation, select "-" and in operating, | 15 | (the 1st price of the item)
Now, within the exception else the first fork, put another fork, as a condition, V1
Mark 16 (one more than the normal price, understand why later) and let
ELSE.Dentro exception of fork, put whatever you want, but in the end, put a
add item and select the item sold (sword) and a variable change
as a condition, Varible V2, in operation
put "+" and check in operating | 50 | and another variable as change in operation condition V1
leave "-" and in operating, | 16 |. Now, in the second exception else V1 fork, place the old
scheme
"I have no money to buy" * UNDERSTANDING *
We created an event that will be the item for sale, every time the hero interacts with it, appear
a message describing the item and the price of the same, so the option to purchase the item or
not if the player chooses to buy a fork check the variable "Silver" and if we
the total amount of silver needed, another fork check if we have the total of gold necessary
and then add the item, if caso.Agora, the first exception else the 1st fork, if not
we have the total silver nescessário, but the total of gold, and another (in order
play the total value of silver) then, we will decrease 16 (which is the normal price in
gold, plus 1) of the variable Gold, and increase of 50 Silver variable, this value will be the change.
Now, enough to do this in all items of more than one value, just by changing 1 more
variable of gold, and increasing the variable Silver, and the value is the total change
No credits fron me
Logged
Who's Fat Eye uses diet colirio
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
Tutorials
»
[TUTORIAL]DOUBLE COIN