Advertisement
TechOFreak

Episode 34 Functions and XML

Feb 27th, 2021
1,417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.50 KB | None | 0 0
  1. //From my Amnesia Rebirth Tutorial Series
  2. //Episode 34 Reminders/Momentos! Questing!
  3. //https://www.youtube.com/playlist?list=PL4KkjlmOwLwwMVqedCNpi6caUxhgyf8Qr
  4. //-----------------------------------------------------------
  5.  
  6. ///////////////////////////////////////////////////
  7. // Functions used in today's episode
  8. //////////////////////////////////////////////////
  9.  
  10. //Add a new idea in the reminders tabs
  11. Sketchbook_AddIdea("find_hammer");
  12. Sketchbook_AddIdea("find_hammer_complete");
  13. //ideaName (String)- the name of the idea as it appears in the playerIdeas.cfg file
  14. //showAlert (bool)- show a notification and play the sketch sound (false to disable this, this value is optional default is True).
  15.  
  16. ///////////////////////////////////////////////////
  17. // playerideas.cfg file
  18. //////////////////////////////////////////////////
  19. <?xml version="1.0"?>
  20. <Ideas>
  21.     <Pages Count="1">
  22.  
  23.         <Page Name="starting_room" PageNumber="0">
  24.             <Image Name="find_hammer" Filename="find_hammer.png" NormX="0.135" NormY="0.15" NormSizeX=".2" NormSizeY=".2" HasText="True"/>
  25.             <Image Name="find_hammer_complete" Filename="find_hammer_complete.png" NormX="0.135" NormY="0.15" NormSizeX=".2" NormSizeY="0.2" HasText="True"/>
  26.         </Page>
  27.  
  28.     </Pages>
  29. </Ideas>
  30.  
  31. ///////////////////////////////////////////////////
  32. // english.lang file entries
  33. //////////////////////////////////////////////////
  34.   <CATEGORY Name="Ideas">
  35.     <Entry Name="find_hammer">Hammer</Entry>
  36.     <Entry Name="find_hammer_complete">Hammer</Entry>
  37.   </CATEGORY>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement