Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Tiberian Scripts: Banking problem

I was trying to use the Bank script in the Tiberian scripts thing that is in the forums script listings, here is a direct link to the bank part of the site:

http://home.comcast.net/~dcwikman/bank/index.html

I was having trouble and here is what I posted to him, but its been literally a month or so without a response so here is my problem:

Me:
In the banking system.. I tried putting it all in and now this happens if I try to talk to either of the events, the 'teller' or the 'storage locker':

I get this error:

Script 'Window_BankItem' line 74: TypeError occurred.

no implicit conversion from nil to integer

what do I do?

Tiberian:

Banking:

You're probably using a different version of RMXP than me, try deleting the lines about the self.contents.font.whatever = $defaultfontsomething.



So I'm no sure where this is or what this is and I'd really appreciate it if someone could tell me how to fix this.

Also, if no one knows, then if they can suggest an alternate banking system, that would be great too!
 
At 'Main', insert these two lines under 'begin':
Code:
$defaultfonttype = $fontface = $fontname = Font.default_name = ["Tahoma"]
$defaultfontsize = $fontsize = Font.default_size = 22

or delete
Code:
      self.contents.font.name = $defaultfonttype
      self.contents.font.size = $defaultfontsize
from Tiberian's Bank script(at Window_BankItem, Window_BankNumber, Window_AccStats).
 
okay I finally got around to finishing the bank.

A: How would I make it so that I can have just like a chest, like Resident Evil, that would store items and gold w/o a bank teller? it wouldn't need to link up with other chests though, just that room. I guess as part of the quest to earn the room the storage chest is in I could make it so they have access to the vault?

B: I hate the fact there are multiple accounts, how do I make it just one account?

C: How would I make it possible to separate between the 'Bank' vault and the 'storage chest' so the items don't mix?
 
bump

also, problems... 1. When I'm choosing an account, when I buy a new account it doesn't subtract from my gold total or seem to check to see if I have gold, how do I fix that? 2. In the right window of the same 'choosing account screen' it shows Gold: (Whatever gold I have in the bank) is that right or should it be the gold in my items? If it's the gold in my items, how do I fix it?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top