VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
12
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

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,755
Reaction score
9,890
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
12
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

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,755
Reaction score
9,890
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
Veteran
Joined
Oct 11, 2018
Messages
448
Reaction score
184
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
12
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
12
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
Veteran
Joined
Oct 11, 2018
Messages
448
Reaction score
184
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
12
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
Veteran
Joined
Oct 11, 2018
Messages
448
Reaction score
184
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
12
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
Veteran
Joined
Oct 11, 2018
Messages
448
Reaction score
184
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
12
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 Posts

Latest Profile Posts

Food for thought. Factorio: Spaghetti belts make your factory inefficient as you fight for space constantly. Satisfactory: Spaghetti belts and massive clipping is the most efficient way to run your factory since it's the shortest distances.
ScreenShot_8_19_2022_8_51_4.png
Both Mike and Ray here are in a "HYPE!" state after Mike uses "Wild Party", which also heals everyone. they'll do more damage and counter more often, but defense is lower along with hit rate.
WHEEL3.gif
Ooker spookers and fun attack mechanics! What a Friday!
Not today... Not today...
I guess I should send my CV to Hasbro. I've made Monopoly cheaters edition more fun and challenging. I've developed custom cheats and chest/chance cards for it. And I've cleared many nightmares through my cards and rules.

Forum statistics

Threads
124,707
Messages
1,165,417
Members
163,520
Latest member
Foxx042
Top