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.

Help with conditional branching

ok, so tonight I was hoping to make a small evented battle system to use bullets (items) when ever a cirtain actor uses a shooting skill, not really a major thing for the game, its just another small thing that makes games better, I was even hoping to release it to the public when I'm done.

But anyway, I went inot RMXP opened the database, went to the common event tab, created a new event, selected conditional branch, opened the actor tab, saw the skill section and clicked on my shooting skill. But then after all that, I discovered that there is no "if used" section for the skills just an "If Learned".

So can anyone help me out, even if its just like one line of script, please.

edit: cool I just checked and this is the exact 3000th topic in this section :)
 
You can call the common event from the skill. That way it only executes if the skill is used.

If you are using the common event to decrement the number of bullets, I assume you also want to disable the skill and/or weapon when the bullets run out.
So your common event might look like:

Code:
@>Change Items: [Bullet], -1
@> Conditional Branch: [Bullet] in inventory
    @>
  : Else
    @>Text: You are out of bullets
    @>Comment: Need to disable the skill or weapon here
    @>
  : Branch End
@>

I'll take a look at disabling the weapon or skill, that will most likely require some scripting.

Be Well
 

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