skip navigation

Welcome, Guest [log in · register]
Cwn Annwn

General logs: Katran's Fnargh Window Script for zMUD, Part 2

Log Contributor Uploaded on Views
Katran's Fnargh Window Script for zMUD, Part 2 Katran 2011-04-28 03:35 am 2337
Open a window called "Fnargh".

Place these settings into the settings for this window (Fnargh.mud).

Skip to comments

#CLASS {Fnargh}
#VAR highscoretype {All-time|Yearly|Monthly|Summary}
#VAR highscoretypenumber {4} {1}
#TRIGGER {You shake {the|an ethereal} game of Fnargh, and the five dice land &%d{fnarghcurrentnumber1}, &%d{fnarghcurrentnumber2}, &%d{fnarghcurrentnumber3}, &%d{fnarghcurrentnumber4}, &%d{fnarghcurrentnumber5}.$} {
  #STATE rerolltrigger 0
  #NOOP %btncol( fnarghreroll, 122)
  #RESET fnarghrerollnumbers
  #GVAR fnarghrerollnumbers {}
  }
#TRIGGER "rerolltrigger" {You reroll the %d*, ending up with &%d{fnarghcurrentnumber1}, &%d{fnarghcurrentnumber2}, &%d{fnarghcurrentnumber3}, &%d{fnarghcurrentnumber4}, &%d{fnarghcurrentnumber5}.$} {#NOOP}
#COND {You reroll the %d*, ending up with &%d{fnarghcurrentnumber1}, &%d{fnarghcurrentnumber2}, &%d{fnarghcurrentnumber3}, &%d{fnarghcurrentnumber4}, &%d{fnarghcurrentnumber5}.$} {
  #NOOP %btncol( fnarghreroll, 112)
  #BU resetrerolls
  }
#TRIGGER {You already rolled a &%d{fnarghcurrentnumber1}, &%d{fnarghcurrentnumber2}, &%d{fnarghcurrentnumber3}, &%d{fnarghcurrentnumber4}, &%d{fnarghcurrentnumber5}.$} {#NOOP}
#TRIGGER {^Class fnargh* reset to its startup values$} {#GAG}
#TRIGGER {You get %d points for the category.$} {
  #STATE rerolltrigger 0
  #NOOP %btncol( fnarghreroll, 112)
  #RESET fnarghcurrentnumbers
  #RESET fnarghrerollnumbers
  #GVAR fnarghrerollnumbers {}
  }
#TRIGGER {^~(%dhull *dir %w {N|NE|E|SE|S|SW|W|NW}wind*~)~ } {#SUB {}}
#TRIGGER {^~<%dhp %dsp %dst~>~ } {#SUB {}}
#TRIGGER {^~[*~]~(%dhull *dir %w {N|NE|E|SE|S|SW|W|NW}wind*~)~ } {#SUB {}}
#TRIGGER {^~[*~]~<%dhp %dsp %dst~>~ } {#SUB {}}
#TRIGGER {You've already rolled 3 times, you need to categorize the dice.$} {
  #RESET fnarghrerollnumbers
  #GVAR fnarghrerollnumbers {}
  #STATE holdtemp 1
  }
#TRIGGER {^Trigger ~{fnarghtemp~} removed.$} {#GAG}
#TRIGGER {You have to roll the dice, first.$} {#BU resetrerolls}
#TRIGGER {^Your personal best is (%d).$} {#SUB {Personal best~:~ %ansi(green,hi)%1}}
#TRIGGER {^You are ranked (%d{st|nd|rd|th}) among the all time high scores.$} {#SUB {%ansi(gray) All-time~: ~ %ansi(yellow,hi)%1}}
#TRIGGER {^You are ranked (%d{st|nd|rd|th}) among the yearly high scores.$} {#SUB {%ansi(gray) Yearly~:~ ~ ~ ~ %ansi(yellow,hi)%1}}
#TRIGGER {^You are ranked (%d{st|nd|rd|th}) among the monthly high scores.$} {#SUB {%ansi(gray) Monthly~:~ ~ ~ %ansi(yellow,hi)%1}}
#TRIGGER {^You are not ranked in the monthly high scores.$} {#SUB {%ansi(gray) Monthly~:~ ~ ~ %ansi(yellow,hi)not ranked}}
#BUTTON 16 {High Scores: %item( @highscoretype, @highscoretypenumber)} {
  #ADD highscoretypenumber 1
  #IF (@highscoretypenumber > 4) {#VAR highscoretypenumber 1}
  } {All-time} {} {} {} {} {Size} {117} {23} {} {} {} {123} {} {} {} "" {} {} {fnarghhi} {4}
