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 branches !

Okay so i wanna know how to make it so the conditional branch is triggered when the character has two or more specific items equipped.

Example:
when my character wears a sheild and a sowrd i want the graphic to change to him with the shield and sword, and when he just has a sheild its just him with a sheild.

-arex <3 :cheers:
 
This requires some scripting. With Conditional Branch you can check if an actor has a specific weapon or armor, but not ANY weapon or armor. You would have to check all combinations of actor/weapon & actor/armor. Plus you would need a parallel event that is constantly running & checking. (might impact performance).

Ideally, what you want to do is execute the check when an actor changes equipment. This means modifying the scripts for the actor & the equipment scene.
Fortunately, it's already been done. Do a search on "Visual Equipment". Let us know if you need help implementing the script.

Be Well
 
Here's a link to a working version of Rataime's Visual Equipment script (as well as some other scripts).

http://houseslasher.com/index.php?showtopic=144

I'd recommend downloading the demo, and copying the Visual Equipment to your project.
Then you'll need to make graphics for each of the equipment pieces that will overlay the character.
Then update the "C O N F I G U R A T I O N S Y S T E M" section of the script to include your graphics.
 

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