Jump to content

How to have NPCs kick you out of their house?


Recommended Posts

I made a simple dialog action where if you speak with an NPC inside a house late at night, he/she will trigger the ActionOverride() function which sends you outside at defined coordinates. This is what I'm using for an NPC in AR1012.ARE in Icewind:

  ActionOverride(Player1,LeaveAreaLUA("AR1000","",[500.1530],SE))
  ActionOverride(Player2,LeaveAreaLUA("AR1000","",[480.1520],SE))
  ActionOverride(Player3,LeaveAreaLUA("AR1000","",[430.1500],SE))
  ActionOverride(Player4,LeaveAreaLUA("AR1000","",[350.1650],SE))
  ActionOverride(Player5,LeaveAreaLUA("AR1000","",[290.1630],SE))
  ActionOverride(Player6,LeaveAreaLUA("AR1000","",[270.1590],SE))

Is there a function that simply activates the entrance trigger? I want to make a generic action that can be copied/pasted instead of specifying coordinates each time.

Edited by pete_smith1229
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...