Creating a torture event (first metal gear solid style)

LuciferSynd

Veteran
Veteran
Joined
Oct 22, 2013
Messages
34
Reaction score
0
First Language
Italian
Primarily Uses
Hello there guys.

I am about to finish my game finally but now I have another problem that I really have no idea how to solve.

Before the very end, the main character of my story gets caught in a tricky deal and ends up paying dearly for it: he gets tortured and I have to make an event like in the first metal gear solid when Snake had to resist Ocelot's torture.

What I would like to achieve is to make a timer. During the countdown, the player receives constant damage at each second but he can mash a button to regain some little health back and resist (he has a healing factor).

This same action should happen a total of 4 times, each time getting harder and longer to resist.

As well, during the event, I would like some pictures to show as the player resists (maybe using a variable that works on how many times he pushed the button).

Can anybody please help me?
 
Last edited by a moderator:

LuciferSynd

Veteran
Veteran
Joined
Oct 22, 2013
Messages
34
Reaction score
0
First Language
Italian
Primarily Uses
Anybody at all for this? Please, I'm seriously stuck at the very end of the game...

If I don't do this, I won't be able to finish!
 

LNicol90

Veteran
Veteran
Joined
Mar 9, 2013
Messages
30
Reaction score
2
First Language
English
Primarily Uses
Just as a friendly piece of advice so you know in future, you should wait a day or two before bumping your post. That is part of the forum rules.

Concerning your event, it's actually quite easy to do.

If you start a new event in your map, set any necessary parameter like switch/variables (that's if something is happening in this map before this torture event) for it to start up and set it to a parallel process. After that, you add "Change HP" and you set it to decrease by however much you want and whether you want the entire party or just this one player to have their HP decreased. Give it a SE and an animation if you want (I'm not sure how to just make the actor flash red), and then set it to wait however many frames you want.



That's the torture bit done.

Next you'll want to set up another event, again set to parallel process and with the same parameters. Open a conditional branch and ask if a button, let's go for "Z", is being pressed, and un-check the non-conditions box at the bottom. In the condition frame, add "Change HP" and add however much health you want regained. Or, set it to add to a new variable, let's called it "Health", and set another conditional branch that adds HP when "Health gets to a certain number, and then reset "Health" to 0.

 



 

I know this is very basic, but I hope it helps, and maybe you can improve it.

Edited at 18:08 to use better wording.
 
Last edited by a moderator:

LuciferSynd

Veteran
Veteran
Joined
Oct 22, 2013
Messages
34
Reaction score
0
First Language
Italian
Primarily Uses
Thank you very much, Nicol.

Unfortunately, this is not really what I wish to happen.

I will try to re-explain it:

1) There must be a countdown. Example: first torture lasts 10 seconds, second lasts 25, third 40 and last 1 whole minute.

2) The event will not be displayed in classic RPG Maker graphics but with a set of Pictures that must change during the countdown, let's say one every 5 seconds.

3) Every second passing, the player must receive a fixed amount of damage that will increase in successive tortures.

4) Every time the player hits the SPACE button, it will make him regain a little bit of health in order to resist successive physical assaults

5) The event ends in a gameover ONLY if the player dies. If the timer reaches the zero, it actually managed to get it right and resist, so the next torture gets triggered.

This is exactly what I'm looking for.

Pretty much I need something like this: http://forums.rpgmakerweb.com/index.php?/topic/11097-button-mashing-event/

The differences are the timer (not gameover, but actually continuing), the regaining of health, the constant damage and the picture changing every 5 seconds.

Sorry about the bump, I'll be more careful in the future.
 
Last edited by a moderator:

NPC

Auteurist in this world
Veteran
Joined
Jan 6, 2013
Messages
1,313
Reaction score
197
First Language
English
Primarily Uses
RMVXA
Finished setting up four events which should do everything you asked for. I'm sure it's easy enough to merge them, but I'm not doing that right now.

