bbBank does not exist?

Blitz3D Forums/Blitz3D Beginners Area/bbBank does not exist?

Jellon(Posted 2004) [#1]
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:




_PJ_(Posted 2004) [#2]

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!


Curtastic(Posted 2004) [#3]
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


Jellon(Posted 2004) [#4]
Confusion sets in... Where does it say that DmgValues=0?


WolRon(Posted 2004) [#5]
.


Tiger(Posted 2004) [#6]
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


Tiger(Posted 2004) [#7]
Sorry, did't look at it to good.
You did Return finish first before freeing it.