upaw

Villager
Member
Joined
Jan 30, 2013
Messages
7
Reaction score
0
Primarily Uses
Not sure if this goes here its my first post but I am trying to make a skill that tears the enemies heart out and add an item (aka the heart of that enemy) to my inventory but I am not sure how to go about doing that, I have tried everything I could think of so I figured id ask here.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,297
Reaction score
8,745
First Language
German
Primarily Uses
RMMV
basically have a common event attached that checks the target and creates the item if needed.
 

upaw

Villager
Member
Joined
Jan 30, 2013
Messages
7
Reaction score
0
Primarily Uses
basically have a common event attached that checks the target and creates the item if needed.
I have tried this, it was actually my last attempt before I came here, it didn't work because I couldn't create a condition for if its used on a certain enemy without such a condition I cant add that heart to the inventory.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,682
Reaction score
1,799
First Language
Dutch
Primarily Uses
RMMV
I think a lunatic code should work, that if skill is used,
a x% changes to gain the item if it's used on enemyID x,
otherwise, normal dmg.

a conditional change might work, in the troop, or on the enemy to see
if the skill is used on it, otherwise, I dont know what else you could try.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
998
Reaction score
461
First Language
english
Primarily Uses
RMMV
make a "CE target" state and have the skill add that state before it calls the common event.
this way the event can check every possible target for that state.
just remember to remove the state from all possible targets at the end of the event.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,297
Reaction score
8,745
First Language
German
Primarily Uses
RMMV
I couldn't create a condition for if its used on a certain enemy
you'll need several steps to circumvent that problem without plugins.

first, you make a target staate that has no icon, no messages and no effect - just its name to identify the skill target.
on the skill, you apply that state to the target in addition to calling the common event.
in the common event, you check all enemies if they have the state.
if yes, check the rest of your conditions for that enemy, create the item and remove the state.
 

upaw

Villager
Member
Joined
Jan 30, 2013
Messages
7
Reaction score
0
Primarily Uses
you'll need several steps to circumvent that problem without plugins.

first, you make a target staate that has no icon, no messages and no effect - just its name to identify the skill target.
on the skill, you apply that state to the target in addition to calling the common event.
in the common event, you check all enemies if they have the state.
if yes, check the rest of your conditions for that enemy, create the item and remove the state.
I will look into this, I use the yanfly battle script so if there is a better way I am not seeing let me know!

Edit: Sorry this has the same problem of not locking onto a target, the only workaround would be to use countless states clogging up my states needlessly. Would it help if I uploaded a picture of what I was trying to do?
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,297
Reaction score
8,745
First Language
German
Primarily Uses
RMMV
Would it help if I uploaded a picture of what I was trying to do?
yes - because what was described above is the usual way that has worked for dozens orhundreds of other games. and without needing many states, although the number of states needed depends on what exactly you want to do.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
998
Reaction score
461
First Language
english
Primarily Uses
RMMV
Untitled.png
at most would only ever need 2 states. "CE target" and "skill user"
 
Last edited:

upaw

Villager
Member
Joined
Jan 30, 2013
Messages
7
Reaction score
0
Primarily Uses
Screenshot from 2021-09-19 08-13-29.png
Here is the common event I started working on, I don't know maybe I'm just stupid... the idea is every enemy the player faces is instantly slain when the skill is used and the heart is added to the players inventory, the problem is that I cannot figure out a way to make the conditional branch work.

Small Edit: What I am trying to do is make something that tells the engine to add a dragons heart if the enemy is a dragon or a lycans heart if the enemy is a lycan.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
998
Reaction score
461
First Language
english
Primarily Uses
RMMV
you'll probably be better off with a steal/snatch plugin if want a different item from each different enemy ID.
edit: yanfly's poach tips and tricks doesnt event use steal/snatch. just skill core
 
Last edited:

upaw

Villager
Member
Joined
Jan 30, 2013
Messages
7
Reaction score
0
Primarily Uses
Ok I will try that then thanks!
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
998
Reaction score
461
First Language
english
Primarily Uses
RMMV
not sure if saw the edit about the poach tips and tricks.
a 3rd option could be extra enemy drops plugin.
<Conditional Item X Drop>
Last Strike Skill Y: +100%
</Conditional Item X Drop>
 

upaw

Villager
Member
Joined
Jan 30, 2013
Messages
7
Reaction score
0
Primarily Uses
not sure if saw the edit about the poach tips and tricks.
a 3rd option could be extra enemy drops plugin.
<Conditional Item X Drop>
Last Strike Skill Y: +100%
</Conditional Item X Drop>
Thanks I will keep that in mind, the option you gave me earlier works with yanflys steal/snatch plugin, ill need to see if I can change the text that appears tho or it will be very... idk weird...
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
998
Reaction score
461
First Language
english
Primarily Uses
RMMV
ill need to see if I can change the text that appears tho or it will be very... idk weird...
thats in plugin parameters
 

Latest Threads

Latest Profile Posts

ready to fall into another development hell...
Mega has been giving me a lot of problems as of late, so I think I'll need to switch to another cloud service. I'm considering Dropbox.
Rough week, but in the end there's light in the darkness.
Mental health is an issue I wish was taken more seriously.
Take care.
1638421271905.jpeg
By the power of timezones! This picture shall still be posted on december 1st!!!
7xI2Gc2.jpg

This is not something I'd ever even considered but wow! What a way to use music in a game.

Forum statistics

Threads
117,122
Messages
1,104,755
Members
153,165
Latest member
visisoothepills1
Top