playMaker

Author Topic: FSM Communication actions V2  (Read 3056 times)

nightcorelv

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
FSM Communication actions V2
« on: April 02, 2018, 12:34:09 PM »
Hi
I'm made more FSM actions, because I don't like to put all the state in an FSM. It's will get confused and lose controls´╝î I prefer to put all variables in an FSM, and let other small FSMs to control this FSMs variable.

Action list:
fsm float flip
fsm float operator
fsm float switch
fsm gameobject compare
fsm gameobject compare tag
fsm gameobject is null
fsm int flip
fsm int operator
fsm int switch
fsm string switch
fsm string is null or empty

Array :
fsm array add
fsm array addrange
fsm array clear
fsm array delete at
fsm array get next
fsm array get random index
fsm array length
fsm array remove
fsm array remove all
fsm array resize
fsm array reverse
fsm array shuffle
fsm array sort (not tested)
fsm array swap items
fsm array transfer value

hope you guys enjoy it.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15495
  • Official Playmaker Support
    • View Profile
Re: FSM Communication actions V2
« Reply #1 on: April 03, 2018, 06:40:17 AM »
Hi,

 that's great!! but you should put them on the Ecosystem!

 Bye,

 Jean

nightcorelv

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: FSM Communication actions V2
« Reply #2 on: April 03, 2018, 10:08:21 AM »
sure, Ecosystem helps me easier get on my other computers

Hi,

 that's great!! but you should put them on the Ecosystem!

 Bye,

 Jean

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
    • View Profile
Re: FSM Communication actions V2
« Reply #3 on: April 19, 2018, 10:08:59 PM »
Hi,

any example How to use this ?

because i'm not so good at coding...

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6320
    • View Profile
    • jinxtergames
Re: FSM Communication actions V2
« Reply #4 on: April 20, 2018, 01:39:34 AM »
Hi.
@rainexplorer.

The actions works similar as the normal actions (without fsm in front)
for example 'Fsm String Switch' works the same as 'String Switch'
Except that you can target/use variables on a different fsm without setting them global.
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 769
    • View Profile
Re: FSM Communication actions V2
« Reply #5 on: April 22, 2018, 02:04:00 PM »
Nice, very helpful. Thank you!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6320
    • View Profile
    • jinxtergames
Re: FSM Communication actions V2
« Reply #6 on: May 18, 2018, 05:06:25 AM »
Hi.
I have updated the actions and added them to the ecosystem.
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!

SamH

  • Playmaker Newbie
  • *
  • Posts: 37
    • View Profile
Re: FSM Communication actions V2
« Reply #7 on: January 20, 2021, 07:35:40 PM »
Thanks for these actions!
If I could add one bit of feedback- the 'fsm int switch' can be a little confusing because it doesn't quite act like the regular 'int switch'.
Instead of providing set int values to trigger an event, it will only compare if an int is 'less than' a given value.   I couldn't work out why my switch was firing off the wrong events until I realized this slight difference in behaviour.
Also its a little weird for an int, given it has to be whole numbers.
eg To check for value '1', I have to test for 'less than 2'. I also have to put in a null 'less than 1' if I don't want an int of value of 0 to fire this event.
But thanks again for all of these!