Results 1 to 2 of 2

Thread: Part of...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    the level of complexity with an element of randomness is analyzed and the type of zombie is issued?!
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

Posting Permissions

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