Post by GCN on Nov 5, 2007 19:10:59 GMT -5
Ok, this is a target for newer members to the rpg maker community who who
would like to make their a little bit more interesting. It starts like this:
The first thing you want to do is make a name for your item. Call it like a Mog's Vision or something and make sure that it is a switch. Under turn on switch make a new switch called stats.It can be used an unlimited number of times.So your new item should be able to be used an unlimited amount of times, and when used it turns on a switch. That should be easy enough. Now on to the variables.
-IF YOU UNDRESTAND VARIABLES,SKIP TO PARAGRAPH 4!-
--------------------------------------------------------------------------------------------------------
Ok, a variable is a number can can be measured so that you would be able to show somethng after a specific number of times. For example, you are locked in Jail and you can't get out. You made an event that is placed on the door that says variable get out is set to 0. Ok, now the evnt also says that when enter is pushed the variable get out is being added by 1. Now, you made a fork condition that says if variable get out is 3 you teleport outside. That;s basically what a variable is.
--------------------------------------------------------------------------------------------------------
Ok, now on to the coding.
Make a new common event called Timer On Clock. It shuold be triggered by a parralell process. Now in Timer on clock put a wait (2nd page on event editor) command that is two seconds. Now make three variables. Timer seconds, timer minutes and timer hours. Now what we want is for timer seconds to add to 60 and when it is 60 it adds 1 to minute and e.t.c.So add 1 to variable timer seconds, then make a conditional branch that says if timer seconds is 60 add 1 to timer minutes, and if timer minutes is 60 add 1 to timer hours.
Your coding should look like this:
<>Wait 1.0 sec
<>Variable Oper:[?:Timer seconds]+,1
<>Branch if variable [?:Timer seconds] is 60
<>:[?:Timer seconds] Set, 0
<>:[?:Timer minutes]]+,1
<>
:End
<>Branch if variable [?:timer minutes]] is 60
<>:[?:Timer minutes] Set, 0
<>:[?:Timer hours]]+,1
<>
:End
That should be everything with that common event. Now make another common event called Mog's vision(or the name you chose) triggered by a parrallel process but this time uner trigger switch put the switch that you placed under your item.For example as I said earlier mine was stats. Ok, now open up the variable operations window and make a variable called number of escapes.Now , click set under the operation and under operand click other. Under other you should see number of escapes. Now, do this for every option you would like to show. After your done with that go to message display option and mke sure auto select window is ticked off and that the message window is centered. Make a new message and paste these wordsunder the line into it:
---------------------------------------------------------------------------------------------
You have been playing for
v[?]] hours : v[?] minutes : v[?] seconds
---------------------------------------------------------------------------------------------
Replace the [?] with the number of the variable for each of the the timer options. For example, for the variable of hours you have to put the number of your timer hours. Now paste these words into a new message:
---------------------------------------------------------------------------------------------
You have saved v[?] times. ( -# of saves)
You have engaged in v[?] battles. ( -# number of battles )
You have won v[?] battles. ( -# number of victories)
You have lost v[?] battles. ( -#number of defeats)
---------------------------------------------------------------------------------------------
After this make a new messge display options and make the messgae display back to what it was before. Finally switch the switch "stats" off.
would like to make their a little bit more interesting. It starts like this:
The first thing you want to do is make a name for your item. Call it like a Mog's Vision or something and make sure that it is a switch. Under turn on switch make a new switch called stats.It can be used an unlimited number of times.So your new item should be able to be used an unlimited amount of times, and when used it turns on a switch. That should be easy enough. Now on to the variables.
-IF YOU UNDRESTAND VARIABLES,SKIP TO PARAGRAPH 4!-
--------------------------------------------------------------------------------------------------------
Ok, a variable is a number can can be measured so that you would be able to show somethng after a specific number of times. For example, you are locked in Jail and you can't get out. You made an event that is placed on the door that says variable get out is set to 0. Ok, now the evnt also says that when enter is pushed the variable get out is being added by 1. Now, you made a fork condition that says if variable get out is 3 you teleport outside. That;s basically what a variable is.
--------------------------------------------------------------------------------------------------------
Ok, now on to the coding.
Make a new common event called Timer On Clock. It shuold be triggered by a parralell process. Now in Timer on clock put a wait (2nd page on event editor) command that is two seconds. Now make three variables. Timer seconds, timer minutes and timer hours. Now what we want is for timer seconds to add to 60 and when it is 60 it adds 1 to minute and e.t.c.So add 1 to variable timer seconds, then make a conditional branch that says if timer seconds is 60 add 1 to timer minutes, and if timer minutes is 60 add 1 to timer hours.
Your coding should look like this:
<>Wait 1.0 sec
<>Variable Oper:[?:Timer seconds]+,1
<>Branch if variable [?:Timer seconds] is 60
<>:[?:Timer seconds] Set, 0
<>:[?:Timer minutes]]+,1
<>
:End
<>Branch if variable [?:timer minutes]] is 60
<>:[?:Timer minutes] Set, 0
<>:[?:Timer hours]]+,1
<>
:End
That should be everything with that common event. Now make another common event called Mog's vision(or the name you chose) triggered by a parrallel process but this time uner trigger switch put the switch that you placed under your item.For example as I said earlier mine was stats. Ok, now open up the variable operations window and make a variable called number of escapes.Now , click set under the operation and under operand click other. Under other you should see number of escapes. Now, do this for every option you would like to show. After your done with that go to message display option and mke sure auto select window is ticked off and that the message window is centered. Make a new message and paste these wordsunder the line into it:
---------------------------------------------------------------------------------------------
You have been playing for
v[?]] hours : v[?] minutes : v[?] seconds
---------------------------------------------------------------------------------------------
Replace the [?] with the number of the variable for each of the the timer options. For example, for the variable of hours you have to put the number of your timer hours. Now paste these words into a new message:
---------------------------------------------------------------------------------------------
You have saved v[?] times. ( -# of saves)
You have engaged in v[?] battles. ( -# number of battles )
You have won v[?] battles. ( -# number of victories)
You have lost v[?] battles. ( -#number of defeats)
---------------------------------------------------------------------------------------------
After this make a new messge display options and make the messgae display back to what it was before. Finally switch the switch "stats" off.