Moonface script version 1.0

By Defero on Sep 20, 2013

This is a moonface script.
Maybe the first working one, I don't know.
Report bugs etc, on my Skype: defero20 or in the comments! Maybe just pm me!
Have fun with it!

on *:LOAD:{
  set %moonface 1
  set %moonface1 .
  set %moonface2 .
  set %moonface3 ,
  set %moonface4 -
  echo -a You have just loaded the moonface script by Defero!
}

on *:TEXT:*:#:{
  if ($1 isin %moonface1) {
    if (%moonface == 1) {
      if $istok(%moonfacep,$nick,32) {
        notice $nick You have already helped out! You cant help twice!
      }
      else {
        .msg $chan Should this be the ending of a sentence or a beginning of a moonface?
        unset %moonface
        set %moonface 2
        set %moonfacep $nick
      }
    }
  }
  if ($1 isin %moonface2) {
    if (%moonface == 2) {
      if $istok(%moonfacep,$nick,32) {
        notice $nick You have already helped out! You cant help twice!
      }
      else {
        .msg $chan I still dont know what this should be...
        unset %moonface
        set %moonface 3
        set %moonfacep %moonfacep $nick
      }
    }
  }
  if ($1 isin %moonface3) {
    if (%moonface == 3) {
      if $istok(%moonfacep,$nick,32) {
        notice $nick You have already helped out! You cant help twice!
      }
      else {
        .msg $chan Oh ok! This should be a moonface! But you still need a stroke!
        unset %moonface
        set %moonface 4
        set %moonfacep %moonfacep $nick
      }
    }
  }
  if ($1 isin %moonface4) {
    if (%moonface == 4) {
      if $istok(%moonfacep,$nick,32) {
        notice $nick You have already helped out! You cant help twice!
      }
      else {
        set %moonfacep %moonfacep $nick
        .msg $chan Yes! You did it! You just finished the moonface! Thanks to: %moonfacep
        unset %moonface
        unset %moonfacep
        set %moonface 4
      }
    }
  }
}

on *:UNLOAD:{
  unset %moonface*
  echo -a You have just unloaded the moonface script!
  echo -a All variables of the script have been removed!
}

Comments

Sign in to comment.
Sorasyn   -  Sep 21, 2013

Why unset then reset the global variable %moonface when all you're doing is incrementing the variable itself?

inc %moonface
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.