Sign in to follow this  
Followers 0
Tsukihime

effect
Effect: Steal Drops

15 posts in this topic

Effect: Steal Drops

-Tsukihime

 

effect_steal_drop.jpg

 

This script allows you to add a "Steal Drop" effect to your skill.

It allows you a chance to steal a drop from the enemy.

 

You can also setup the steal rates for each drop.

 

Usage

 

Tag your item/skill with

 

<eff: steal_drops>
Then tag your enemies to adjust their steal rates for each drop

 

<steal: index prob>

<steal: 1 0.02> # first drop item steal rate at 2%
<steal: 2 0.25> # second drop item steal rate at 25%
If you don't specify a steal rate then it can't be stolen.

 

Download

 

Script: Download here

Required: Effect Manager

Edited by Tsukihime
Shadowmaster9000 likes this

Share this post


Link to post
Share on other sites

Would it be possible to add an option of preventing the enemy from dropping the same item you have just stolen from them?

 

I tried adding it in myself, but it gets rid of the drop for all enemies that have the same id, even if you didn't steal that item from them.

 

Edit: Okay nevermind I got it working now. It was much simpler than I expected.

Edited by Shadowmaster9000

Share this post


Link to post
Share on other sites

 #--------------------------------------------------------------------------
 # * Create Array of Dropped Items
 #--------------------------------------------------------------------------
 def make_drop_items
@available_drops.inject([]) do |r, di|
  if di.kind > 0 && rand * di.denominator < drop_item_rate
	r.push(item_object(di.kind, di.data_id))
  else
	r
  end
end
 end

 

I just replaced enemy.drop_items.inject with @available_drops.inject.

Share this post


Link to post
Share on other sites

To me it does not work, use the skill but nothing happens!

Maybe I did something wrong!

These are the settings:

 

On skill set I: <eff: steal_drop>

 

And the enemy <steal: 2 0.100>

Share this post


Link to post
Share on other sites

Oh, it was an error in the instructions. Sorry didn't notice.

 

You tag the skill with

 

<eff: steal_drops>

 

To designate it as a steal skill.

 

Edited by Tsukihime

Share this post


Link to post
Share on other sites

To make "Mahager Effect" compatible with "Scene materia" , I suggerist Effects of sotituire with effects2 ....

And for now, this script does not work.

In this case you have some advice for me?

Share this post


Link to post
Share on other sites

This is a life saver.

 

I am very very new to this, but I was wondering how easy it would be to set up the steal effect so that an item in the database based on its index as opposed to the drops themselves, while also limiting the steals to once per battle AND once forever.  I plan on having key items that need to be stolen from enemies for sidequests and it would help immensely.

 

(Of course it would be easier to just have the enemy also drop the item, but I only want one of those items in existence ever, so maybe this is the better way to do it.)

Share this post


Link to post
Share on other sites

I have not thought about how much effort it would take to remove a drop from an enemy permanently once it has been stolen already. I doubt using an actually database ID would make any difference, because the problem you're dealing with is how to prevent the item from being stolen multiple times.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

Hi Hime nice script you got here, I was just wondering how am I to set the formula is it something like that

<steal: 1 ((a.agi - b.agi) / 100)> a.agi referring to the actor's agi and b.agi referring to enemy's agi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.