[Ace]Yanfly's Steal Item + Tsukihime Battle Rules?

I am so over my head, and I hope this is the right place to ask for help. Thank you in advance for taking a look. 

https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/steal-item/ <--Steal Items

http://himeworks.com/2013/05/battle-rules/ <-- Battle Rules. 

I have Yarfly's Steal Items script working very nicely. I'm not very familiar with Ruby, so I'm not especially brilliant at picking out variables and so on. 

I'd like to use Tsukihime's Battle Rules to set it so that when a thief has stolen all the items from the monsters on screen, the battle ends in victory. Is this not the way it works? Can you cross the streams, so to speak? I understand in the Battle Rules, you take a variable from the code to tell the script your victory conditions. I tried to use a few lines from Steal Item with no luck.

It tells me:

Script 'Battle Rules' line 355: NoMethodError occurred. undefined method 'default_victory_rules' for nil:NilClass.

Which I take to mean I have not picked the right line of code or there isn't one. What do you think?

Thank you, again, for your consideration. 
A condition is not a function or action, so you can't simply choose a line from Yanfly's script and post it as a condition into Tsukihime's.


You'll need to go the other way around: you need to check if the player has gained said items, and make that the condition.


Unfortunately, checking for several items gained requires more than one simple condition line, because the player may have had those items from older battles (in which case they shouldn't count), and the steal skill is a single action with multiple possible results, that may be different between different enemies.


How about this: In the troop events at turn 0 you set several variables to the current number of items for each item that can be stolen


And in the victory conditions, you use different variables to check the current count of all those items, and if all of them are greater than the number stored at the beginning the conditions are fulfilled.


That should work even without script changes, but it will make the troop setup more difficult.
Huh, I was thinking about it backward! I'm not surprised. 

I'm going to have to be handcrafting all of my troops anyway, so that's okay that my solution has extra steps there. Would it be forward to ask you how to set up those variables? Again, this is over my head, I'm sure. And I don't want to put you out. "That's too complicated/time consuming for a stranger' is a reasonable answer! 

Again, thank you!
I am so over my head, and I hope this is the right place to ask for help. Thank you in advance for taking a look. 

https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/steal-item/ <--Steal Items

http://himeworks.com/2013/05/battle-rules/ <-- Battle Rules. 

I have Yarfly's Steal Items script working very nicely. I'm not very familiar with Ruby, so I'm not especially brilliant at picking out variables and so on. 

I'd like to use Tsukihime's Battle Rules to set it so that when a thief has stolen all the items from the monsters on screen, the battle ends in victory. Is this not the way it works? Can you cross the streams, so to speak? I understand in the Battle Rules, you take a variable from the code to tell the script your victory conditions. I tried to use a few lines from Steal Item with no luck.

It tells me:

Script 'Battle Rules' line 355: NoMethodError occurred. undefined method 'default_victory_rules' for nil:NilClass.

Which I take to mean I have not picked the right line of code or there isn't one. What do you think?

Thank you, again, for your consideration. 
I don't have any advice for you, I just wanted to chime in. That is an awesome victory condition for a thief to have. Since he's already stolen their stuff why does he need to stay and kill them? 

Cool stuff man. 

Original thread: https://forums.rpgmakerweb.com/threads/ace-yanflys-steal-item-tsukihime-battle-rules.39976/