Feature Idea: Add parameters to BT flowscript nodes

FlowCanvas Forums Support Feature Idea: Add parameters to BT flowscript nodes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #501
    Elliot Bulmer
    Participant

    It would be really cool if, just like a macro, you could setup parameters to the flowscript nodes embedded in behaviour trees. At the moment, I am using the blackboard to pass parameters to the script and this makes the embedded nodes a bit less re-usable, since they are expecting named parameters to exist in the blackboard.

    #509
    Gavalakis
    Keymaster

    Hey,
    Thanks for the suggestion. I am working on a feature where each nested graph has it’s own blackboard variables (parameters) which can be set using the master graph blackboard. Basically mapping the nested graph variables to the master graph variables.
    Is this what you mean more or less?

    Thanks

    Join us on Discord: https://discord.gg/97q2Rjh

    #525
    Elliot Bulmer
    Participant

    Yeah, that would work. I was thinking of having parameters to the embedded flowscripts that show up like parameters you can write on custom actions/conditions. But you set them up as value inputs to a flowscript, just like a macro. At the moment, to pass data to the flowscript I must create a blackboard variable and have the flowscript read it.

    This is fine, but it means the name must remain constant. If I wanted to re-use the flowscript in a different situation and reference a different BB variable then I need to write a new embedded flowscript and change the name it is reading. I have been working around this by making my macros the re-usable parts and then changing the BB variables that are fed into them in the embedded flowscripts.

    Hope this makes sense! I can attach some example screenshots if you like.

    #529
    Gavalakis
    Keymaster

    Hey,

    Yes, that’s how it will work once it gets done 🙂 There will be parameters in the Nested FlowScript inspector that will be possible to set with variables of the blackboard used in the Behaviour Tree (or any other parent graph), similar to how it’s done with actions/condition tasks.

    I hope I get to implement this new feature soon enough 🙂
    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.