Sicilian7 9 Share Posted September 12, 2020 If two or more TaskNodes share the same priority value, is the behavior well-defined? Link to comment Share on other sites More sharing options...
Pandemic 2702 Share Posted September 12, 2020 It is, if two or more tasks are accepted and have the same priority, whichever was added first initially via addNodes will be executed. With that being said, you should try to make sure each node has it's own priority level since it'll act the same anyways without needing to worry about our end Link to comment Share on other sites More sharing options...
Sicilian7 9 Author Share Posted September 13, 2020 6 hours ago, Pandemic said: It is, if two or more tasks are accepted and have the same priority, whichever was added first initially via addNodes will be executed. With that being said, you should try to make sure each node has it's own priority level since it'll act the same anyways without needing to worry about our end I have been running into an issue where I will define a bunch of nodes with priorities say 1,2,3,4,5,6, but I later want to add a node whose priority is between 3 and 4, but I don't necessarily want to change the numbers for all the other nodes just to add one node. Hence my question. I guess I could even do the priorities next time in multiples of 10 or something so I have the opportunity to add some nodes later. Link to comment Share on other sites More sharing options...
dQw4w9WgXcQ 184 Share Posted September 13, 2020 isnt priority a float Link to comment Share on other sites More sharing options...
LordJashin32 54 Share Posted September 14, 2020 On 9/13/2020 at 1:47 AM, dQw4w9WgXcQ said: isnt priority a float Nope, https://dreambot.org/javadocs/3/org/dreambot/api/script/TaskNode.html#priority-- Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.