playMaker

Author Topic: Bool Test Random Event Action  (Read 1237 times)

kylemc007

  • Playmaker Newbie
  • *
  • Posts: 1
Bool Test Random Event Action
« on: September 12, 2020, 06:18:54 PM »
Hey everyone!

I hope everyone is keeping safe and well during these times (and furthermore smashing out some projects).

I'm currently working on a little project and have attempted to create a custom script that replaces the send event fields of the Bool Test action with an array of events that are chosen randomly with no luck.

Now, this event isn't necessary but having it will simplify my FSM drastically. Essentially what I am doing is checking to see if something has happened at the specified node before firing any of its contents, forcing a state change to a random node before any of said contents can be fired.

If anyone has any idea of how I could set this up via a C# script that would be amazing. I've attached an image that explains what i'm after too.

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Re: Bool Test Random Event Action
« Reply #1 on: September 14, 2020, 12:09:08 AM »
Have you tried FSM command called "Conditional Expression"?

it solves most of the logic scenarios.