Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
universe:earth:officers3 [19 Mar 2008 18:54] – spokesman | 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 (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: | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
< | < | ||
< | < | ||
- | < | + | < |
- | < | + | < |
</ | </ | ||
$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 118: | Line 120: | ||
$promote = $promote + 1 + $rank + rand (0,6); | $promote = $promote + 1 + $rank + rand (0,6); | ||
- | if ($promote> | + | if ($promote> |
| | ||
+ | $PQ = $Quadrant; | ||
+ | $move = rand (0,10); | ||
+ | if ($move> | ||
+ | { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
echo " | echo " | ||
Line 126: | Line 136: | ||
< | < | ||
< | < | ||
- | < | + | < |
< | < | ||
< | < | ||
- | < | + | < |
</ | </ | ||