bbBank does not exist?
Blitz3D Forums/Blitz3D Beginners Area/bbBank does not exist?
| ||
I'm working on an RPG with skills. Each skill gets upto 3 missles that it will shoot when it is cast. Each missle has upto 3 Damage Types (physical, heat, ect). Well, the missle itself has a total damage it will do, and each type gets a percent of that damage when it hits. Well, when I try to create a missle type and set it's bank up, it tells me that the bank doesn't exist! I've been working a couple hours on fixing this, so I decided to come here. Thanks for any help. My code: |
| ||
P.S. How do you get that cool little scroll box to put code in? That would be useful =o) (codebox) (/codebox) but of course, with square brackets. _________________________________________ As for your main question... Sorry, Not used banks! |
| ||
msl.Missle=New Missle msl\DmgPercent%=Dmg% For c=0 To 5 PokeByte msl\DmgValues,c,PeekByte(BankValues,c) Next msl\DmgValues is 0. you have to make it a bank |
| ||
Confusion sets in... Where does it say that DmgValues=0? |
| ||
. |
| ||
You end your CreateTypePercentsBank(a%,b%,c%,d%,e%,f%) function with Free Bank, and then you return a emty bank pointer in the same function.. Free bank finish Return finish |
| ||
Sorry, did't look at it to good. You did Return finish first before freeing it. |