Advertisement
TechOFreak

Episode 9 Functions

Nov 20th, 2020
826
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.33 KB | None | 0 0
  1. //From my Amnesia Rebirth Tutorial Series
  2. //Episode 9 Hints and Some Scripting
  3. //https://www.youtube.com/channel/UCHEzyhMw1EALBcJEKVJFmwA
  4. //-----------------------------------------------------------
  5.  
  6. //Lang file--------------------------------------------------
  7.  
  8. <CATEGORY Name="Hints">
  9.     <Entry Name="HintStorageDoor">Explore around to locate a way to open this door.</Entry>
  10.   </CATEGORY>
  11.  
  12. //The functions----------------------------------------------
  13.  
  14. //Shows hint with the Hint header (Note: only the first 2 values are required to run this function)
  15. Hint_ShowHint("Hints", "HintStorageDoor", false, 1.5f, true);
  16. //HintCategory (String)- category as specified in your lang file
  17. //HintEntryName (String)- hint entry name as specified in your lang file
  18. //IsInputHint (bool)- is the hint provided an input related hint (default is false)
  19. //TimeMultipler (float)- amount of time that hint should be shown for (default is 1.5f)
  20. //AddAsGiven (bool)- mark the hint as given, to track if it has already been given (default is true)
  21.  
  22. //Shows hint with the alert header (Note: only the first 2 values are required to run this function)
  23. Hint_ShowAlert("HintsAlert", "MyAlertHint", false, 1.5f, true);
  24. //HintCategory (String)- category as specified in your lang file
  25. //HintEntryName (String)- hint entry name as specified in your lang file
  26. //IsInputHint (bool)- is the hint provided an input related hint (default is false)
  27. //TimeMultipler (float)- amount of time that hint should be shown for (default is 1.5f)
  28. //AddAsGiven (bool)- mark the hint as given, to track if it has already been given (default is true)
  29.  
  30. //Shows hint with the info header (Note: only the first 2 values are required to run this function)
  31. Hint_ShowInfo("HintsInfo", "MyInfoHint", false, 1.5f, true);
  32. //HintCategory (String)- category as specified in your lang file
  33. //HintEntryName (String)- hint entry name as specified in your lang file
  34. //IsInputHint (bool)- is the hint provided an input related hint (default is false)
  35. //TimeMultipler (float)- amount of time that hint should be shown for (default is 1.5f)
  36. //AddAsGiven (bool)- mark the hint as given, to track if it has already been given (default is true)
  37.  
  38. //Shows hint with the danger header (Note: only the first 2 values are required to run this function)
  39. Hint_ShowDanger("HintsDanger", "MyDangerHint", false, 1.5f, true);
  40. //HintCategory (String)- category as specified in your lang file
  41. //HintEntryName (String)- hint entry name as specified in your lang file
  42. //IsInputHint (bool)- is the hint provided an input related hint (default is false)
  43. //TimeMultipler (float)- amount of time that hint should be shown for (default is 1.5f)
  44. //AddAsGiven (bool)- mark the hint as given, to track if it has already been given (default is true)
  45.  
  46. //Stops any showing hints (Note: you can specify no fade time and this function will default to 0)
  47. Hint_StopHint(0.0f);
  48. //fadeTime (float)- the time it should take for any hints to fade
  49.  
  50. //Marks the hint as it has already been shown to the player
  51. Hint_AddAsGiven();
  52. //HintCategory (String)- category as specified in your lang file
  53. //HintEntryName (String)- hint entry name as specified in your lang file
  54.  
  55. //Checks if hint was already given
  56. Hint_IsGiven();
  57. //HintCategory (String)- category as specified in your lang file
  58. //HintEntryName (String)- hint entry name as specified in your lang file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement