Setting up the Pilfer skill
step 1
Create a new element called steal and make a note of its id
step 2
Go into Tywin_BOF_Skills script and find this line:
@steal_element = 17
change the 17 to the number of the element in your database.
step 3
to set up items to steal from enemies find the following lines in the Tywin_BOF_Skills script:
steal = Steal.new(0, 1, 1, 1, 100)
steal_array.push(steal)
steal = Steal.new(1, 2, 2, 1, 100)
steal_array.push(steal)
steal = Steal.new(2, 3, 3, 1, 100)
steal_array.push(steal)
copy the last 2 lines to create a new steal.
step 4
steal = Steal.new(2,3,3,1,100)
- the first number (2) -> this is the steal id, each steal id must be unique, so the next steal you set up with have a value of 3.
- the second number(3) -> the id of the enemy in the database that you want the character to steal from. Change this to the id of the enemy you are setting up the steal for.
- the third number(3) -> the kind of item you want to steal. In this case 1 -> Item, 2 -> Weapon, 3 -> Armor
- the fourth number(1) -> the id of the item, weapon or armor you want the enemy to hold on to
- the final number(100) -> the percentage chance of stealing the item.
step 5
Rinse and repeat to set up new steals.
step 6
Make a new skill and give it the steal element.