self.free_counters, self.free_flags request
Posted: Sun Sep 11, 2011 6:54 pm
hi
I have a request, and hoping it is a small one that should be a simple addition to the pawn.lua file. OR, maybe I am going about things the wrong way.
I was wondering if the number of counters/flags/fields could be increase a bit.
As I am adding functionality to my bot as I learn how to do it, I am finding it harder to get my bot to keep track of things it needs to do at certain point in the game/map. Mainly when its time to go to a town and sell stuff, buy stuff, check mail, send mail, repair, check dailies, check quests etc etc, there is a "todo" list when in town.
I have no real clue how to implement local/global variables, so all my functions I treat as little isolated events, and create and reset variables when in that function, so when going from waypoint file to waypoint file etc, i am loosing track of what the bot is up to and what it needs to do, unless I constantly run the checks for all the things it may need to do before heading out of town.
I have not used the free_flags/counters, as there is only 3 of each, and would not really be enough to implement what I am thinking of trying (todo list that needs to be ticked off before leaving town).
Could the counters be increased to 10-15? It looks to me to be very easy to add these extra line (copy paste). but I do not know if that would have any impact on memory/loading times etc.
Thanks
I have a request, and hoping it is a small one that should be a simple addition to the pawn.lua file. OR, maybe I am going about things the wrong way.
I was wondering if the number of counters/flags/fields could be increase a bit.
As I am adding functionality to my bot as I learn how to do it, I am finding it harder to get my bot to keep track of things it needs to do at certain point in the game/map. Mainly when its time to go to a town and sell stuff, buy stuff, check mail, send mail, repair, check dailies, check quests etc etc, there is a "todo" list when in town.
I have no real clue how to implement local/global variables, so all my functions I treat as little isolated events, and create and reset variables when in that function, so when going from waypoint file to waypoint file etc, i am loosing track of what the bot is up to and what it needs to do, unless I constantly run the checks for all the things it may need to do before heading out of town.
I have not used the free_flags/counters, as there is only 3 of each, and would not really be enough to implement what I am thinking of trying (todo list that needs to be ticked off before leaving town).
Could the counters be increased to 10-15? It looks to me to be very easy to add these extra line (copy paste). but I do not know if that would have any impact on memory/loading times etc.
Thanks