Why this script doesnt work
#1
lolc = 0
checkinit onKill [

if (= $arg1 (player1 cn)) [
if ( = $lolc 0)[
hudecho "You have slain an enemy"
lolc = 1
][
if ( = $lolc 1 ) [
hudecho "Double kill"
lolc = 2
][
if ( = $lolc 2 ) [
hudecho "Triple kill"
lolc = 3
][
if ( = $lolc 3 ) [
hudecho "Quadra kill"
lolc = 4
][
if ( = $lolc 4 ) [
hudecho "Penta kill"
lolc = 0
sleep 10000
hudecho "Ace!"

]
]
]
]
]
]
]
Thanks given by:
#2
What's not working? My first guess is that nothing is calling it.
Thanks given by:
#3
(15 May 15, 08:35PM)Mousikos Wrote: What's not working? My first guess is that nothing is calling it.

Actually its not working as its supposed to.
The caller of this script is onKill
Thanks given by:
#4
What does player1 do?
Thanks given by:
#5
This script works my saved.cfg was a bit f*cked up
Thanks given by: