Zombie Text

By Rein on Oct 20, 2010

Use:
Makes you speak like a zombie. Your speech will come out zombielike. Other users with the script and your key will see what you say normally.

/zkey (word or sentence)
/zombie (nick or channel) Message
/dezombie Message

Example
/zkey grue!!!

Result
Key is now: grue!!!

Example:
/zombie I like brains grue!!!

Result:
<@Rein> brains!!! urgbrains!!!yummslop ughfueuhhbrains!!!argfla keyslopfue??? ackooferggoo grue!!!

Example:
/dezombie brains!!! urgbrains!!!yummslop ughfueuhhbrains!!!argfla keyslopfue??? ackooferggoo

Result:
brains!!! urgbrains!!!yummslop ughfueuhhbrains!!!argfla keyslopfue??? ackooferggoo = i like brains very much

easy to change / configure
kinda lame, but fun

Happy Halloween
Rein

Changes & Thanks
General Idea, Nagging to actually do - Tok|n
Fixed Bracket Error - Teen
Added "alias Zombie {}", and is now a remote script - Napa182
Removed %text Variable / %zkey gvar, implemented $active instead of $1, some minor formatting and organization. - Gooshie
Fixed Ontext (Called $2-, dropped alot of messages - oops)

Todo

Add Case sensitivity on strings (just 26 letters... anyone know any good zombie words? :P)

Find way to ignore On Text if $zkey is not present, instead of forcing an echo

In Latest changes, I've noticed that the ONTEXT prevents channels from notifying when messages are received

on ^*:TEXT:*:*: {
 if (%zkey isin $1-) {
  echo -tbf $iif($chan,$v1,$nick) $+(<,$nick,>) $replacex($1-,!?!, z, ???, y, !!!, x, die, w, key, v, oof, u, gah, t, fla, s, fue, r, fel, q, fom, p, arr, $&
 o, arg, n, ack, m, urg, l, yumm, k, ommn, j, brains!!!, i, goo, h, gop, g, omnomm, f, slop, e, err, d, erg, c, ugh, b, uhh, a)
 }
 else { 
  echo -tbf $iif($chan,$v1,$nick) $+(<,$nick,>) $1-
 } 
 haltdef
}

alias zombie {
 msg $active $replacex($1- ,%zkey,%zkey,a, uhh,b, ugh,c, erg,d, err,e, slop,f, omnomm,g, gop,h, goo,i, brains!!!,$&
 j, ommn,k, yumm,l, urg,m, ack,n, arg,o, arr,p, fom,q, fel,r, fue,s, fla,t, gah,u, oof,v, key,w, die,x, !!!,y, ???,z, !?!)
}

alias dezombie {
 echo $1- = $replacex($1-,!?!, z, ???, y, !!!, x, die, w, key, v, oof, u, gah, t, fla, s, fue, r, fel, q, fom, p, arr, $&
 o, arg, n, ack, m, urg, l, yumm, k, ommn, j, brains!!!, i, goo, h, gop, g, omnomm, f, slop, e, err, d, erg, c, ugh, b, uhh, a)
}

alias zkey {
  set %zkey $1-
  echo Key is now: %zkey
}

Comments

Sign in to comment.
Rein   -  Oct 23, 2010

Gooshie

Thanks for your input, through that I was able to remove all excess variables.
Also, it is nice not having to type #chan in every string.

 Respond  
gooshie   -  Oct 22, 2010

Rein
The only reason I split the lines is to make it fit better in the code display area.
I eliminated the else statement as I see it as redundant.
You could use an on INPUT event with a switch or %variable for the channel name
that could be settable.

You do not need and should NOT want global variables:
(global variables are harddrive reads/writes)

alias zombie {
 set %text $2- 
 set %text $replacex($2- ,%zkey,%zkey,a, uhh,b, ugh,c, erg,d, err,e, slop,f, omnomm,g, gop,h, goo,i, brains!!!,j, ommn,k, yumm,l, urg,m, ack,n, arg,o, arr,p, fom,q, fel,r, fue,s, fla,t, gah,u, oof,v, key,w, die,x, !!!,y, ???,z, !?!)
 msg $1 %text
}

You could eliminate the need to use #RoomName/$nick so all you have to
type is: /zombie message

alias zombie {
 msg $active $replacex($1- ,%zkey,%zkey,a, uhh,b, ugh,c, erg,d, err,e, slop,f, omnomm,g, gop,h, goo,i, brains!!!,j, ommn,k, yumm,l, urg,m, ack,n, arg,o, arr,p, fom,q, fel,r, fue,s, fla,t, gah,u, oof,v, key,w, die,x, !!!,y, ???,z, !?!)
}
 Respond  
Rein   -  Oct 22, 2010

saw the #funky text snippet, and how it uses on INPUT, but decided i didnt like it. as it checks every letter, and would then ignore they key, also it would blanket every channel. only difference i can see in my on TEXT and yours is that you split the lines. Should note, that this is/was fully functional since it was posted (it works)

 Respond  
gooshie   -  Oct 21, 2010

I think you will need an on INPUT event to 'speak' zombie.
To understand zombie I think you may want something like this:

on ^*:TEXT:*:*: {
  var %text $strip($1-) 
  if %zkey isin %text {
    %text = $replacex(%text,!?!, z, ???, y, !!!, x, die, w, key, v, oof, $&
      u, gah, t, fla, s, fue, r, fel, q, fom, p, arr, o, arg, n, ack, m, $&
      urg, l, yumm, k, ommn, j, brains!!!, i, goo, h, gop, g, omnomm, f, $&
      slop, e, err, d, erg, c, ugh, b, uhh, a)
    echo -tbf $iif(#,$v1,$nick) $+(<,$nick,>) %text
    haltdef
  }
}
______________________________________________________________________________
 Respond  
Rein   -  Oct 21, 2010

habit from scripting other langs with globals, yeah sorry, was (high) and for some reason thought it would be better if after I saw comments with notes/solutions, to remove them and add to changelog. It wasnt an intentional act against you guys :D

No one thinks they know any interesting 'zombie' words? (old movie refrences perhaps?)

 Respond  
PuNkTuReD   -  Oct 21, 2010

why do you set
set %zkey grue!!!
outside of any event?

and deleted our comments>?

 Respond  
Rein   -  Oct 21, 2010

Haha
It Converts a string of words into 'zombie', except for a trigger you can put anywhere in the string, then sends the string. If it detects a string that has the trigger in it, it will automatically convert it back to 'human'

 Respond  
gooshie   -  Oct 21, 2010

Rein
Ok.. I believe it.. I want a kilo of what you been smoking 'cause i can't figure out wtf this snippet is supposed to do... but then again.. that could be 'cause I'm high...

 Respond  
Rein   -  Oct 21, 2010

thanks! Tried to completely remove $text, but kinda tired atm, not to mention high...
not going to remove $decode, as its referenced 5 times, and is imho easier to use 1 variable instead of 5 Single changes (allows for quick key changing)
might add an input to set the 'key'

 Respond  
napa182   -  Oct 21, 2010

no need for vars in this, and you can place the whole thing into remotes instead of 2 different places. By adding alias in front of zombie ex:

alias zombie {

anyways funny snippet..

 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.