VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
14
Reaction score
3
First Language
German
Primarily Uses
RMXP
Hello,

i saw on the game "Vampires Dawn" a minigame called "arm-wrestle. You must move the cpu avatar with pressing Enter to
you and if he cross the red line you win. I want this minigame in my rpg-maker xp game.. i want first copy paste this but i
dont have rpg-maker 2k to look into Vampires Dawn. Can someone help me? Here a little pic what i mean:

wrestle.png
 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,310
Reaction score
11,490
First Language
German
Primarily Uses
RMMV
that sounds like a timed counter, using conditional branch button pressed to count up and a timer parallel process to count down.
 

VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
14
Reaction score
3
First Language
German
Primarily Uses
RMXP
that sounds like a timed counter, using conditional branch button pressed to count up and a timer parallel process to count down.

I think this thing dont had a time counter.. You win if the avatr from the cpu cross the redline
 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,310
Reaction score
11,490
First Language
German
Primarily Uses
RMMV
it needs a timer to both count the key presses of the player and to decide how fast the computer advances.
but that is not a timer like a clock, but a timer that counts waitframes in a variable.

and you can't make such a game without that.
 

KK20

Just some XP Scripter
Regular
Joined
Oct 11, 2018
Messages
489
Reaction score
201
First Language
English
Primarily Uses
RMXP
You're going to have to explain how the mini-game works more in detail since not all of us know what this game is that you're referring to. Is it just a simple "mash the button as fast as possible" game?
 

VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
14
Reaction score
3
First Language
German
Primarily Uses
RMXP
Right. You smash the enter button. With smashing the enter button you move the avatar from the cpu to you and the cpu try this with you too. If the CPU avatar cross the redline, you win. If your avatar cross the redline, you lose. I know that the cpu´s had difficulty level. I think that was with variable but i don´t know. I "stole" this minigame for one of my old projects and i change numbers to make the cpu easier or harder.
 

VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
14
Reaction score
3
First Language
German
Primarily Uses
RMXP
I think double post are not the best but i have the game and the "arm wrestle minigame" but i try to copy paste into rpg-maker xp but don´t work..

here are three pictures:

5c06e283b413d2c2f28a00e11a6f12a4.png

To understand this: Valnar is the "hero" and gegner is the enemy/cpu against you wrestle...
The Move route is only a animation to jump on a seat, not important...
"Zeiger" is the redline in the middle

So you have the other "events" in the arm wrestle room. One Autorun and One Parallel

Autorun:
a185bac500aaca16ad44dc03c7ed4a43.png

And parallel (are two pics but all in one event)
ec57e9a7d807d8b645231a65a97b7e08.png
c7584b219d0f9b027e3c83530c01f4a4.png
Punktekarte is a point that can we ignore, you can collect point on arm wrestle, if you win, you get one point, not important (for me)

And so looks like in the game
c01b170441c02bd32bd18391da0faebb.png

Soo i hope that can help to understand the minigame :D
 

KK20

Just some XP Scripter
Regular
Joined
Oct 11, 2018
Messages
489
Reaction score
201
First Language
English
Primarily Uses
RMXP
Those events should have been more than enough for you to figure the solution out yourself. Maybe only the button input part would be different, but there's plenty there to work with.

I've made a map with the events in question. Create a new project! In the ZIP, replace the map and system Data files, and add the two pictures. Then, you can open up the project. It's enough of a premise to get started with as I did not implement everything (for example the center line graphic).
 

Attachments

  • Files.zip
    6.4 KB · Views: 2

VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
14
Reaction score
3
First Language
German
Primarily Uses
RMXP
Hey :) Big thanks that works very perfect, i try to add a redline for the middle :) But i have one problem. If i´m in the arm wrestle event, i can scroll through my inventory and can interact with this items

7a9ab473654282c560d3660769a41125.png

Would be nice if that is disable for this event.. i try a few things but don´t work. To not show the item i add item0 (is nothing) but the player can use A and S to scroll though the inventory
 

KK20

Just some XP Scripter
Regular
Joined
Oct 11, 2018
Messages
489
Reaction score
201
First Language
English
Primarily Uses
RMXP
Try changing the main loop logic event from a parallel process to an autorun. Add a "Wait 1 frame" at the bottom of the event.

In that PlayerItems script I gave you, update this method with the following:
Code:
  def self.update
    input_update unless $game_temp.message_window_showing || $game_system.map_interpreter.running?
    picture_update
  end
 

VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
14
Reaction score
3
First Language
German
Primarily Uses
RMXP
Try changing the main loop logic event from a parallel process to an autorun. Add a "Wait 1 frame" at the bottom of the event.

In that PlayerItems script I gave you, update this method with the following:
Code:
  def self.update
    input_update unless $game_temp.message_window_showing || $game_system.map_interpreter.running?
    picture_update
  end

Works, i can not through my inventory BUT i can use D to watch the selected item in my inventory
 

KK20

Just some XP Scripter
Regular
Joined
Oct 11, 2018
Messages
489
Reaction score
201
First Language
English
Primarily Uses
RMXP
Looking at the project you gave me, your common event 7 that handles the logic for that is handled by switch ID 24. So logically, you would just turn that switch OFF prior to the minigame, then turn it back ON after the minigame.
 

VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
14
Reaction score
3
First Language
German
Primarily Uses
RMXP
Looking at the project you gave me, your common event 7 that handles the logic for that is handled by switch ID 24. So logically, you would just turn that switch OFF prior to the minigame, then turn it back ON after the minigame.

You are right, big thanks :) works fine :)
 

Latest Threads

Latest Profile Posts

Wow, it's almost a month since the last time I made a full-scale drawing. But I'm back to the drawing board again.
F7L1ME2aMAAo4jK
Well, I think it’s a competent enough sketch. Definitely a lot of smaller details that will get inked and the hands and feet naturally need a ton of revision (legs might be a little long too). Yes. I will also draw the second hand…I just think I’ve suffered enough, OK?

IMG_0488.jpeg
wahh, it's good to be back! A lot of stuff happened (like always lmao) but I've been extremely productive lately, so I decided to hop on back onto the forum I definitely have warm feelings to! haroo eberyoneee :kaohi:


I got encouraged to finish the piece a bit more thanks to u guys <3

Forum statistics

Threads
134,894
Messages
1,251,693
Members
177,708
Latest member
lukanwhitehouse
Top