• Hi Guest!

    We are extremely excited to announce the release of our first Beta for VaM2, the next generation of Virt-A-Mate which is currently in development.
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.

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