What are the limits on various things?
From OHRRPGCE-Wiki
Many people ask about the various limits on different features. Here is a more-or-less complete list of all the limits on various things in an OHRRPGCE game.
Contents |
[edit] Graphics
All 16-color paletted graphics, including heroes, walkabouts, enemies of each size, weapons and attacks are limited to 32767 graphics sets. (See also What are the correct sizes for each type of graphics?)
- Walkabouts may have 8 frames: 2 in each direction
- Hero sprites have 8 frames: Standing/Walk Frame A, Walk Frame B, Attack A, Attack B, Cast/Use Item, Defend, Hurt, Dead
- Enemy sprites all have 1 frame
- Weapons have 2 frames
- Attacks have 3 frames animated any number of ways
See also: Plan for raising sprite frame limits
[edit] Backdrops
You can have up to 32767 backdrops (battle & textbox backgrounds)
[edit] Palettes
You can have up to 32767 master palettes, only one of which can be used at once. Each master palette contains 256 colours from the usual 24-bit RGB colour-space. It can also be modified in-game. You can have 32767 16-color palettes, with colours chosen from the active master palette.
[edit] Maps
Starting with release rusalka, you can have up to 32767 maps. In version quaternion and older, the limit was 100 maps. This limit was raised thanks to the efforts of The Mad Cacti.
Each map can have three layers, numbered 0 to 2. The top layer (#2) is drawn on top of the hero and NPC sprites
[edit] Tilesets
You can have up to 32767 tilesets. (You can change tilesets with plotscripting using the 'load tileset' command.)
[edit] Songs
You can have up to 32767 songs, which are either BAMs or MIDIs. Previously, you could have up to 100 BAM songs. See: BAM
[edit] Sound Effects
You can have up to 32767 sound effects. They are in OGG format, but you can also import WAV and MP3 files and they will be converted.
[edit] Heroes
You can have 4 heroes in your active party at a time. You can have 41 heroes at a time total, including both active and reserve heroes. You can have 60 heroes defined in your whole game. Each hero you create in CUSTOM.EXE may appear in the party any number of times (that is, up to 41). All of these limits are imposed by memory restrictions.
[edit] NPCs
There is a maximum of 36 NPCs defined per map, although you can place more than one copy of the same NPC in different places on the map. There is a maximum of 300 total NPC "instances" per map. These are historical limitations left over from the DOS version.
See also: Plan for raising NPC-per-map limits
[edit] Doors
There is a maximum of 100 doors per map. However, you can have up to 200 door links leading away from a map, with any number per door. This is so that the same door can lead to different places depending on conditionals.
[edit] Attacks
You can define up to 32767 attacks.
[edit] Enemies
You can define up to 32767 enemies.
[edit] Enemy Formations
You can combine your enemies into up to 32767 formations.
[edit] Enemy Formation Sets
You can combine your formations into up to 255 formation sets. This limitation is because the formation set number has to be stored in 8-bits of data.
[edit] Items
You can define up to 254 items. This limitation is because items are stored in 8-bits of data.
There are 198 slots in your inventory (up to 198 types of items in your inventory at a time).
You can have up to 99 instances of each of those items in each slot of your inventory. That is just a screen-space limit, plus it is longstanding RPG tradition. If you gain more than 99 of an item, the next 99 will fill another slot in the items menu, and so on.
See also: Plan for increasing item limit
[edit] Tags
There are 1000 tags. (tags 0 and 1 are special, 2-999 are customizable) This is a file format and backwards compatability limitation.
See also: Plan for increasing available tags
[edit] One-time usable NPCs
You can have up to 1000 one-time usable NPCs. Internally, one-time NPCs are actually stored the same way as tags.
See also: Plan for increasing available tags
[edit] Scripts
Your game can contain at least 16383 scripts. The script interpreter can handle up to 128 scripts at a time, with up to 2048 local variables in total (including recursive scripts). The maximum script size is 256KB of compiled script code (not related to size of uncompiled script), besides this there is no script buffer limit. You can have up to 4096 global script variables and 32 strings.
[edit] Text boxes
You can have up to 32767 text boxes.
[edit] Shops
You can have up to 32767 shops defined, and each shop can contain up to 50 items/heroes (memory limitation)
[edit] Spells
Each hero can have up to 4 spell lists, each containing up to 24 spells.
[edit] Vehicles
You can define up to 32767 vehicle types, but the number of vehicles you can actually place is limited by the number of NPCs per map.
[edit] Money
The party can carry up to $999999 (I think). This is an RPG tradition, not a technical one.
