Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [Eventing]Lock Picking
RzrBladeMontage
post Nov 12 2009, 09:10 PM
Post #1


"Hey.. would you say... I became a Hero?" - Zack Fair
Group Icon

Group: Revolutionary
Posts: 773
Type: Event Designer
RM Skill: Advanced




RPG Maker Version: XP
Difficulty Level: 3/10

When I first thought of the idea of Lock Picking I thought it would be crazy hard, however I spotted a tutorial on rpgrevolution.com's main page and after reading over it I changed it into my own creation. The original tutorial can be found here: Lock Picking Tutorial.

Lock Picking is very simple, if you have an understand of variables and eventing. This Lock Picking event randomly chooses a number and then adds it to the agility of the player (of your choosing). If both of them combine are over the difficulty of the lock, then the chest is opened and the goods are yours! Please note that this tutorial can also be used for doors, handcuffs and more. If you do not wish to read this tutorial, I've provided a demo that you can download and try out.



[Show/Hide] Step One

The first thing you want to do is determine whether or not you'll be using lock picks within you game, or whether or not your character is just that good with their hands and/or magic. For this tutorial we will be using lock picks. Go into your database and create a new item and call it "Lock Pick." Make sure it's NOT consumable and you can give it whatever icon and description you want. Now you need to make sure your player can get ahold of lock picks, either via shop, smithing or killing monsters. In my demo I simply put an NPC that gave you 1 lock pick and if it broke he'd give you another. You can have your player get the lock pick however you want. Also, create 3 variables:

Char Agility
Lock Difficulty
Lock Picking Luck


[Show/Hide] Step Two

Now that you have your lock pick made create a treasure chest. Put text and have it say something like "The chest is locked, do you want to try and pick it?" and then show choices yes/no. Create a conditional branch under the "Yes" option and have it check for a lock pick in the inventory, if there isn't one the player will recieve a message that they do not have one. If they have a lock pick, then the variables come into play. Insert the Char Agility variable and have it = YOURCHARCTER's AGI. "YOURCHARACTER" being whoever you want to be the thief/lock picker. Second, insert the variable Lock Difficulty and have it = 100. You can change this to any number you want, lower being easier and higher being harder. Third, insert the variable Lock Picking Luck and have it pick a random number between 1 - 40. Then insert Lock Picking Luck again and add it to the Char Agility variable. Then create a conditional branch and have it check if Lock Picking Luck is greater then Lock Difficulty. If it is, then have your chest open up and let the player recieve the prize they've earned. If the players luck is lower then the difficulty, then insert text "you broke your lock pick" and remove 1 lock pick from the players inventory.



And that's it! How simple, eh? smile.gif. Remember, this can be used on more then just treasure chests!


Any questions or comments please post them below and I'll try and help as best as I can!


__________________________





Go to the top of the page
 
+Quote Post
   
Stev_Zer0
post Nov 13 2009, 09:52 AM
Post #2


Level 8
Group Icon

Group: Revolutionary
Posts: 128
Type: Developer
RM Skill: Advanced




That's pretty cool. I have a lock pick system in my game but its made a little different. My system is more like that of oblivion or fallout 3. Your lock pick skill is determined by a variable. The variable is increased every time you pick a lock. This way its more realistic in the fact that the more locks you pick the better you get at it instead of having it rely on the characters stats. The more complicated the lock the more skill you earn from unlocking it. The way i determined the luck would be i just made a random variable and some conditional branches. I would explain in more detail but I'm running short on time so this is all i could muster up for the moment.

This post has been edited by Stev_Zer0: Nov 13 2009, 09:55 AM


__________________________
Demo V1.0 Available

Projects worth checking out
Go to the top of the page
 
+Quote Post
   
The Law G14
post Nov 13 2009, 01:10 PM
Post #3


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




Good to see you releasing these event tutorials, Blade, I'm sure this will help out alot of people. Keep up the good work, man smile.gif

This post has been edited by The Law G14: Nov 13 2009, 01:11 PM


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!

If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
RzrBladeMontage
post Nov 13 2009, 01:54 PM
Post #4


"Hey.. would you say... I became a Hero?" - Zack Fair
Group Icon

Group: Revolutionary
Posts: 773
Type: Event Designer
RM Skill: Advanced




QUOTE (Stev_Zer0 @ Nov 13 2009, 12:52 PM) *
That's pretty cool. I have a lock pick system in my game but its made a little different. My system is more like that of oblivion or fallout 3. Your lock pick skill is determined by a variable. The variable is increased every time you pick a lock. This way its more realistic in the fact that the more locks you pick the better you get at it instead of having it rely on the characters stats. The more complicated the lock the more skill you earn from unlocking it. The way i determined the luck would be i just made a random variable and some conditional branches. I would explain in more detail but I'm running short on time so this is all i could muster up for the moment.


I love Oblivion, the lock picking system is awesome. I wanted to make one like that but I kinda just threw this one together. I'll take a shot at the Oblivion type lock picking system.

@Law
Thanks man, I hope no one thinks I'm trying to steal the create from the original tutorial makers, I'm just taking their ideas and creating them into my own.


__________________________





Go to the top of the page
 
+Quote Post
   
MerekRedmair
post Jan 16 2010, 03:38 PM
Post #5


Level 4
Group Icon

Group: Member
Posts: 55
Type: Developer
RM Skill: Skilled




This link doesn't work
Go to the top of the page
 
+Quote Post
   
Pandemikk
post Jan 17 2010, 06:11 PM
Post #6


Level 19
Group Icon

Group: Revolutionary
Posts: 394
Type: Writer
RM Skill: Advanced




QUOTE (MerekRedmair @ Jan 16 2010, 03:38 PM) *
This link doesn't work


That's what happens when you necropost.

But yeah, this link doesn't work. Mediafire deletes their unused links after awhile. Really annoying that they started doing that.

I might make another demo if OP doesn't.


__________________________
Click here! Beware, once you click it you have to post no matter what! Mwahaha!



Looking for an intelligent debate? A challenger appears! Looking to exchange grandiloquent gibberish? A challenger disappears!
Go to the top of the page
 
+Quote Post
   
RzrBladeMontage
post Jan 23 2010, 10:35 PM
Post #7


"Hey.. would you say... I became a Hero?" - Zack Fair
Group Icon

Group: Revolutionary
Posts: 773
Type: Event Designer
RM Skill: Advanced




I'll re-upload the file when I get a chance to. I'm at a friends house now and I have none of my files with me.


__________________________





Go to the top of the page
 
+Quote Post
   
Wellus
post Apr 28 2010, 11:38 PM
Post #8


Level 4
Group Icon

Group: Member
Posts: 54
Type: Event Designer
RM Skill: Intermediate




Thanx heaps.
Really usefull biggrin.gif


__________________________


My userbar was made with Paint.
Go to the top of the page
 
+Quote Post
   
Locke
post Apr 30 2010, 05:14 PM
Post #9


Level 10
Group Icon

Group: Revolutionary
Posts: 151
Type: Mapper
RM Skill: Intermediate




Very usefull and awesome, for my name is Locke the Lock Picking
Master XD

SALUTE!!

This post has been edited by Locke: May 5 2010, 05:27 PM


__________________________
We are one (Really i,m not joking)



I've seen many things when mankind rule the land


Which Final Fantasy Character Are You?
Go to the top of the page
 
+Quote Post
   

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 - 10:12 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker