• Promotional Link field now provided for resources to allow Hub upload and external link at same time. Please see this link for more info
  • New Hub Feature: Automatic Hub-Hosted VAR tags. Please see this link for more info

Paid Early-Access Plugins LogicBricks 5

Early-Access End Date
Dec 1, 2020
This is a collection of 23 reusable logic plugins to quickly build simple logic without coding. These go from a simple Relay that just groups triggers via Counter and Blend to more complex bricks for RandomChoice and a very powerful StateMachine brick.

The key feature here is that it is using VaM's own Trigger UI, so it should be familiar and easy to use for any creator who used VaM's trigger system before. Just like an UIButton, you can hook it up to AnimationPattern's, Timeline, other plugins and all the kinds of things VaM has to offer.

LogicBricks are a good way to make your scenes a bit more interesting without coding skills. Have some randomness and logic rules instead of just simple animation loops. For example the scene controller plugin used in the Life04 demo scene could now be entirely replaced with just a StateMachine brick. However, you likely won't want more than a few of these in your scene, since at some point coding a custom plugin for your scene becomes way easier.

Package includes a demo scene with 19 examples that hopefully will spawn some ideas for you. This includes a more complex example using two StateMachine bricks to control interacting AnimationPatterns for a Handjob setup.

Examples1.jpg Examples2.jpg RandomDelay.jpg Handjob.jpg RandomChoice.jpg StateMachine.jpg

  • Relay: LogicBrick that triggers directly after Trigger is called. Useful if you want to trigger the same things from multiple sources.
  • RelayOnce: LogicBrick that triggers directly after Trigger is called, but only once. Call Reset to use again.
  • Counter: LogicBrick that can count up and down and provides a status value between 0 and 1. Provides a trigger signal when reaching either end of the range.
  • Delay: LogicBrick that triggers a fixed time after Trigger is called.
  • RandomDelay: LogicBrick that triggers a random time after Trigger is called.
  • Blend and RandomBlend: These are a variants of the Delay and RandomDelay. After Trigger was called, these provide a separate Start trigger, a value slowly going from 0 to 1 and eventually an End trigger. Classic use case would be to blend something in or out.
  • Loop: LogicBrick that triggers multiple times with at a fixed time interval after Trigger is called.
  • RandomLoop: LogicBrick that triggers multiple times with at a random time interval after Trigger is called.
  • Timer: LogicBrick that triggers continuously in a fixed time interval.
  • RandomTimer: LogicBrick that triggers continuously in a random time interval.
  • RandomChoice: LogicBrick that, after Trigger is called, selects a random Choice to trigger. Use Avoid Repetition take the last one or two choices out of the selection, depending on the number of total available choices.
  • RandomSound: Plays random sound after Trigger is called. This can work with VaM's embedded sounds as well as sounds referenced on the Scene Audio tab. Needs to be placed on a Person, AudioSource, RhythmAudioSource or AptSpeaker atom.
  • RandomSoundFromAB: Similar to RandomSound, but can load sounds from AssetBundles instead. If you have lots of sounds, this loads way faster and is more convenient.
  • StateMachine: Very powerful LogicBrick that represents a the concept of a StateMachine. Each State has a random duration after which it randomly chooses among the transitions of that State to switch the next State. Can also be controlled externally as well as provides a sync feature to sync with other systems in your scene.
  • ValueRelay: Just like a relay, but for values.
  • ValueEaseIn: Relays a float value after applying a quadratic EaseIn curve. (FadeIn)
  • ValueEaseOut: Relays a float value after applying a quadratic EaseOut curve. (FadeOut)
  • ValueSmoothStep: Relays a float value after applying a classic SmoothStep curve (FadeIn - FadeOut).
  • ValueInvert: Relays a float value after inverting it: 1 - X
  • ValueRandom: Provides a random value between 0 and 1 when Trigger is called.
  • EventSceneLoad: Brick that triggers on scene load.
  • EventAudioQueueEmpty: Brick that triggers when an AudioSource did run out of audio to play. Needs to be placed on a Person, AudioSource, RhythmAudioSource or AptSpeaker atom.
  • RichText helper plugin: Allows you to use Unity RichText on SimpleSign and UIText atoms. You can have bold or italic font, control the fontsize as well as color of individual words. I used this for the example scenes.
Coders: Make your own!
I hope this collection will grow eventually as I need little plugins when building demo scenes for other plugins. Maybe other coders chime in and build compatible plugins using the same EventTrigger system. If you are a coder, check out the included MacGruber_Utils.cs, which handles the needed building of custom UI for the trigger screen, internal handling of AssetBundles as well as scene load/save for you. The Utils class also helps with creating sliders, buttons, etc. for your plugin UI. including some custom UI elements and handling for context sensitive UI that can change at runtime. If you build your own LogicBrick plugin, using one of mine as a starting point might be a good idea.

This is an EarlyAccess release! Download will be available for free under CC BY-SA license after 2020-12-01. You are allowed to reference this package in your own VAR packages, even if they are paid or use a different license. Links to my Patreon are always appreciated.
First release
Last update
5.00 star(s) 4 ratings

More resources from MacGruber

Share this resource

Latest updates

  1. Version 5 - Value Triggers

    New Features Added ValueTriggers that provide a value between 0 and 1. These can be used for...
  2. Version 4 (free)

    Another bugfix update for LogicBricks. Again, thx @ TGC for reporting those issues...
  3. Version 3 (free)

    LogicBricks is now free! Version 3 features some bug fixes and UI improvements. Thx @ TGC for...

Latest reviews

Top notch!
Omg this is exactly what I needed! Huge thanks!
This is exactly the kind of thing missing from creating more complex things without making your own plugin. Great job MacGruber!
Top Bottom