Infoportions
Infoportions is a pieces of information storing player's (or game) progress. They are used to identify if player was maked some action (touched some trigger, killed monster, activated batmark, checked out monologue mark etc.). Infoportions store data across levels and also used for game stats and achievements.
Infoportions could be local or global. Local infoportions belongs to player/npc, while global belongs to game and being active on all players.
While all infoportions shared name space, there is some standarts of naming to get rid of collisions.
- Inventory-related infoportions are prefixed by "inv_"
- Level-related and level-interaction infoportions are prefixed by the worldnum and mapnum they are targeted to (w1m1_, w1m4_ etc.)
- Kain's eventual comments (snow, rain etc.) are prefixed by "comment_".
- Global infoportions always prefixed by #
For level designer, generic way to use infoportions is Trigger event and Pattern scripts. Clever usage of them helps to make buttons that open doors in other levels, spawn additional monsters if Kain was maked some special action and other event chains.