Yanfly's Steal & Snatch, unique item

Super015

Warper
Member
Joined
May 12, 2013
Messages
4
Reaction score
0
Primarily Uses
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
1,869
Reaction score
1,218
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

Warper
Member
Joined
May 12, 2013
Messages
4
Reaction score
0
Primarily Uses
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
1,869
Reaction score
1,218
First Language
English
Primarily Uses
RMMV
You could, but it would require some tweaks to the plugin.
 

Super015

Warper
Member
Joined
May 12, 2013
Messages
4
Reaction score
0
Primarily Uses
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

Problem with sequels: Heroes getting rid of all their items and forgets all of their skills within the span of a year without explanation. :kaomad3:
I can see the end of my prologue. Perfect time to decide to pull everything over into MZ, right? Right?!
Excited to be nearing the end of setting up my own custom Point-And-Click system template! Just need to iron out some kinks, get an input text system going, add animations to buttons, and then finalize my button-mashing event system and it'll be complete >:3c
AlcTheHero wrote on Mystic_Enigma's profile.
hi.
Still recovering from my laptop's transformation into a brick. I hope to be back to making soon.

Forum statistics

Threads
99,642
Messages
967,604
Members
131,311
Latest member
jabbingquirker
Top