Yanfly's Steal & Snatch, unique item

Super015

Villager
Member
Joined
May 12, 2013
Messages
21
Reaction score
0
First Language
Italiano
Primarily Uses
RMMV
Hi, in my game I'm using the "Steal & Snatch" plugin of "Yanfly".
Is it possible to set a stolen item ONLY once?
It's a key item that must not be stolen at other times, the ideal would be that the item is no longer displayed in the list of stolen objects (with snatch function).
Thanks in advance to the whole community!
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,961
First Language
English
Primarily Uses
RMMV
Code:
<Custom Steal Rate>
  if ($gameParty.hasItem($dataItems[id of unique item]) {
    rate = 0;
  }
</Custom Steal Rate>
That'll stop you from stealing it again, but won't solve the Snatch issue. Thinking about that now.
 

Super015

Villager
Member
Joined
May 12, 2013
Messages
21
Reaction score
0
First Language
Italiano
Primarily Uses
RMMV
Code:
<Custom Steal Rate>
  if ($gameParty.hasItem($dataItems[id of unique item]) {
    rate = 0;
  }
</Custom Steal Rate>
That'll stop you from stealing it again, but won't solve the Snatch issue. Thinking about that now.
Thanks for the reply, is it possible to set the object as "already stolen"?
Otherwise I will be forced to create 2 versions of the same enemy, one with the stolen object and the other without.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,961
First Language
English
Primarily Uses
RMMV
You could, but it would require some tweaks to the plugin.
 

Super015

Villager
Member
Joined
May 12, 2013
Messages
21
Reaction score
0
First Language
Italiano
Primarily Uses
RMMV
You could, but it would require some tweaks to the plugin.
Unfortunately I don't know how to program javascript, I'll create 2 versions of the same enemy, it's not very elegant but it will still work.
Anyway, thanks for everything!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top