Idea for Item Discovery skill

Not sure if this would work, so someone help me out/confirm:

TWO possible versions of this skill:

1. Skill only works in battle (<---HELP?)

2. Skill works only from menu (THIS I CAN DO)

Skill would trigger a common event that randomly selected one of several possible items or a "failed" option

I know you could use a set variable(n)=Random and then have several outcomes using a Conditional Branch:

ie;

if n=1

show text "you found nothing useful"

if n=2

show text "you found herb"

Add items [herb]+1

.....

I know I can get this to work OUTSIDE of battle, but is it possible to get it to work DURING battles as well??

*in case anyone was wondering, the skill would consume MP, so it would not simply be limitless*

1/14/14 UPDATE -- 27 views but alas, no replies yet
double-post - ADMIN this thread can be deleted. I solved it myself.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


next time, simply report your topic to be closed.

Original thread: https://forums.rpgmakerweb.com/threads/idea-for-item-discovery-skill.22305/