Advertisement
Daemonion

Found PDA

Feb 17th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.24 KB | None | 0 0
  1. HOW TO ADD PDAS WITH INFO TO NPCs
  2.  
  3.  
  4. 1) Place an NPC in the level editor
  5.     - Open the properties menu and give them health of 0
  6.     - add the following to their custom data field:
  7.  
  8. ;start
  9. [known_info]
  10. xxinfo
  11. ;end
  12.  
  13.     - Save and create a new all.spawn, copy the proper files over, etc
  14.  
  15.    
  16.  
  17. 2) Open config\gameplay\info_(level that the npc is in).xml to make a new info portion.
  18. The name you chose for the info portion (xxinfo in this example) must also be added here. For this tutorial, we also want to create a new article.
  19.  
  20. <!-- start -->
  21. <info_portion id="xxinfo">
  22.     <article>xxarticle</article>
  23. </info_portion>
  24. <!-- end -->
  25.  
  26.  
  27.  
  28. 3) Open config\gameplay\storyline_info_(level that the npc is in).xml to make a new article. You'll also have to make another "name" - pick something logical. We are making a journal entry from a found PDA, so article_type has to be "journal" and group has to be "Found_PDA". The article_text is the actual "story" you'll find in your PDA. Regular formating (coloring, \n for new lines, etc, apply here).
  29.  
  30. <!-- start -->
  31. <article id="xxarticle" name="xxname" article_type="journal" group="Found_PDA">
  32.     <text>xxarticle_text</text>
  33. </article>
  34. <!-- end -->
  35.  
  36.  
  37.  
  38. 4) Start STALKER, start a new game, and go check it out!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement