Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Stealing Spells from Enemies

Walker's

Villager
Xy$
0.00
Hi Game Makers!

There's a spell that I want to create, and I think this should be easy enough for anyone who has decent programming skills and knowledge of how Yanfly's engine works.

Currently, there's two version of spell stealing by Yanfly.

1) Blue Magic - Auto steal spells when the spell-holder is hit by (steal-permitted spells).
2) Spell Siphon - Steal a random spell from a targeted enemy's available spell.

Spell that I want to create: Steal the last spell that was used by an enemy. Let's call this spell, Spell Thief, for clarity's sake.

I know the logic to do it.

1) Enemy uses spell (any kind).
2) Store the used spell's spell ID in a variable.
3) User of Spell Thief retrieves spell ID stored in the variable.
4) User learns the spell.

So it feels like something that's a cross between these two. I have basics in Java programming, and my pride as a programmer made myself spend the entire day to figure it out on my own. But... since I learned it many years ago, I can't, even to save my life, figure out how. So... *crushes pride*, I'm asking for help T_T

If anyone can help me out, I would give you virtual hugs and kisses.

Thank you in advance!
 
Top