activate and deactivate the active zone click of a character

  • #1, by lyraWednesday, 09. March 2016, 09:58 4 years ago
    Is it possible to activate and deactivate the active zone click of a character?

    Newbie

    31 Posts


  • #2, by afrlmeWednesday, 09. March 2016, 11:21 4 years ago
    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.

    Imperator

    6812 Posts

  • #3, by lyraWednesday, 09. March 2016, 12:25 4 years ago
    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.

    Newbie

    31 Posts

  • #4, by afrlmeWednesday, 09. March 2016, 12:41 4 years ago
    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
    1
    2


    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...

    Imperator

    6812 Posts

  • #5, by lyraWednesday, 09. March 2016, 13:23 4 years ago
    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

    Newbie

    31 Posts

Write post