Editing Infoportions
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | {{article unfinished}} | |
− | + | 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 | + | Infoportions could be local or global. Local infoportions belongs to player/npc, while global belongs to game and being active on all players. |
− | + | As all infoportions shares same name space there is some standarts of naming to get rid of collisions. | |
− | + | ||
− | As all infoportions | + | |
* Inventory-related infoportions are prefixed by "inv_" | * Inventory-related infoportions are prefixed by "inv_" | ||
− | * Level-related and level-interaction infoportions set by level designer are prefixed by the [[Blood Omnicide | + | * Level-related and level-interaction infoportions set by level designer are prefixed by the [[Blood Omnicide locations | worldnum and mapnum]] they are targeted to (w1m1_, w1m4_ etc.) |
* Kain's eventual comments (snow, rain etc.) are prefixed by "comment_". | * Kain's eventual comments (snow, rain etc.) are prefixed by "comment_". | ||
* Global infoportions always prefixed by # | * Global infoportions always prefixed by # | ||
+ | |||
+ | Infoportions can have values attached. | ||
== Usage == | == Usage == | ||
− | For level designer, generic way to | + | For level designer, generic way to use infoportions is [[Trigger event]] and [[Pattern scripts]]. Trigger event allows to add new infoportions or values (in the form of counters). Pattern scripts allows to check for any infoportions (including gamecode-related, such as gamestats). |
To make life easier, it is useful to name all infoportions using this rule: | To make life easier, it is useful to name all infoportions using this rule: | ||
Line 45: | Line 42: | ||
* etc. | * etc. | ||
− | Typical usage | + | Typical usage on infoportions for level design: |
− | * | + | * When having same NPC in two maps (like barkeep in Ziegsturhl tavern), when one is killed, another should be removed too. |
* Open doors, activate stuff in another levels. | * Open doors, activate stuff in another levels. | ||
* Spawn more enemies when kain kills someone. | * Spawn more enemies when kain kills someone. | ||
== See also == | == See also == | ||
− | * [[ | + | * [[Zone event]] |