Origami (cmud) (script)

From Elanthipedia
Jump to navigation Jump to search
Origami (cmud) (script)
Category lore
Front-end Cmud
Author tirsten


Uses an dusty handbook

Script

<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <class name="origami" copy="yes">
    <alias name="startorigami" autoappend="true" copy="yes">
      <value>#var train origami
        #var whatifold ox
        tap my env</value>
    </alias>
    <var name="whatifold" copy="yes">ox</var>
    <var name="teachtypes" copy="yes">ML|EV|DT|FA|CL|HI|STA|FO|SK|PE|LO|STE|ES|SW</var>
    <trigger priority="5000" copy="yes">
      <pattern>You tap a* envelope inside</pattern>
      <value>#if (@train == "origami") {
  #gag
  #send "get my env"
  }</value>
      <trigger>
        <pattern>^You get an origami-paper envelope</pattern>
        <value>#if (@train == "origami") {
  #gag
  #send "wear my env"
  }</value>
      </trigger>
      <trigger>
        <pattern>^You attach an origami-paper envelope to your belt.</pattern>
        <value>#if (@train == "origami") {
  #gag
  #send "pull my env"
  }</value>
      </trigger>
    </trigger>
    <trigger priority="5010" copy="yes">
      <pattern>^You get a sheet of</pattern>
      <value>#if (@train == "origami") {
  #gag
  get my dusty handbook
  }</value>
      <trigger>
        <pattern>^You get a dusty handbook with yellowed pages from inside your sable knapsack.</pattern>
        <value>#if (@train == "origami") {
  #gag
  open my dusty handbook
  }</value>
      </trigger>
      <trigger>
        <pattern>^You carefully open your dusty handbook.</pattern>
        <value>#if (@train == "origami") {
  #gag
  #send %concat( "study my ", @whatifold, " instr in my handbook")
  }</value>
      </trigger>
      <trigger>
        <pattern>You study your dusty instructions and begin to fold.</pattern>
        <value>#if (@train == "origami") {#gag}</value>
      </trigger>
      <trigger>
        <pattern>Roundtime:%s(%d)%ssec.</pattern>
        <value>#if (@train == "origami") {
  #gag
  #alarm +%eval( %eval( %1)+1) {#if (@train == "origami") {close my dusty handbook}}
  }</value>
      </trigger>
      <trigger>
        <pattern>^You carefully close your dusty handbook.</pattern>
        <value>#if (@train == "origami") {
  #gag
  put my handbook in my knap
  }</value>
      </trigger>
      <trigger>
        <pattern>^You put your handbook in your sable knapsack.</pattern>
        <value>#if (@train == "origami") {
  #gag
  #send "fold my paper"
  }</value>
      </trigger>
    </trigger>
    <trigger priority="5040" copy="yes">
      <pattern>^You {carefully make another fold in your paper|make a fold in your paper, but it doesn't come out quite the way you planned}.</pattern>
      <value>#if (@train == "origami") {#gag}</value>
      <trigger>
        <pattern>Roundtime:%s(%d)%ssec.</pattern>
        <value>#if (@train == "origami") {
  #gag
  #alarm +%int( %1) {
    #if (@stoptrainingnow == "yes") {
      poke my paper
      echo donetrain
      } {
      #if (@boattrainingwait == "no") {
        fold my paper
        }
      }
    }
  }</value>
      </trigger>
    </trigger>
    <trigger priority="5060" copy="yes">
      <pattern>You make the final fold and gaze proudly at your new %x origami</pattern>
      <value>#if (@train == "origami") {#gag}</value>
      <trigger>
        <pattern>Roundtime:%s(%d)%ssec.</pattern>
        <value>#if (@train == "origami") {
  #gag
  #alarm +%int( %1) {
    #if (@train == "origami") {
      #send %concat( "poke my ", @whatifold)
      #send "poke my paper"
      skill ml
      }
    }
  }</value>
      </trigger>
      <trigger>
        <pattern>Mechanical Lore:%s%d%s%d.%d~%%s({@mindstates})%s~((%d)~/34~)</pattern>
        <value>#gag
#if (@stoptrainingnow == "yes") {
  echo donetrain
  } {#if (%2 < 25) {startorigami} {
    echo donetrain
    }}</value>
      </trigger>
    </trigger>
    <trigger priority="5090" copy="yes">
      <pattern>You tap a* envelope that you are</pattern>
      <value>#if (@train == "origami") {
  #gag
  #send "pull my env"
  }</value>
    </trigger>
    <trigger priority="5100" copy="yes">
      <pattern>Showing Mechanical Lore ~(full detail~).</pattern>
      <value>#gag</value>
    </trigger>
    <trigger priority="7430" copy="yes">
      <pattern>^The envelope is empty.$</pattern>
      <value>#if (@train == "origami") {
  #gag
  #send "poke my env"
  }</value>
      <trigger>
        <pattern>^You tear up the empty envelope and toss it away.</pattern>
        <value>#if (@train == "origami") {
  #gag
  startorigami
  }</value>
      </trigger>
    </trigger>
    <trigger priority="8090" copy="yes">
      <pattern>^You poke a hole in your</pattern>
      <value>#if (@train == "origami") {#gag}</value>
    </trigger>
    <trigger priority="8100" copy="yes">
      <pattern>^You toss {a|a creased} piece of paper away.</pattern>
      <value>#if (@train == "origami") {#gag}</value>
    </trigger>
    <trigger priority="39660" copy="yes">
      <pattern>^dotheorigami$</pattern>
      <value>#gag
#var train origami
#var whatifold ox
tap my env</value>
    </trigger>
    <trigger priority="8090" copy="yes">
      <pattern>^You poke a piece of paper</pattern>
      <value>#if (@train == "origami") {#gag}</value>
    </trigger>
  </class>
</cmud>