Results 1 to 2 of 2

Thread: Part of...

  1. #1
    Private
    Join Date
    Mar 2019
    Posts
    14
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Part of...

    Can you explain to me this part of script, please?

    if (level.skill >= 64 && !randomint(150 - level.skill)) zom.type = 10;
    else if (level.skill >= 61 && !randomint(110 - level.skill)) zom.type = 11;
    else if (level.skill >= 63 && !randomint(110 - level.skill)) zom.type = 9;
    else if (level.skill >= 50 && !randomint(110 - level.skill)) zom.type = 8;
    else if (level.skill >= 40 && !randomint(110 - level.skill)) zom.type = 7;
    else if (level.skill >= 50 && !randomint(110 - level.skill)) zom.type = 6;
    else if (level.skill >= 20 && !randomint(110 - level.skill)) zom.type = randomint(3) + 3;
    else if (level.skill >= 20 && !randomint(110 - level.skill)) zom.type = randomint(3) + 3;
    else if (level.skill >= 20 && !randomint(110 - level.skill)) zom.type = randomint(3) + 3;
    else if (level.skill >= 20 && !randomint(110 - level.skill)) zom.type = randomint(3) + 3;
    else zom.type = randomint(3);

    It doesn't make sense when i use level 5 only, right? What about zt (0-5)? What do these last two lines mean?

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    403
    Thanks
    75
    Thanked 92 Times in 78 Posts
    the level of complexity with an element of randomness is analyzed and the type of zombie is issued?!
    PHP Code:
    <?php
    //die("killtube");
    echo "killtube live, please";
    ?>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •