Yanfly's Steal & Snatch, unique item

Super015

Villager
Member
Joined
May 12, 2013
Messages
15
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,375
Reaction score
1,552
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
15
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,375
Reaction score
1,552
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
15
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 Posts

Latest Profile Posts

Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
I made a battle results screen for my minigame.. any feedback? :)
Things I thought would never happen but just did: I needed to use my snow shovel. In August. In the Northern Hemisphere.
So I finished Cupcake, now I need to figure out my next project!
Do I pick up one of my incomplete games?
Do I start something entirely new???
The possibilities are endless!
Am I the only one who keeps thinking TPBS means "Turn Press Battle System" and not "Time Progress Battle System?"

Forum statistics

Threads
100,678
Messages
978,348
Members
132,300
Latest member
belphe89
Top