Editing Infoportions

Jump to: navigation, search

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:
Pieces of information (strings) storing player's (or game) progress, achievements and game stats. Used to identify if player performed some action (touched some trigger, killed monster, activated batmark, checked out monologue mark etc.).
+
Pieces of information storing player's (or game) progress. They are used to identify if player was performed 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.
  
Example player infoportions array:
+
Infoportions could be local or global. Local infoportions belongs to player/npc, while global belongs to game and being active on all players.
comment_sun // sun monologue (in the light of the sun i have no comfort...) was executed
+
comment_rain // rain monologue was executed
+
w1m3_crypt1button_p // button 1 was pressed in light crypt
+
  
Infoportions could be local or global, can have values attached. 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.  
 
+
== Naming conventions ==
+
 
+
As all infoportions share same name space, some standarts of naming should be followed to avoid collisions.  
+
  
 
* Inventory-related infoportions are prefixed by "inv_"
 
* Inventory-related infoportions are prefixed by "inv_"
Line 16: Line 9:
 
* 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 ==
Line 45: Line 40:
 
* etc.
 
* etc.
  
Typical usage of infoportions for level design:
+
Typical usage on infoportions for level design:
* In some maps, there is two or moreentities representing same NPC (like barkeep in Ziegsturhl tavern), when one is killed, another ones should be removed too.
+
* 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.
Line 52: Line 47:
 
== See also ==
 
== See also ==
 
* [[Blood Omnicide Game stats]]
 
* [[Blood Omnicide Game stats]]
 +
* [[Zone event]]

Please note that all contributions to Blood Wiki are considered to be released under the Creative Commons Attribution Share Alike (see BloodWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox