display narrator text with Luo

  • #1, by petertermanhansenThursday, 30. September 2021, 16:08 2 years ago
    Hi
    I want to use Luo to choose a narrator-ext depending on some variables.
    Is there a way to use the narrator-cmd wih Luo?

    Regard Peter

    Newbie

    81 Posts


  • #2, by petertermanhansenFriday, 01. October 2021, 12:37 2 years ago
    Hi again
    When I right-click on an action there is an option for 'Lua path'
    And it  gives this:
    call Scenes.SceneChar.Actions["At beginning of scene"].ActionParts["Narration: test"]

    How to use this in Lua

    Regards Peter

    Newbie

    81 Posts

  • #3, by afrlmeMonday, 04. October 2021, 17:00 2 years ago
    I don't think you can start an action like that. you could insert them into called by other action blocks & then call those actions with Lua script, but that seems overkill when you could just create a value & use elseif value action parts to determine which one to use.

    Imperator

    7278 Posts

  • #4, by petertermanhansenMonday, 04. October 2021, 19:25 2 years ago
    The issue is that I have 12 scenes that needs the same descision-table. I have to repeat almost identical actions in each scene. 

    If I could call just one lua-script with parameters, the code would so much easer to maintan.

    Newbie

    81 Posts