playMaker

Author Topic: newbie: edit an action to input FsmString instead of string  (Read 609 times)

wetcircuit

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
    • wetcircuit.com
Thanks to forums I have an idea how to ask the question, but I'm not able to answer on my own.

I have a PlayMaker action supporting a 3rd-party asset, but it does not accept Playmaker variables in the input fields. For instance, the input "Text" uses public string, not public FsmString, another input uses public int, not public FsmInt, etc.

I believe (?) that I need to input the playmaker variable and convert it to a regular variable…. Anyone know a newbie tutorial for non-coders along these lines?

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: newbie: edit an action to input FsmString instead of string
« Reply #1 on: May 03, 2016, 01:24:01 PM »
If you go to the new actions section of these forums there are links to help with custom actions-

So when using FsmString in scripts- if the C# script used the string like

stringName = "hello"

For the FsmString you would write it with ".Value" after the Fsm var like this-

stringName.Value = "hello"
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!