Item steal event system
By Gando
v1.2 (03-01-2008)
Ok, so what i have done is a event system that allows you to have a character that can steal items from monsters.
I know that there are already a script version of this (probably a better version o.O) but i thought that i would do an alternative version for those who doesnt want to or can't use those scripts.
How to do this:
Start of by opening the Database and Common events. (see picture below)
First create a variable (steal) with a random number between 1-100, than make a contodional branch that states that if variable steal is equal to 50 or higher (50-100) you will steal an item, else if variable steal is 49 or lower(1-49) you does not steal. Then create a new variable, call it whatever you want, like, "wich item to steal" with a random number, depending on how many items that will be available to steal. (if there is 2 items available, make a random number betwen 1-2)
Make a new conditional branch, that states that if variable "wich item to steal" is equal to 1 than you get a potion and a text is shown saying "You stole a Potion!"
make another conditional branch under that states that if variable "wich item to steal" is equal to 2 than you get a High potion and a text is shown saying " You stole a High potion!"...
you can keep doing this how many times you want, depending on how many items you want to have available to steal. (remember to change the random number in "wich item to steal" if you want more items!)
When you have done everything in Common events, go to Skills and create a new skill called Steal. write a description, set scope to One enemy and occasion to Only in battle. Change the user and target animation as you please. When you have done all that, change the common event to the event that you created earlier. (see picture below)
You should also change power to at least 1, or else everytime you use the skill, it will say that you miss, even though you don't.
And now it's done!
Here is a demo for those of you who want to try it out^^
Demo :
http://www.box.net/shared/jsg9hh8dco Increase % chance to steal If you would want to increase the chance of successfully steling an item, based on if you have a special armor/weapon equipped, this is how you do it.
Go to Database armor/weapon (depending on what item you want to change the %) and create a new accessory. I have choosen to create a glove called Thief's glove, wich increases the chance of stealing an item with 20%. Make the item like the picture below.
Then go to Database/Common events/steal (see picture below)
and create a conditional branch saying that if character "theif" (the guy that can steal items) has Theif's glove equipped. Then create another conditional brach inside that conditional branch saying that if variable steal is equal to 40 or above you will successfully steal an item (see picture on how to set it up) and then in the else section of the first conditional branch (if theif has theif's glove equipped) you create another conditional branch saying that if variable steal is equal to 50 or above you will successfully steal an item. (see picture below on how to set it up)
And that is how you do if you want to increase the chance of successfully stealing an item.
Demo v1.1 (01.01.2008) : http://www.box.net/shared/895bcc7wgo Decrease % chance to steal an item depending on if special state is inflicted If you would like to decrease the % chance to successfully steal an item if a special state is inflicted (like the state "clumsy"). then do like this:
Create a variable called steal, and make it random between 1-100, (just like before) and then create a conditional branch saying that if "thief" is inflicted with clumsy. Then make another conditional branch inside that conditional branch saying that if variable steal is equal to 75 or higher you successfully steals an item, else you don't steal an item. (see picture below on how to set it up).
When you have done that, in the Else section of "
Conditional branch [Thief] is [Clumsy] inflicted " (first conditional branch) insert the same things that's in the section on how to "
Increase % chance to steal " ( where i descibes how to create Thief's Glove and how to increase the % chance to steal an item if it's equipped.)
See pictures below:
Then just go to Database/Skills/Steal and change the common event to the same common event that you've just created.
And now it's done!
Features and Changelog Next version Screenshots Spoiler for Screenshots :
When you successfully steals an item, a messege pops up telling you what you stole:
After you have stolen the item, you can use it directly from your inventory:
If you do not succed to steal an item, a messege pops up telling you "You didn't steal anything":
Demo v1.2 (03.01.2008) : http://www.box.net/shared/rlcca6i8ss