Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> JanKen RPS, fast-paced and easy to play!
Alt_Jack
post Mar 3 2011, 10:01 PM
Post #1


Level 19
Group Icon

Group: Revolutionary
Posts: 377
Type: Event Designer
RM Skill: Skilled
Rev Points: 40




Yes, Rock/Paper/scissors (or RPS), also known as Jan Ken, is now available as an obnoxious VX mini-game.
since I don't release demos (please don't complain), simply copy it down, since it's written word-for-word. Comp is computer and represents their random number, player is you and that variable corresponds to your choice. The part where it says \v [ 9 ] is the variable it has in my game, and is solely for testing; it shows you what number the computer has before asking you to make a selection, so remove it.
JanKen RPS

Comment: a/1=rock
>b/2=paper
>c/3=scissors
Label: Start
control variables: [0009]Comp = random no (1...3)
text: computer: \v[9]
show choices: rock, paper, scissors
-When Rock
control variables: player = 1
condition branch: variable Comp = = variable player
call common event: draw
text: play again?
show choices: yes, no
when yes
jump to label: start
when no
branch end
condition branch: variable comp = = 3
call common event: win
text: play again?
show choices: yes, no
when yes
jump to label: start
when no
branch end
Condition branch: when variable comp = = 2
call common event: lose
text: play again? (etc)

You get the idea (I hope). Use the comment box as a guide when making the other two (paper, scissors). If you play "match the numbers" with the variables, you'll figure it out easily.

3 additional things:

1. The "comment" section at the beginning is to remind you what corresponds with what, and should be used accordingly
2. if you're one of those people who like making pictures of everything, put in "show picture: 1" at X+ -100, then "move picture" to 0,0.
this makes the picture appear offscreen, then slide in. Simply reverse it to have hands slide in from both sides. Put it in either the common event codes or before it's called up (after the variable matching)
3. the common events (win/lose/draw) have "gold-change-increase-100", "gold-change-decrease-100", and no change (respectively)

I also probably spelled "scissors" wrong.

Anyways, I'm very tired right now, so I'll fill in the rest t'morrow. pinch.gif


__________________________

the Alternate Jacks event demo
As well as all of my images in one place, free for use.
Most of my images will be there, since this site takes too long to approve stuff and VX.net has no bulk uploader.
Go to the top of the page
 
+Quote Post
   

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 11:36 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker