;GAME EXPERIMENTAL
on *:text:!join:#: {
set % $+ $nick $+ _Ammo 6
set % $+ $nick $+ _Health 120
set % $+ $nick $+ _Exp 0
set % $+ $nick $+ _Kills 0
set % $+ $nick $+ _Deaths 0
msg #test $nick has joined the fray!
}
on *:text:!shoot*:#: {
if ( % [ $+ [ $nick ] $+ ] _Health <= 1) {
msg #test $nick, you're DEAD. }
elseif ( % [ $+ [ $nick ] $+ ] _Ammo >= 0) {
dec % $+ $nick $+ _Ammo 1
if ( % [ $+ [ $$2 ] $+ ] _Health <= 1) {
msg #test $nick shot $$2's dead corpse. }
else {
msg #test $nick shot $$2 in the face!
dec % $+ $$2 $+ _Health $rand(10,30)
if ( % [ $+ [ $$2 ] $+ ] _Health <= 1) {
msg #test $nick KILLED $$2!
dec % $+ $$2 $+ _Exp 1
inc % $+ $nick $+ _Exp 3
}
}
elseif ( % [ $+ [ $nick ] $+ ] _Ammo = 0) {
msg #test $nick, reload, moron! }
else {
msg #test join the game first! }
}
}
on *:text:!respawn:#: {
if ( % [ $+ [ $nick ] $+ ] _Health >= 1) {
msg #test wait until you're dead!
}
else {
set % $+ $nick $+ _Health 120
msg #test $nick is back in the game!
}
}
on *:text:!reload:#: {
% $+ $nick $+ _ammo = 6
msg #test $nick's ready to go!
}
on *:text:!stats:#: {
msg #test stats for $nick : Kills: $eval(% $+ $nick $+ _Kills,2), Deaths: $eval(% $+ $nick $+ _Deaths,2), and experience: $eval(% $+ $nick $+ _Exp,2)
}
on *:text:!commands:#: {
msg #test command list: "join" sets you up.
msg #test "!shoot *target*" uses one of your bullets to shoot the target, duh.
msg #test "!reload" reloads your weapon; "!respawn" revives you.
msg #test "!stats" shows your statistics, and "!suicide" removes you from the game.
}
on *:text:!suicide:#: {
set % $+ $nick $+ _Ammo 0
set % $+ $nick $+ _Health 0
set % $+ $nick $+ _Exp 0
set % $+ $nick $+ _Kills 0
set % $+ $nick $+ _Deaths 0
msg #test $nick is officially DEAD. }