#BUTTON 17 {@fnarghcurrentnumber1} {#ADDI fnarghrerollnumbers 1} {@fnarghcurrentnumber1} {#DELI fnarghrerollnumbers 1} {} {fnarghrerollnumber1} {} {Size} {20} {23} {} {} {} {} {104} {} {} "" {} {} {fnarghreroll1}
#BUTTON 18 {@fnarghcurrentnumber2} {#ADDI fnarghrerollnumbers 2} {@fnarghcurrentnumber2} {#DELI fnarghrerollnumbers 2} {} {fnarghrerollnumber2} {} {Size} {20} {23} {} {} {} {} {104} {} {} "" {} {} {fnarghreroll2}
#BUTTON 19 {@fnarghcurrentnumber3} {#ADDI fnarghrerollnumbers 3} {@fnarghcurrentnumber3} {#DELI fnarghrerollnumbers 3} {} {fnarghrerollnumber3} {} {Size} {20} {23} {} {} {} {} {104} {} {} "" {} {} {fnarghreroll3}
#BUTTON 20 {@fnarghcurrentnumber4} {#ADDI fnarghrerollnumbers 4} {@fnarghcurrentnumber4} {#DELI fnarghrerollnumbers 4} {} {fnarghrerollnumber4} {} {Size} {20} {23} {} {} {} {} {104} {} {} "" {} {} {fnarghreroll4}
#BUTTON 21 {@fnarghcurrentnumber5} {#ADDI fnarghrerollnumbers 5} {@fnarghcurrentnumber5} {#DELI fnarghrerollnumbers 5} {} {fnarghrerollnumber5} {} {Size} {20} {23} {} {} {} {} {104} {} {} "" {} {} {fnarghreroll5}
#BUTTON 22 {Reroll} {:MateriaMagica:use fnargh reroll @fnarghrerollnumbers.1@fnarghrerollnumbers.2@fnarghrerollnumbers.3@fnarghrerollnumbers.4@fnarghrerollnumbers.5} {} {} {} {} {} {Size} {47} {23} {} {} {} {112} {} {} {} "" {} {} {fnarghreroll}
#BUTTON 23 {Reset} {
  #RESET fnarghrerollnumbers
  #GVAR fnarghrerollnumbers {}
  } {} {} {} {} {} {Size} {46} {23} {} {} {} {123} {} {} {} "" {} {} {resetrerolls}
#BUTTON 24 {Roll} {:MateriaMagica:use fnargh roll} {Roll} {} {} {fnarghroll} {} {Size} {47} {23} {} {} {} {122} {112} {} {} "" {} {} {roll}
#BUTTON 32 {View Scores} {
  #IF (@highscoretypenumber = 1) {:MateriaMagica:use fnargh highscores alltime}
  #IF (@highscoretypenumber = 2) {:MateriaMagica:use fnargh highscores yearly}
  #IF (@highscoretypenumber = 3) {:MateriaMagica:use fnargh highscores monthly}
  #IF (@highscoretypenumber = 4) {:MateriaMagica:use fnargh highscores}
  } {} {} {} {} {} {Size} {68} {23} {} {} {} {123} {} {} {} "" {} {} {} {4}
#BUTTON 33 {Restart} {
  :MateriaMagica:use fnargh restart
  #VAR fnarghroll 0
  #NOOP %btncol( fnarghreroll, 112)
  #RESET fnarghcategories
  #RESET fnarghcurrentnumbers
  #RESET fnarghholdnumbers
  #RESET fnarghrerollnumbers
  #GVAR fnarghrerollnumbers {}
  } {Roll} {} {} {} {} {Size} {50} {23} {} {} {} {125} {112} {} {} "" {} {} {fnarghrestart} {4}
