testerino99 0 Share Posted November 24, 2021 I'm trying to make some sort of generic condition. Is there a method in the API that does as stated in title in the API. Trying to make sure the Player is in a dialogue (talking) to a specific NPC. Following works initally but after the first Dialogue appears the Player is no longer interacting and thus fails. Dialogues.inDialogue() && Players.localPlayer().isInteracting(NPCs.closest(getNPCname())) I could manually use the Widgets API and scrape the name of the NPC from the text box but that seems prone to breaking later if different id's are used.. Link to comment Share on other sites More sharing options...
Hosfad 154 Share Posted November 24, 2021 Hey you can check if youre in a dialouge and use Players.localPlayer().getCharacterInteractingWithMe() to get the npc youre interacting with Link to comment Share on other sites More sharing options...
testerino99 0 Author Share Posted November 24, 2021 Definitely checking out this method. Alright I actually just tried this and it seems to do exactly what I want. Thank you very much! I assume the players loses the 'interaction' with the NPC but not the other way around somehow? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.