User Tools

Site Tools


hpl2:machine_for_pigs:notes

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpl2:machine_for_pigs:notes [2020/04/04 13:46]
mudbill
hpl2:machine_for_pigs:notes [2020/04/04 14:14] (current)
mudbill [Player]
Line 3: Line 3:
 A list of script functions available in A Machine For Pigs (that are not present in The Dark Descent). Many of TDD's scripts are available in AMFP, but not all. Some are replaced by ones listed below, and others are removed. A list of script functions available in A Machine For Pigs (that are not present in The Dark Descent). Many of TDD's scripts are available in AMFP, but not all. Some are replaced by ones listed below, and others are removed.
  
-<font inherit/​inherit;;#​FF0000;;​inherit>​NOTE</​font> ​   : This page is partially incomplete. Some arguments for the functions listed here have unknown effects. If you wish to contribute, feel free to test them.+<font inherit/​inherit;;#​FF0000;;​inherit>​NOTE</​font> ​   : This page is partially incomplete. Some arguments for the functions listed here have unknown effects. If you wish to contribute, feel free to test them. It's also possible there are additional script functions not listed here that exist within the engine.
  
 ---- ----
Line 62: Line 62:
 Adds a hint to the player'​s journal. \\ This function replaces TDD's ''​AddDiary''​. Adds a hint to the player'​s journal. \\ This function replaces TDD's ''​AddDiary''​.
  
-  - //​asNameAndTextEntry// ​ - The .lang text entry of the hint. The entry must be in category "​Journal"​ and begin with "​Hint__ckgedit____>​ and end with _ckgedit_________QUOT__Name" ​for the title and end with "​_Text" ​for the body.+  - //​asNameAndTextEntry// ​ - The .lang text entry of the hint. The entry must be in category "​Journal"​ and use the format Hint_MyHint_Name ​for the title and Hint_MyHint_Text ​for the body, where MyHint replaces the value you put in this argument.
   - //​asImage// ​ - This argument does not seem to be used. Presumed to be for displaying an image but possibly removed functionality. All existing occurrences are empty.   - //​asImage// ​ - This argument does not seem to be used. Presumed to be for displaying an image but possibly removed functionality. All existing occurrences are empty.
 <code c++> <code c++>
Line 84: Line 84:
 </​code>​ </​code>​
  
-Sets the infection level for the player. Infection replaces sanity from TDD and acts similar, however it goes from 0-100 instead of 100-0. An infection level above approximately 20 will affect the player'​s ability to move. Infection level above 80 will kill the player. Infection slowly decreases over time, unless high enough. \\ This function replaces TDD's ''​SetPlayerSanity''​.+Sets the [[:​hpl2:​machine_for_pigs:​infection|infection]] ​level for the player. Infection replaces sanity from TDD and acts similar, however it goes from 0-100 instead of 100-0. An infection level above approximately 20 will affect the player'​s ability to move. Infection level above 80 will kill the player. Infection slowly decreases over time, unless high enough. \\ 
 +This function replaces TDD's ''​SetPlayerSanity''​.
  
   - //​afAmount// ​ - The level of infection to set   - //​afAmount// ​ - The level of infection to set
Line 241: Line 242:
  
   - //​asProp// ​ - The attached prop   - //​asProp// ​ - The attached prop
 +<code c++>
 +void AttachAreaToProp(string@&​ asArea, string@&​ asProp, const float afUnknown);
 +</​code>​
 +
 +Attaches an area to a prop, however testing has not yielded any useful results. Originally used to attach a liquid area to a movable water plane entity in the sewers map.
 +
 +  - //​asArea// ​ - The area to attach
 +  - //​asProp// ​ - The prop to attach area to
 +  - //​alUnknown// ​ - Unknown float value
 ==== Sounds ==== ==== Sounds ====
  
hpl2/machine_for_pigs/notes.1586008013.txt.gz · Last modified: 2020/04/04 13:46 by mudbill