Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Some ideas for NReality conditional statements and other scripting. Invented language.
- ---
- 1: Make a map playable for only a certain amount of time:
- on load_Map(216400) {
- if (&DATE.afmt < 09/01/2011 || &DATE.afmt > 09/30/2011) {
- prompt("This map is only playable between September and October 2011",QUIT)
- }
- }
- 2: Check if another map has already been beaten:
- on load_Map(216400) {
- if (!get.*score.infunity(&NICK,212490)) {
- prompt("It is highly recommended that you complete map 212490 before attempting this one",CONT,QUIT)
- }
- }
- 3: Create a list of linked maps for userlevel columns:
- new_list("MetaColumn") {
- only (find.author="Meta_Ing" && find.desc="Meta_Column") {
- +item[1] = find.title("#00-0 The beginning")
- +item[2] = find.title("#00-1 The Middle")
- +item[3] = find.title("#00-2 The End")
- +item[4] = find.title("#00-3 Or is it..?")
- }
- }
- on userlevel.complete {
- if (list("MetaColumn",&MAP) < list.count("MetaColumn"))
- if (prompt("Congratulations! Next up:" list("MetaColumn",&MAP)+1,CONT,QUIT)) {
- userlevel.load(list("MetaColumn",&MAP)+1)
- }
- else VICTORY
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement