Function BuildFactory
| 1072 | function BuildFactory takes integer unitid returns nothing |
| 1073 | if GetGold() > 1000 and GetWood() > 500 then |
| 1074 | call SetBuildUnit( 2, unitid ) |
| 1075 | else
|
| 1076 | call SetBuildUnit( 1, unitid ) |
| 1077 | endif
|
| 1078 | endfunction
|