Lama
2014-10-25 15:03:56
I'm working on a new script which allows users to input which direction a bank booth of banker is relative to the player (North, West, South, East) and I made a function ( function setBankBox(dir: integer): TBox; ) to handle that input (input in the form of the Player Form).
The script compiles, and the function is supposed to output ('Bank is: ' + direction) where direction is given a string value based on which direction the player inputs, as well as bankBox: TBox gets a value, however, when it does debug, it just say 'Bank is: ' and it is blank, at least I know it's being called though, so that's the first warning sign there is a bug…
And finally, when it gets around to doing the banking procedure, the cursor just goes to the uppermost left corner of the window and gets stuck in a loop of looking for text, meaning the bankBox is not set, or is set incorrectly, and/or the setBankBox function I have is not working like I think it should.
Any ideas to fix the function?
Here is the entire script:
[ATTACH]24265[/ATTACH]
It's a Make Leather script, so you may need to have extensive Livid Farm time to test it all out… but the bank procedure occurs before that, which is the problem spot at the moment.
Thanks!
The script compiles, and the function is supposed to output ('Bank is: ' + direction) where direction is given a string value based on which direction the player inputs, as well as bankBox: TBox gets a value, however, when it does debug, it just say 'Bank is: ' and it is blank, at least I know it's being called though, so that's the first warning sign there is a bug…
And finally, when it gets around to doing the banking procedure, the cursor just goes to the uppermost left corner of the window and gets stuck in a loop of looking for text, meaning the bankBox is not set, or is set incorrectly, and/or the setBankBox function I have is not working like I think it should.
Any ideas to fix the function?
Here is the entire script:
[ATTACH]24265[/ATTACH]
It's a Make Leather script, so you may need to have extensive Livid Farm time to test it all out… but the bank procedure occurs before that, which is the problem spot at the moment.
Thanks!