Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //From my Amnesia Rebirth Tutorial Series
- //Episode 9 Hints and Some Scripting
- //https://www.youtube.com/channel/UCHEzyhMw1EALBcJEKVJFmwA
- //-----------------------------------------------------------
- //Lang file--------------------------------------------------
- <CATEGORY Name="Hints">
- <Entry Name="HintStorageDoor">Explore around to locate a way to open this door.</Entry>
- </CATEGORY>
- //The functions----------------------------------------------
- //Shows hint with the Hint header (Note: only the first 2 values are required to run this function)
- Hint_ShowHint("Hints", "HintStorageDoor", false, 1.5f, true);
- //HintCategory (String)- category as specified in your lang file
- //HintEntryName (String)- hint entry name as specified in your lang file
- //IsInputHint (bool)- is the hint provided an input related hint (default is false)
- //TimeMultipler (float)- amount of time that hint should be shown for (default is 1.5f)
- //AddAsGiven (bool)- mark the hint as given, to track if it has already been given (default is true)
- //Shows hint with the alert header (Note: only the first 2 values are required to run this function)
- Hint_ShowAlert("HintsAlert", "MyAlertHint", false, 1.5f, true);
- //HintCategory (String)- category as specified in your lang file
- //HintEntryName (String)- hint entry name as specified in your lang file
- //IsInputHint (bool)- is the hint provided an input related hint (default is false)
- //TimeMultipler (float)- amount of time that hint should be shown for (default is 1.5f)
- //AddAsGiven (bool)- mark the hint as given, to track if it has already been given (default is true)
- //Shows hint with the info header (Note: only the first 2 values are required to run this function)
- Hint_ShowInfo("HintsInfo", "MyInfoHint", false, 1.5f, true);
- //HintCategory (String)- category as specified in your lang file
- //HintEntryName (String)- hint entry name as specified in your lang file
- //IsInputHint (bool)- is the hint provided an input related hint (default is false)
- //TimeMultipler (float)- amount of time that hint should be shown for (default is 1.5f)
- //AddAsGiven (bool)- mark the hint as given, to track if it has already been given (default is true)
- //Shows hint with the danger header (Note: only the first 2 values are required to run this function)
- Hint_ShowDanger("HintsDanger", "MyDangerHint", false, 1.5f, true);
- //HintCategory (String)- category as specified in your lang file
- //HintEntryName (String)- hint entry name as specified in your lang file
- //IsInputHint (bool)- is the hint provided an input related hint (default is false)
- //TimeMultipler (float)- amount of time that hint should be shown for (default is 1.5f)
- //AddAsGiven (bool)- mark the hint as given, to track if it has already been given (default is true)
- //Stops any showing hints (Note: you can specify no fade time and this function will default to 0)
- Hint_StopHint(0.0f);
- //fadeTime (float)- the time it should take for any hints to fade
- //Marks the hint as it has already been shown to the player
- Hint_AddAsGiven();
- //HintCategory (String)- category as specified in your lang file
- //HintEntryName (String)- hint entry name as specified in your lang file
- //Checks if hint was already given
- Hint_IsGiven();
- //HintCategory (String)- category as specified in your lang file
- //HintEntryName (String)- hint entry name as specified in your lang file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement