Requesting a Spell Steal script

Hello everyone, I am looking for someone to create a script that will allow a state to be stolen from an enemy and xfered to the caster. This would make a cool spell steal ability you could give to a hero. Said hero could then use said ability to steal buffs and xfer them to the hero. I think this would open up some pretty cool game play ideas.

I guess there would need to be some kinda restrictions. Maybe make it so if a state could be stolen a tag has to be added in the comments OR it could be done where you comment spells that aren't allowed to be stolen OR both really. 

I think that is really all the details? Can anyone think of anything else that would be required or would be a cool addition to this idea?

Thanks for taking the time to read this and I look forward to see what all you talented individuals can come up with!
The closest thing I think that can match your request is the Yanfly skill steal script. Give that one a shot.

https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-steal/
I think he wants a state steal script though, not a skill steal. However, Yanfly has one that does that, under lunatic states. You will need both lunatic states and the add-ons though, but in one of the add-ons is an option to take a state from an enemy if they have that state on them. You have to notetag which states you want them to take (so this way you can restrict it to some states don't transfer).
I think there is a yanfly lunatic script that allows states to be transfered

Edit: here it is!

https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-objects/lop-give-take/

this also allows you to give a state, take a buff, or give a debuff. You can make a charecter that does all kinds of mischief with this. Also, you can specify states that can't be stolen by simply not specifying them in the notetags

Edit edit: looks like bgillisp beat me to the punch
Very nice. Thanks. I've tried using lunatic states in the past for the dual healing can also cause damage, but couldn't get it to work. I'll give this a shot.
Instructions say:

#----------------------------------------------------------------------

    # Give & Take Effect No.2: Take State

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    # If the target is inflicted with state x, it will transfer the state

    # over to the user. However, if the target is not inflicted with the

    # specific state, no transfers will occur.

    # 

    # Recommended notetag:

    #   <prepare effect: take state x>

    #   <prepare effect: take state x, x>

    #      - or -

    #   <during effect: take state x>

    #   <during effect: take state x, x>

    #----------------------------------------------------------------------

 

I added the tag:

 

<prepare effect: take state 120>

 

to my spellsteal ability, however, when I try to use it I get a message saying: "Failed."

 

What am I doing wrong?

 

-=UPDATE=-

I changed the tag to:

 

<during effect: take state 120>

 

and it now works. Thanks

Spellsteal.png

State to steal.png

Original thread: https://forums.rpgmakerweb.com/threads/requesting-a-spell-steal-script.38167/