NPC hidden at the beginning and later shown

  • #1, von pdsFreitag, 22. Mai 2015, 10:04 Uhr vor 10 Jahren
    Hello, i have this little issue.
    I have a scene where the main character use the phone, and later start a conversation with an npc.
    the npc must be VISIBILE after that the character have do an action.

    - i have set a condition to npc in scene: "npc-visible" to false (the npc is not visible)
    -then in an action i add "change condition" to npc-visible to true. But npc is not shown.

    Should you suggest me why?

    thank you

    Neuling

    55 Posts


  • #2, von afrlmeFreitag, 22. Mai 2015, 11:21 Uhr vor 10 Jahren
    Is this NPC a scene object or a character?

    Foren Imperator

    7285 Posts

  • #3, von pdsFreitag, 22. Mai 2015, 11:35 Uhr vor 10 Jahren
    it's like glen tutorial, it's a character that stand in a scene object

    Neuling

    55 Posts

  • #4, von afrlmeFreitag, 22. Mai 2015, 12:07 Uhr vor 10 Jahren
    You mean a character that you have linked to a scene object?

    1. unlink the npc characters starting position in the npc characters properties tab.

    2. use the set character to object or set character to position action part to bring in the character when you want it to be in the scene.

    3. alternatively you could set the character opacity (visibility) or use Lua to enable / disable the character with...
    Characters["character name"].CharacterActive = false -- hide character & prevent interaction
    
    -- or...
    
    Characters["character name"].CharacterActive = true -- show character & allow interaction
    

    Foren Imperator

    7285 Posts

  • #5, von pdsFreitag, 22. Mai 2015, 13:26 Uhr vor 10 Jahren
    thank you

    Neuling

    55 Posts

  • #6, von howlingwolf86Dienstag, 29. August 2017, 22:19 Uhr vor 7 Jahren
    You mean a character that you have linked to a scene object?

    1. unlink the npc characters starting position in the npc characters properties tab.

    2. use the set character to object or set character to position action part to bring in the character when you want it to be in the scene.

    3. alternatively you could set the character opacity (visibility) or use Lua to enable / disable the character with...
    Characters["character name"].CharacterActive = false -- hide character & prevent interaction
    
    -- or...
    
    Characters["character name"].CharacterActive = true -- show character & allow interaction
    
    Hi, I am trying to use the visibility solution. But how do I set the visibility of the NPC at 0% when the game starts? (so I can turn it at 100% later in the game). I guess the show/hide functionality is also an option, but the same problem...

    Neuling

    12 Posts

  • #7, von sebastianDienstag, 29. August 2017, 22:22 Uhr vor 7 Jahren
    use "at begin use following action" in the game settings to run some actions before game starts. There you can place your action parts

    Thread König

    2346 Posts

  • #8, von MachtnixMittwoch, 30. August 2017, 01:58 Uhr vor 7 Jahren
    I often use "action at the beginning of the scene" when the first scene appears.

    Thread König

    1097 Posts

  • #9, von howlingwolf86Donnerstag, 31. August 2017, 16:38 Uhr vor 7 Jahren
    use "at begin use following action" in the game settings to run some actions before game starts. There you can place your action parts

    Thx a lot Sebastian!

    Neuling

    12 Posts