Topic: The relevance of fWait!  (Read 5440 times)

0 Members and 2 Guests are viewing this topic.

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
The relevance of fWait!
« on: March 23, 2007, 03:41:39 pm »

OK, this one is REALLY only of interest to scripters, but the way the fWait setting gets used to determine script likelihood is as follows

there is a 1/fWait chance the script will be considered for inclusion in the current mission list,
i.e. an (fWait-1)/fWait chance it will be discarded out of hand

So scripts with fWait of 1 are always examined,
fWait 2 gives a 50% chance of being considered
fWait3 gives a 33% chance of being considered,
etc (no apparent upper bound)

dave

Offline d4v1ks

  • D.Net VIP
  • Lt.
  • *
  • Posts: 788
  • Gender: Male
Re: The relevance of fWait!
« Reply #1 on: July 02, 2018, 05:08:01 pm »

OK, this one is REALLY only of interest to scripters, but the way the fWait setting gets used to determine script likelihood is as follows

there is a 1/fWait chance the script will be considered for inclusion in the current mission list,
i.e. an (fWait-1)/fWait chance it will be discarded out of hand

So scripts with fWait of 1 are always examined,
fWait 2 gives a 50% chance of being considered
fWait3 gives a 33% chance of being considered,
etc (no apparent upper bound)

dave

Better later than never.
Thanks. ^^

"But he isn't wearing anything at all!" (The Emperor's New Clothes)

Offline Captain Adam

  • Lt.
  • *
  • Posts: 749
  • Gender: Male
Re: The relevance of fWait!
« Reply #2 on: July 02, 2018, 06:50:23 pm »
 :o