Hopewelljnj 46 Share Posted June 3, 2016 why are u even trying to use it tho rly doubt u need to I am going to be using it in my quester. Need to hold onto data from one of the people in demon slayer. Link to comment Share on other sites More sharing options...
deathsgrasp 0 Share Posted June 5, 2016 I mean if you're already using dialogues you can just make sure you're in a dialogue via: inDialogue() and then just use getWidgets().getWidgetChildrenContainingText(textHere) (comes from MethodProvider). It will return an empty list if there's nothing containing that text. If for whatever reason there would be no way to use a String to find a reference you could do something ugly to avoid changing your widgets when the client changes, such as- doing the above to get the "Click here to continue" WidgetChild (or extending off of Dialogues since the method if protected) and then get the WidgetChild's parent ID via getParentID() and there you have the ID the parent works off aka the proper widget of the dialogue. It's not a very elegant solution (it's actually really nasty) but I'd need to see how the widgets are changing to come up with a better one. Link to comment Share on other sites More sharing options...
Hopewelljnj 46 Share Posted June 5, 2016 I mean if you're already using dialogues you can just make sure you're in a dialogue via: inDialogue() and then just use getWidgets().getWidgetChildrenContainingText(textHere) (comes from MethodProvider). It will return an empty list if there's nothing containing that text. If for whatever reason there would be no way to use a String to find a reference you could do something ugly to avoid changing your widgets when the client changes, such as- doing the above to get the "Click here to continue" WidgetChild (or extending off of Dialogues since the method if protected) and then get the WidgetChild's parent ID via getParentID() and there you have the ID the parent works off aka the proper widget of the dialogue. It's not a very elegant solution (it's actually really nasty) but I'd need to see how the widgets are changing to come up with a better one. Which is what I did . But it'd be much nicer for there to be a simple API method. That already has access to the WidgetIDs instead of the complexity it would take otherwise. Link to comment Share on other sites More sharing options...
darkjack7 4 Share Posted June 7, 2016 couldn't u do getDialogues().getOptions() which returns an string array and go through each? Link to comment Share on other sites More sharing options...
GreenTruck 37 Author Share Posted June 7, 2016 getOptions isn't regular text, getOptions is when the npc gives you a few "Options" to choose from. Link to comment Share on other sites More sharing options...
Stormscythe 263 Share Posted June 7, 2016 If it is just for demon slayer, I'd go with widgets for now - just my opinion :-P Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.