mixster
2008-01-02 16:56:47
After an hour or so of coding, I made a simple functions/procedures for performing general actions on the BGMafia game (google it if you don't know it), (performing crimes/actions, going to a bar for a drink and also going back to your home street). With 3 simple bits of script, you can pretty much leave your person on for a while and they won't die or get arrested (as long as you have a balanced routine involving doing negative risk actions too and only using around 90 or so energy just to be safe).
At the moment, it's in a very simple state and I do plan on updating it along the line, but feel free to try it out and tell me how it works. The few writeln's should tell you what's going on as well as how many loops there are left and it should be easy enough to use the Action and Bar function with minimal effort (thrown in little helpers in the script too though).
Edit: Changed the script quite a bit. Added an auto health checker that decides whether you need to go to hospital or not and if you do takes you there and you get a health refill. Also added optional debug mode that outputs a lot of extra text telling you what's happening. Lastly, made it even easier to customize to your liking as well as throwing in a couple of extra Const's that fix any offset that may happen in the bar.
At the moment, it's in a very simple state and I do plan on updating it along the line, but feel free to try it out and tell me how it works. The few writeln's should tell you what's going on as well as how many loops there are left and it should be easy enough to use the Action and Bar function with minimal effort (thrown in little helpers in the script too though).
Edit: Changed the script quite a bit. Added an auto health checker that decides whether you need to go to hospital or not and if you do takes you there and you get a health refill. Also added optional debug mode that outputs a lot of extra text telling you what's happening. Lastly, made it even easier to customize to your liking as well as throwing in a couple of extra Const's that fix any offset that may happen in the bar.