Advertisement
Iire

NReality external script ideas 1

Aug 12th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Some ideas for NReality conditional statements and other scripting. Invented language.
  2.  
  3. ---
  4.  
  5. 1: Make a map playable for only a certain amount of time:
  6.  
  7. on load_Map(216400) {
  8. if (&DATE.afmt < 09/01/2011 || &DATE.afmt > 09/30/2011) {
  9. prompt("This map is only playable between September and October 2011",QUIT)
  10. }
  11. }
  12.  
  13. 2: Check if another map has already been beaten:
  14.  
  15. on load_Map(216400) {
  16. if (!get.*score.infunity(&NICK,212490)) {
  17. prompt("It is highly recommended that you complete map 212490 before attempting this one",CONT,QUIT)
  18. }
  19. }
  20.  
  21. 3: Create a list of linked maps for userlevel columns:
  22.  
  23. new_list("MetaColumn") {
  24. only (find.author="Meta_Ing" && find.desc="Meta_Column") {
  25. +item[1] = find.title("#00-0 The beginning")
  26. +item[2] = find.title("#00-1 The Middle")
  27. +item[3] = find.title("#00-2 The End")
  28. +item[4] = find.title("#00-3 Or is it..?")
  29. }
  30. }
  31.  
  32. on userlevel.complete {
  33. if (list("MetaColumn",&MAP) < list.count("MetaColumn"))
  34. if (prompt("Congratulations! Next up:" list("MetaColumn",&MAP)+1,CONT,QUIT)) {
  35. userlevel.load(list("MetaColumn",&MAP)+1)
  36. }
  37. else VICTORY
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement