User Tools

Site Tools


japanesemanual:ja_gm_war

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
japanesemanual:ja_gm_war [2023/05/02 01:59] nichirinmotorjapanesemanual:ja_gm_war [2023/05/05 00:18] (current) nichirinmotor
Line 1: Line 1:
 +======= 戦争 =======
  
 +
 +マニュアルのゲームメカニクスセクションは、ゲームの計算で使用される内部式の詳細を説明します。マニュアルのこのセクションは疑似コードを使用しており、ゲーム内のコードと100%同じとは限りません。
 +
 +マニュアルのゲームメカニクスパートは、主に "なぜX、Y、Zをするとこの評価になるのか?"というよくある質問に対するリファレンスとして設計されています。通常、この答えには多くの異なる変数が含まれており、マニュアルのこのセクションではそれを実証しています。
 +
 +**マニュアルのゲームメカニクスセクションは、[[https://idioms.thefreedictionary.com/seeing+how+the+sausage+gets+made|ソーセージがどのように作られるか]]を示しています。ですから、ゲームを楽しむなら、このマニュアルの部分は避けた方がいいかもしれません。**
 +
 +
 +===== 変数 =====
 +
 +
 +^ 名称 ^ 説明 ^ ^ 名称 ^ 説明 ^
 +| **City Status** | その国の戦況です。1=通常、0=限定、-1戦争、-2総力戦です。  | | **Compensation** | 政府があなたの工場に対して提示する金額です。もしあなたが彼らと闘うことを選択した場合、あなたは何の支払いもなくすべてを失う可能性があります。 | 
 +| **Factory_Monthly_Costs** | あなたの工場を遊休状態で運営するための月々のコストです。  | | **year** | 現在のゲーム年です | 
 +| **WarEnds_Months** | 戦争はこれだけの月日で終結します。  | | **totalGDP** | 互いに戦争しているすべての国のGDPです。各都市の一人当たりの所得に、都市の人口を乗じることで定義されます。   
 +| **National Per Capita** | 国内の各都市の所得  | | **National Population** | 国内の各都市の人口 | 
 +| **Number Of Countries** | 戦争をしている国の数  | | **** |  | 
 +
 +===== 工場破壊 =====
 +
 +
 +==== 都市の爆撃 ====
 +
 +
 +<code>
 +20% chance each turn:
 +{
 +    Select city with -2 "Total War" status.
 +
 +    Destroy all factories in city.
 +    
 +    Set city to -1 "War" status.
 +}
 +</code>
 +==== 軍需工場爆撃 ====
 +
 +<code>
 +10% chance each turn while producing munitions:
 +{
 +    Select Random City At War With -2 "Total War" status.
 +
 +    If Player has Factory in City
 +    {
 +        Destroy Player Factory In City
 +    }
 +}
 +
 +</code>
 +==== 軍需品事故 ====
 +
 +<code>
 +5% chance each turn while someone is producing munitions
 +{
 +    Select Random Factory Producing Munitions
 +
 +     Destroy Factory
 +}
 +</code>
 +
 +===== 工場の没収 =====
 +
 +=== 軍需工場 ===
 +
 +<code> 
 +5% chance each turn while producing munitions:
 +{
 +    Select Random City At War
 +
 +    if Player HQ Country DOES NOT EQUAL City Country
 +    {
 +        Select Player Factory In City.
 +        
 +        Compensation = Factory_Built_Cost * 1.25
 +        
 +        Make Offer to Player
 +    }
 +}
 +</code>
 +===== 軍需品支払額 =====
 +
 +<code>
 +for each factory producing munitions
 +{
 +    if(factory in HQ Country)
 +        Munitions_Revenues = Munitions_Revenues + (Factory_Monthly_Costs * 5+((year-1900)/10))
 +    else
 +        Munitions_Revenues = Munitions_Revenues + (Factory_Monthly_Costs * 3+((year-1900)/10))
 +}
 +</code>
 +===== 軍事契約 =====
 +
 +ご覧ください。[[gamemanual:gm_contracts|契約のゲームメカニクス]]
 +
 +
 +===== ランダムな戦争生成 =====
 +
 +<code>
 +0.4% chance each turn
 +{
 +    CityStatus = Random Number Between (0 AND 2) * -1
 +    
 +    WarEnds_Months = Random Number Between (0 AND 60) + 3
 +    
 +    if(CityStatus = 0)
 +        Select Random country not at war.
 +    else
 +        Select Random Number Between (2 AND 6) Countries
 +        
 +    
 +    
 +    For Each Country At War
 +    {
 +        totalGDP = totalGDP  + (National Per Capita * National Population)
 +    }
 +    
 +    For Each Country At War
 +    {
 +        if(Number Of Countries > 2 AND (National Per Capita * National Population) < (totalGDP/Number Of Countries) * 1.5 OR
 +            Number Of Countries = 2 AND (National Per Capita * National Population) < totalGDP 0.75) OR
 +            Number Of Countries = 1)
 +        {
 +            Set City Status of all cities in country
 +        }
 +    }
 +    
 +    
 +}
 +</code>