playMaker

Author Topic: Is there a Set State action?  (Read 780 times)

EpicMcDude

  • Playmaker Newbie
  • *
  • Posts: 45
Is there a Set State action?
« on: August 20, 2021, 08:18:44 PM »
I'm doing a FSM for branching dialogues and, it's gonna have a lot of states.

Currently looking into if it's possible to resume an FSM from where it was using a Set State action without an event? Sort of like the Fsm.GoToPreviousState method but just go to the state with the provided string variable.

I've found the action GoToStateByName.cs by Jean, but it still needs to send events which means I'm looking at dozens of global events to send for each possible dialogue from where the player left off, trying to avoid this as I'm not sure it's healthy for the project.

Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Is there a Set State action?
« Reply #1 on: August 22, 2021, 04:51:29 PM »
Hi.
GoToStateByName does not need to send events
the stateFoundEvent and stateNotFoundEvent are optional.