Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
universe:earth:officers3 [ 9 Feb 2008 21:45] – james | universe: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 (6,200); | + | $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 | ||
$prev = array (" | $prev = array (" | ||
- | $crim = array ("Small Ship", "Capital Ship", "Logs Ship", "Shipyard", " | + | $crim = array ("Colonial Fleet", "Battle Fleet", "Fleet Support", "Naval Staff", " |
$refs = array (" | $refs = array (" | ||
- | $Ranks = array (" | + | $Ranks = array (" |
// set up a table inside a form so that the chosen applicants can be taken forwards to the next stage. | // set up a table inside a form so that the chosen applicants can be taken forwards to the next stage. | ||
Line 20: | Line 20: | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
< | < | ||
< | < | ||
- | < | + | < |
- | < | + | < |
</ | </ | ||
$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 116: | Line 118: | ||
// $FirstName = $names[" | // $FirstName = $names[" | ||
$last4 = $appl + rand (1000, | $last4 = $appl + rand (1000, | ||
- | $promote = rand(0,25) + $rank; | + | $promote = $promote + 1 + $rank + rand (0,6); |
+ | |||
+ | if ($promote> | ||
+ | {$rank++; $promote=0; | ||
+ | $PQ = $Quadrant; | ||
+ | $move = rand (0,10); | ||
+ | if ($move> | ||
+ | { | ||
+ | | ||
+ | | ||
+ | } | ||
- | if ($promote> | ||
- | | ||
echo " | echo " | ||
Line 126: | Line 136: | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
< | < | ||
- | < | + | < |
</ | </ | ||