Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[XP] Lock-Picking Mini-Game/Skill

Hey guys!

Currently I am working on a "Thieves" game. It is too early to say anything about it, plus I am still learning how to use RMXP (from reading my other threads you can realize that I am very new to this hehe!)

ANYWAYS

I am really trying to make a mini-game/skill that allows you to pick-pocket and another one to pick-locks.
I have no real idea about a mini-game for this BUT if there is a way to use percentages of being "caught" that would be very useful!

I was thinking of a system where the player is "transfered" to a screen with a view of a lock and tumblers. Maybe something what Oblivion uses? Maybe change your player graphic to a key and use a custom tileset or picture and have the tumblers be a complicated event or something of that nature? Hmmm...

http://media.arstechnica.com/reviews/ga ... a/11-s.jpg[/img]

Also I have had RMXP for a good month 1/2 so I'm still learning! Regi probably knows this from my running shoes topic hehe!

If anyone has any ideas that would be wonderful. And of course I will give credit where due  :thumb:
 
Er hehe everyone's new, so don't worry about it.

As for a lock-picking minigame, I think Eilei made a script for it awhile ago, try searching the Submitted Scripts section. Or, if you just want a percentage of getting caught, you can try this:
Code:
@>Control Variables: [1: Random] = Ran (0...3)
@>Conditional Branch: Variable [1: Random] == 0
   @>Show Text: You got caught!
 : Else
   @>Show Text: You've picked the lock!

You just need to change the randomizing variable part. In the example, it sets it to four choices (0, 1, 2, or 3), so there's a 25% chance of it being 0. Play with it and find the percentage you need.

Good luck :thumb:
 
Can't the pickpocket thing be done with events? Like a variable, that's set randomly between like 0-100, if it's 51 or more, another variable is randomly selected to decide what you recieve, and if it's 50 or below then you fail.
 
Sure. Pick an NPC with any person graphic, then set the evnt up like this:

@>Control Variables: [0001: Pickpocket] = Random No. (0...100)
@>Condition Branch: Variable [0001: Pickpocket] >= 51
@>Control Variables: [0002: Pilfered] = Random No. (0...20)
@>Condition Branch: Variable [0001: Pickpocket] >= 10
@>Change Items: [Perfume], +1
@>
  : Else
@>Control Variables: [0003: Gold] = Random No. (1...100)
@>Change Gold: +Variable [0003: Gold]
@>
  Branch End
@>
  : Else
@> Show text: What are you doing?
@>Change HP: Entire party, -Variable [0004: HP Lost]
  Branch End

Something like that, anyway. If a screenshot'll help, I'll get some.
 
as these two fine citizens have already helped you with your pickpocketing, i'll just go ahead and agree that's the best RANDOM way to add a pickpocketing skill.
however, if you'd like to add a little more depth to it, you could make every successful pickpocketing give you +1 to a certain variable, and use it like experience. and when said variable reaches a certain number (say, ten?), you can level up the pickpocketing.
this could be achieved by raising a completely seperate variable +1.

THEN:

when you go to 'pickpocket' the NPC, you could have various 'conditional branches' that would be set to check 'if variable [pickpocketing level] is at (say, level ONE), have a 27 out of 100 odds. then have a new conditional branch, this one will check if the pickpocketing level variable is at 2, then have slightly better odds for it, like 33 ~ 100.

catch my drift?

That's if you want depth, though.

anyway, the lockpicking CAN be done. it wouldn't be too terribly difficult, but it would be, in no way, as smooth and sexy as the one in oblivion. it could be, activate an event, and it moves upwards at a random speed, and you could have a series of events check if (key) is being pressed when its at the top, and etc. theres a bit more to it, with considering breaking picks, but it wouldn't be all too complicated.  the rather inconsistant framerate of rmvx/xp wouldn't be too great for it tho.
 
Or you can just install this script. Takes about 30 seconds :smile:

Wait, never mind, the link's dead. You can try PMing or emailing Eilei in case he still has a demo.

@Cruelty below: I know, it's a good idea to try the pictures or variables method yourself, but I recommended it because the screenie looked pretty similar to Oblivion's lockpicking.
 
I have seen several scripts but the demo always fails to load actor data when I try to open the project (happens about 50% of the time =/)

Anyways I will have to try out what some of you said, pictures would help out this n00by hehe. Thanks guys, you are really helpful!

Edit: @Regi -- Hey I found the link (posted on the forum) in-case you want to use it

http://www.megaupload.com/?d=OS5YQT50


errrg!!!! STUPID "FAILED TO LOAD ACTOR DATA" Man I am always stunted by this!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top