1) The timer:

Example.PNG

In this event, I turned on the timer and set the "Torture" variable to 4 (as that is the number of 'tortures' you listed in your last post. I set-up some safety measures around the event, (conditional) but you most likely will only need a "delete event".
2) The pain of the torture:

Example2.PNG

In this event, I set the four times you lose health due to the counter reaching a certain time (the last one's off screen), but all of them are virtually the same. Each one gives the player damage (can be changed, of course), then sets the variable for "torture" (the one I set to four in the first event) at one below it's original value. I placed each one of these tortures inside of a conditional branch to make sure they didn't just keep killing you, and all of those branches inside another conditional branch to make sure that each torture happens at the given time.
3) The pictures:

Example3.PNG

This is basically a slideshow. It picks a random number, matches it up with the correct branch, displays a picture for 5 seconds...rinses and repeats. It should be easy enough to set each picture to play in a specific order, and you can copy+paste the formula if you want more pictures. I also added a erase picture and wait, just so each picture can be seen changing if needed. OH YES! I also put ALL of that inside a loop.
4) The healing 

Example4.PNG

When 'A' is pressed, you heal. I added graphics too, just to prove it's doing something when at full health. The only problem is that I can't seem to choose my own letter, so I have to press Shift+A to use it...it's weird.
Those are all four events, and they should at least give you a basic understanding of how to deal with your problem. If you re-create this, it should work perfectly, if you remember to import the pictures you want to use...but this is all I can give with what I have. :)

ON ANOTHER NOTE: You'd probably have to use a script if you want to use SPACE for anything other than 'enter' in RPGM. Just adding that.
 
Last edited by a moderator:

LuciferSynd

Veteran
Veteran
Joined
Oct 22, 2013
Messages
34
Reaction score
0
First Language
Italian
Primarily Uses
Thank you so very much for the help indeed, NPC.

Now the only problem is actually trying to merge them together to make them work fine XD

One more question:

What about if I want the player to lose health at each second that passes?

Let's say like this:

First torture will last for 10 seconds.

For EACH of those 10 seconds, I want the player to lose let's say 200 hp.

And he can regain 25 HP each time he presses the spacebar.

Is that possible to do with these examples?
 
Last edited by a moderator:

NPC

Auteurist in this world
Veteran
Joined
Jan 6, 2013
Messages
1,313
Reaction score
197
First Language
English
Primarily Uses
RMVXA
The second idea of gaining HP is indeed plausible (it's that last one in my last post exactly), but the first one would take way too long, and would look too messy. Here's a simple event you can add to the ten second slot for example:

Example5.PNG

This should work fine, and takes away a set number every second. (I'd set it back up to 60 frames if using the same event formula though...) Just put this in place of the -HP method in the second event I gave in the event system. :p
 
Last edited by a moderator:

seita

Donn_M
Veteran
Joined
Feb 6, 2013
Messages
2,254
Reaction score
611
First Language
English
Primarily Uses
Just so you guys know, there's nothing stopping the player from just holding the button down in your methods.
 

LuciferSynd

Veteran
Veteran
Joined
Oct 22, 2013
Messages
34
Reaction score
0
First Language
Italian
Primarily Uses
Is it possible at all to make it as I wish?
 

LuciferSynd

Veteran
Veteran
Joined
Oct 22, 2013
Messages
34
Reaction score
0
First Language
Italian
Primarily Uses
Ok, with that tutorial I managed to understand very well how the button mashing works. Now, all that I need is something else...

A healthbar, or some text, showing what is left of the player's hp... And when that reaches zero, the game is over. Not when the timer goes zero...

How do I do that?
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
You'll need some kind of HUD to show the actor's HP on the screen. Maybe a small variable-based one.
 
Last edited by a moderator:

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
Not too sure myself, I think you can google for an Ace HUD-generator which lets you design a basic window-like one based on the @hp variable, then export the code.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top