- Joined
- Sep 6, 2012
- Messages
- 291
- Reaction score
- 36
- First Language
- Tagalog
- Primarily Uses
I've been making a battle mechanic similar to Castlevania Aria of Sorrow's Soul Absorbing.
Soul Absorb will absorb an enemy's "Soul"(which would be an armor type item) that will give you different abilities and skills.
I am making this skill through a common event but I'm having a problem about the targeting of the enemy.
I have 3 sets of different variables for the chances. High Chance and High Probability (50%), Medium Chance and Medium Probability(25%), and
Low Chance and Low Probability(10%) The six variables are randomized.
*I just named them chance and probability so it might look cool or something
Then I have a conditional branch that will execute if the target's id will be equal to the enemy's id that I would specify. I used $data_enemies[enemy_id] but I'm not sure if this is the correct one. And here comes the problem.
Soul Absorb will be successful if there's only one enemy. But there's more than one, the first conditional branch will always be executed if it's not the enemy id of the target.
Can someone help me on how would I get the target's id so I can use it in the conditional branch?
Here's my common event.
Soul Absorb will absorb an enemy's "Soul"(which would be an armor type item) that will give you different abilities and skills.
I am making this skill through a common event but I'm having a problem about the targeting of the enemy.
I have 3 sets of different variables for the chances. High Chance and High Probability (50%), Medium Chance and Medium Probability(25%), and
Low Chance and Low Probability(10%) The six variables are randomized.
*I just named them chance and probability so it might look cool or something
Then I have a conditional branch that will execute if the target's id will be equal to the enemy's id that I would specify. I used $data_enemies[enemy_id] but I'm not sure if this is the correct one. And here comes the problem.
Soul Absorb will be successful if there's only one enemy. But there's more than one, the first conditional branch will always be executed if it's not the enemy id of the target.
Can someone help me on how would I get the target's id so I can use it in the conditional branch?
Here's my common event.
This is the conditional branch for the first enemy, slime.
And here's for the second enemy.


