Both sides previous revision Previous revision Next revision | Previous revision | ||
hpl2:machine_for_pigs:notes [2020/04/04 13:56] mudbill [Engine scripts] |
hpl2:machine_for_pigs:notes [2020/04/04 14:14] (current) mudbill [Player] |
||
---|---|---|---|
Line 60: | Line 60: | ||
</code> | </code> | ||
- | Adds a hint to the player's journal.\\ | + | Adds a hint to the player's journal. \\ This function replaces TDD's ''AddDiary''. |
- | This function replaces TDD's ''AddDiary''. | + | |
- | - //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. | + | - //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 72: | Line 71: | ||
- //abDisabled// - True to disable, false to enable again | - //abDisabled// - True to disable, false to enable again | ||
- | |||
==== Player ==== | ==== Player ==== | ||
Line 86: | 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 252: | Line 251: | ||
- //asProp// - The prop to attach area to | - //asProp// - The prop to attach area to | ||
- //alUnknown// - Unknown float value | - //alUnknown// - Unknown float value | ||
- | |||
==== Sounds ==== | ==== Sounds ==== | ||