goldencow2 / 18Engine

A plug-and-play script that can be added to any 18XX mod on TTS with no scripting knowledge.
GNU General Public License v3.0
4 stars 3 forks source link

[DONTMERGE] First attempt at multiple bank zones #6

Closed shazzner closed 2 years ago

shazzner commented 2 years ago

This was my attempt at creating multiple bank zones by creating the variable: BANK_POOL_ZONE_GUIDS and setting it to a table of TTS GUIDS.

This in turn paid out dividends as a normal bank pool does in games like 1889. Unfortunately I wasn't able to get the payoutTable[caller.key][2] working correctly and it might need some slight refactoring for it to do so.

Please don't merge this as it has some example code in it and is just to give an idea about my intention.