• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

Using a counter logic brick (or another method), can I trigger an action only if the counter is above a certain value?

Javalin

New member
Joined
Oct 30, 2022
Messages
2
Reactions
1
I am attempting to make a complex scene with multiple outcomes based on several actions you've taken throughout the scene - choices you make increase or decrease the counter, affecting your end result. Is this possible with logic bricks or some other method? I know the counter brick sends a signal upon reaching 1 or 0, but I need more information than that. I need to be able to do X only if the counter is above a value

Thanks for the help
 
Almost everything is possible with LogicBricks...bricks are supposed to be combined....you just need more of them ;) LogicBricks is not good at counting/math stuff. Obviously at some point it may be easier to just write a plugin to do what you want.
You could also look into something like VUML which can be combined with LogicBricks:

Anyway, you could use a StateMachine with two Counter bricks, plus two SelectChoice to direct the button trigger to the right counter:
 

Attachments

  • 1667203190.json
    34.1 KB · Views: 0
  • 1667203190.jpg
    1667203190.jpg
    14.8 KB · Views: 0
Actuallly.....using two ValueThreshold bricks may be easier:
 

Attachments

  • 1667204574.json
    24.5 KB · Views: 0
  • 1667204574.jpg
    1667204574.jpg
    14 KB · Views: 0
Almost everything is possible with LogicBricks...bricks are supposed to be combined....you just need more of them ;) LogicBricks is not good at counting/math stuff. Obviously at some point it may be easier to just write a plugin to do what you want.
You could also look into something like VUML which can be combined with LogicBricks:

Anyway, you could use a StateMachine with two Counter bricks, plus two SelectChoice to direct the button trigger to the right counter:

thanks for this, I'll give these methods a shot
 
Back
Top Bottom