activate and deactivate the active zone click of a character

  • #1, von lyraMittwoch, 09. März 2016, 09:58 Uhr vor 9 Jahren
    Is it possible to activate and deactivate the active zone click of a character?

    Neuling

    31 Posts


  • #2, von afrlmeMittwoch, 09. März 2016, 11:21 Uhr vor 9 Jahren
    Do you mean you want to prevent the active character from being able to walk / interact at certain points in your game? Or do you mean something else entirely.

    The best method I know of to prevent the player from being able to update the destination is to swap out your active character with an NPC version. Basically store the position of your active character (with Lua) or if it's a fixed position such as a scene object, then you set your active character to another scene & temporarily set the NPC character to where your character was standing. You may need to use conditions & combination conditions to determine what the npc can interact with.

    Foren Imperator

    7285 Posts

  • #3, von lyraMittwoch, 09. März 2016, 12:25 Uhr vor 9 Jahren
    No, forgive my bad explanation,

    I need to know how to turn off the click area of a NPC,
    for not being able to interact with the npc.

    Neuling

    31 Posts

  • #4, von afrlmeMittwoch, 09. März 2016, 12:41 Uhr vor 9 Jahren
    Hmm... There is an option to disable a character with Lua script but I forget whether or not if it also ends up hiding the character too.

    Try adding this inside of an "execute a script" action part...
    Characters["Tom"].Active = false
    


    Alternatively you could create a condition & wrap all of your actions inside of the npc with an if condition = true / false query to determine if the command or item dropped should do anything or not.

    Alternatively (again)... create a scene object version of your npc. Create a condition & assign it to the properties tab of the object to control when the object should be shown. Now when you no longer want the player to be able to interact with the npc you can teleport the npc to another scene & change the condition value you set to the scene object immediately afterwards to show the scene object version.

    I'm just quickly rattling off a few ideas / methods here. Hopefully they will make a little sense to you...

    Foren Imperator

    7285 Posts

  • #5, von lyraMittwoch, 09. März 2016, 13:23 Uhr vor 9 Jahren
    The script hide the character, and the other 2 ideas not convinced.

    I think i hide the mouse to this.

    Thank you very much, we will make an altar for you smile XD

    Neuling

    31 Posts