#BUTTON 34 {Scorecard (S)} {:MateriaMagica:use fnargh score self} {} {} {} {} {} {Size} {78} {23} {Pos} {25} {1} {122} {} {} {} "" {} {} {fnarghscore} {4}
#BUTTON 35 {Scorecard (R)} {:MateriaMagica:use fnargh score room} {} {} {} {} {} {Size} {78} {23} {} {} {} {122} {} {} {} "" {} {} {fnarghscoreroom} {4}
#BUTTON 36 {Clear Window} {#CLR} {} {} {} {} {} {Size} {79} {23} {} {} {} {123} {} {} {} "" {} {} {clearwindow} {4}
#CLASS 0
#CLASS {Fnargh|fnarghcurrentnumbers}
#VAR fnarghcurrentnumber1 {} {}
#VAR fnarghcurrentnumber2 {} {}
#VAR fnarghcurrentnumber3 {} {}
#VAR fnarghcurrentnumber4 {} {}
#VAR fnarghcurrentnumber5 {} {}
#VAR fnarghroll {0} {0}
#CLASS 0
#CLASS {Fnargh|fnarghcategories}
#VAR cat01 {0} {0}
#VAR cat02 {0} {0}
#VAR cat03 {0} {0}
#VAR cat04 {0} {0}
#VAR cat05 {0} {0}
#VAR cat06 {0} {0}
#VAR cat07 {0} {0}
#VAR cat08 {0} {0}
#VAR cat09 {0} {0}
#VAR cat10 {0} {0}
#VAR cat11 {0} {0}
#VAR cat12 {0} {0}
#VAR cat13 {0} {0}
#BUTTON 1 {Categories} {} {} {} {} {} {} {Size} {57} {23} {} {} {} {125} {} {Separ} {} "" {} {} {} {2}
#BUTTON 2 {1s} {:MateriaMagica:use fnargh ones} {} {} {} {cat01} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat01} {2}
#BUTTON 3 {2s} {:MateriaMagica:use fnargh twos} {} {} {} {cat02} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat02} {2}
#BUTTON 4 {3s} {:MateriaMagica:use fnargh threes} {3s} {} {} {cat03} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat03} {2}
#BUTTON 5 {4s} {:MateriaMagica:use fnargh fours} {} {} {} {cat04} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat04} {2}
#BUTTON 6 {5s} {:MateriaMagica:use fnargh fives} {} {} {} {cat05} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat05} {2}
#BUTTON 7 {6s} {:MateriaMagica:use fnargh sixes} {} {} {} {cat06} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat06} {2}
#BUTTON 8 {3oaK} {:MateriaMagica:use fnargh 3ofakind} {} {} {} {cat07} {} {Size} {30} {23} {Pos} {0} {1} {125} {112} {} {} "" {} {} {cat07} {3}
#BUTTON 9 {4oaK} {:MateriaMagica:use fnargh 4ofakind} {} {} {} {cat08} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat08} {3}
#BUTTON 10 {FH} {:MateriaMagica:use fnargh fullhouse} {} {} {} {cat09} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat09} {3}
#BUTTON 11 {SS} {:MateriaMagica:use fnargh smallstraight} {} {} {} {cat10} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat10} {3}
#BUTTON 12 {LS} {:MateriaMagica:use fnargh largestraight} {} {} {} {cat11} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat11} {3}
#BUTTON 13 {Fn} {:MateriaMagica:use fnargh fnargh} {} {} {} {cat12} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat12} {3}
#BUTTON 14 {Ch} {:MateriaMagica:use fnargh chance} {} {} {} {cat13} {} {Size} {30} {23} {} {} {} {125} {112} {} {} "" {} {} {cat13} {3}
#BUTTON 15 {BFn} {:MateriaMagica:use fnargh bonusfnargh} {} {} {} {} {} {Size} {30} {23} {} {} {} {125} {} {} {} "" {} {} {cat14} {3}
#CLASS 0
#CLASS {Fnargh|fnarghrerollnumbers}
#VAR fnarghrerollnumber1 {0} {0}
#VAR fnarghrerollnumber2 {0} {0}
#VAR fnarghrerollnumber3 {0} {0}
#VAR fnarghrerollnumber4 {0} {0}
#VAR fnarghrerollnumber5 {0} {0}
#CLASS 0
#CLASS {Fnargh|fnarghholdnumbers}
#BUTTON 25 { Hold} {} {} {} {} {} {} {Size} {56} {23} {Pos} {24} {1} {123} {} {Separ} {} "" {Explore} {} {}
#BUTTON 26 {1} {
  #FORALL {1|2|3|4|5} {#IF (@fnarghcurrentnumber%i != "1") {#VAR fnarghrerollnumber%i 1} {#VAR fnarghrerollnumber%i 0}}
  #ALARM +0.1 {#BU fnarghreroll}
  } {} {} {} {} {} {Size} {30} {23} {} {} {} {123} {} {} {} "" {} {} {hold1}
#BUTTON 27 {2} {
  #FORALL {1|2|3|4|5} {#IF (@fnarghcurrentnumber%i != "2") {#VAR fnarghrerollnumber%i 1} {#VAR fnarghrerollnumber%i 0}}
  #ALARM +0.1 {#BU fnarghreroll}
  } {} {} {} {} {} {Size} {30} {23} {} {} {} {123} {} {} {} "" {} {} {hold2}
#BUTTON 28 {3} {
  #FORALL {1|2|3|4|5} {#IF (@fnarghcurrentnumber%i != "3") {#VAR fnarghrerollnumber%i 1} {#VAR fnarghrerollnumber%i 0}}
  #ALARM +0.1 {#BU fnarghreroll}
  } {} {} {} {} {} {Size} {30} {23} {} {} {} {123} {} {} {} "" {} {} {hold3}
#BUTTON 29 {4} {
  #FORALL {1|2|3|4|5} {#IF (@fnarghcurrentnumber%i != "4") {#VAR fnarghrerollnumber%i 1} {#VAR fnarghrerollnumber%i 0}}
  #ALARM +0.1 {#BU fnarghreroll}
  } {} {} {} {} {} {Size} {30} {23} {} {} {} {123} {} {} {} "" {} {} {hold4}
#BUTTON 30 {5} {
  #FORALL {1|2|3|4|5} {#IF (@fnarghcurrentnumber%i != "5") {#VAR fnarghrerollnumber%i 1} {#VAR fnarghrerollnumber%i 0}}
  #ALARM +0.1 {#BU fnarghreroll}
  } {} {} {} {} {} {Size} {30} {23} {} {} {} {123} {} {} {} "" {} {} {hold5}
#BUTTON 31 {6} {
  #FORALL {1|2|3|4|5} {#IF (@fnarghcurrentnumber%i != "6") {#VAR fnarghrerollnumber%i 1} {#VAR fnarghrerollnumber%i 0}}
  #ALARM +0.1 {#BU fnarghreroll}
  } {} {} {} {} {} {Size} {30} {23} {} {} {} {123} {} {} {} "" {} {} {hold6}
#CLASS 0