Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
universe:earth:officers3 [19 Mar 2008 18:55] spokesmanuniverse:earth:officers3 [20 Apr 2011 13:04] (current) – and then added the semi-colon! james
Line 4: Line 4:
  
 // 11 work out how many applicants.  // 11 work out how many applicants. 
-$apps = rand (20,40);+$apps = rand (20,60);
  
 // set up some arrays as lookups for the values from the d10 rolls // set up some arrays as lookups for the values from the d10 rolls
Line 20: Line 20:
        <tr> \n        <tr> \n
          <td><b>Last 4 \n          <td><b>Last 4 \n
-         <td><b>Rank \n+         <td><b>Current Rank \n
          <td><b>Firstname \n          <td><b>Firstname \n
          <td><b>Surname \n          <td><b>Surname \n
          <td><b>Branch \n          <td><b>Branch \n
-         <td><b>Location \n +         <td><b>Current Location \n 
-         <td><b>Posting \n+         <td><b>New Posting \n
        </tr>";         </tr>"; 
 $appl=1; $appl=1;
Line 96: Line 96:
   {   {
     extract($row);     extract($row);
 +    $LastName = $Surname; 
 +    next($row);
  
 // then randomly take a firstname of the correct gender from the same list // then randomly take a firstname of the correct gender from the same list
Line 120: Line 122:
 if ($promote>35) if ($promote>35)
      {$rank++; $promote=0;}      {$rank++; $promote=0;}
 +$PQ = $Quadrant;
 +$move = rand (0,10);
 +if ($move>7) 
 +    {
 +     if($PQ==0) {$PQ=rand(0,8);}
 +     if($PQ>0) {$PQ = rand(0,1) * rand (0,8);}
 +     }
 +
  
 echo " echo "
Line 126: Line 136:
          <td>$Ranks[$rank] \n          <td>$Ranks[$rank] \n
          <td>$Forename \n          <td>$Forename \n
-         <td>$Surname \n+         <td>$LastName \n
          <td>$prev[$Experience] \n          <td>$prev[$Experience] \n
          <td>$Homeworld \n          <td>$Homeworld \n
-         <td>$crim[$CrimCheck] \n+         <td>$crim[$CrimCheck], Q$PQ \n
        </tr>";        </tr>";
  
Print/export
QR Code
QR Code Randomly Generated Officers (generated for current page)