display narrator text with Luo

  • #1, by petertermanhansenThursday, 30. September, 16:08 3 weeks 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

    62 Posts


  • #2, by petertermanhansenFriday, 01. October, 12:37 3 weeks 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

    62 Posts

  • #3, by afrlmeMonday, 04. October, 17:00 2 weeks 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

    7025 Posts

  • #4, by petertermanhansenMonday, 04. October, 19:25 2 weeks 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

    62 Posts

Write post