Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Seeing if an actor has used a skill

Is there a way to see if an actor has used a certain skill via conditional branch.

I dont want it if they have the skill, only if they use the skill
 
It's possible with a small workaround, but not with a conditional branch only... This workaround is pretty easy for a certain single skill, you just need to set a switch inside Scene_Battle, make_skill_action_result definition.
Directly below
Code:
@skill = $data_skills[@active_battler.current_action.skill_id]
paste this:
Code:
if @skill.id == anInteger # change me ;)
  $game_switches[97] = true
end
You simply need to check for the switch now.
 
Im not using the default battle system, im using Mr Mos abs

I have it set up so that when the monster is dead it sets a switch to on, and a parallel process event which is triggered by a certain switch.

Theres different switches/skills for different monsters
 
add a switch to a common event and set the common event to the skill than when you make a condition if the skill is used make it based on the switch and after the condition is followed out turn the switch off. I made a demo for someone else with the same problem.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top