Changes

Line 1: Line 1:  
==Parameter Naming==
 
==Parameter Naming==
Module invocation is done via passing arguments. These argument names and argument values are all done in the following format
+
Module invocation is done via passing parameters and arguments. These parameter names and argument values are all done in the following format
*<Node Letter><Pattern Number>_<argument> = <argument value>
+
*<Node Letter><Pattern Number>_<parameter> = <argument value>
 
except for assigning node labels which is shown below.
 
except for assigning node labels which is shown below.
   Line 11: Line 11:  
<b>You may add span and css tags as you wish as they will be pasted in directly to the page. Examples are below.</b>
 
<b>You may add span and css tags as you wish as they will be pasted in directly to the page. Examples are below.</b>
    +
'''''<span style="color:red">Everything is Case-Insensitive</span>'''''
 
===Node Label===
 
===Node Label===
 
Simply pass the name of the node with  
 
Simply pass the name of the node with  
Line 19: Line 20:     
===Air Superiority and Air Supremacy===
 
===Air Superiority and Air Supremacy===
*<Node Letter and Pattern Number>_air_superiority = <value>
+
The module will automatically calculate required air power for Air Superiority and Air Supremacy.
*<Node Letter and Pattern Number>_air_supremacy = <value>
+
*<Node Letter and Pattern Number>_enemy_air_power = <value>
 +
'''Do not pass a value of 0 unless enemy launches plane but has 0 air power (e.g. [[Anchorage Water Demon]]).'''
 +
 
 +
For example,
 +
*B2_enemy_air_power = 50
 +
 
 +
 
 +
===Boss Nodes===
 +
If an explicit boss node is not given, the module will assume it is the last letter given.
 +
 
 +
*boss_node = <Node letter>
 
Eg,
 
Eg,
*B2_air_superiority = 50
+
*boss_node = M
*D5_air_supremacy = 100
+
*boss_node = J
    
===Xp===
 
===Xp===
Line 42: Line 53:  
Formations are:
 
Formations are:
 
*line_ahead
 
*line_ahead
*doubleline
+
*double_line
 
*diamond
 
*diamond
 
*echelon
 
*echelon
Line 50: Line 61:  
*A1_form = line_ahead
 
*A1_form = line_ahead
 
*B2_form = line_abreast
 
*B2_form = line_abreast
 +
 +
===Node Final Forms===
 +
This is for denoting that a certain node pattern is the final form. For example, the composition of an enemy fleet might change for the final kill of a gauge map. These would be denoted by being a "final form" of the node's patterns. The parameter takes multiple arguments because there may be multiple final forms for a node.
 +
 +
*final_form = <space separated list of nodepatterns>
 +
Eg,
 +
*final_form = C2 C3
 +
 +
===Node Post-Clear Forms===
 +
This is for denoting certain node pattern(s) that only appear after the map is cleared. These would be denoted by being a "post-clear only form" of the node's patterns. The parameter takes multiple arguments because there may be multiple post-clear only forms for a node.
 +
 +
*post_final_form = <space separated list of nodepatterns>
 +
Eg,
 +
*post_final_form = D2 D3
    
===Enemies===
 
===Enemies===
Enemies are passed in a single argument,
+
Enemies are passed in a single parameter,
 
*<Node Letter and Pattern Number>_node_info = <argument>
 
*<Node Letter and Pattern Number>_node_info = <argument>
 
The formation argument should simply be the enemy names, listed below, separated by a space.
 
The formation argument should simply be the enemy names, listed below, separated by a space.
 +
All spellings are English spellings. Eg, "harbor" instead of "harbour".
 +
All enemy information can be seen at the bottom of the source as there is a gigantic table of the mappings.
    
Enemy ship names are done as follows:
 
Enemy ship names are done as follows:
Line 81: Line 108:  
*Flagship_2
 
*Flagship_2
 
*Flagship_Kai
 
*Flagship_Kai
 +
*Late_Model
    
'''Some examples are:'''
 
'''Some examples are:'''
Line 87: Line 115:  
*''CVL_Nu-class_Flagship''
 
*''CVL_Nu-class_Flagship''
 
*''CV_Wo-class_Flagship_Kai''
 
*''CV_Wo-class_Flagship_Kai''
 +
 +
'''For bosses, type out their full name (don't use shorthand like BB_hime).
 +
*For final forms, simply add "_final_form" at the end
 +
*Floating Fortresses and Escort Fortresses have three forms and need "_1", "_2", and "_3" appended
 +
**floating_fortress_1
 +
**floating_fortress_2
 +
**etc
 +
*For Hoppou (Northern Hime), the 3-5 form has 3-5 appended as such
 +
**northern_princess_3-5_final_form
    
You would invoke the full argument such as follows:
 
You would invoke the full argument such as follows:
Line 109: Line 146:     
==Example invocation==
 
==Example invocation==
<code>&#123;&#123;#invoke:RemiSandbox|encounterTemplate<br>
+
<code>&#123;&#123;#invoke:EnemyEncounters|encounterTemplate<br>
 
|A1_xp=900<br>
 
|A1_xp=900<br>
 
|A1_lv=< 80<br>
 
|A1_lv=< 80<br>
Line 118: Line 155:  
|A2_lv=> 80<br>
 
|A2_lv=> 80<br>
 
|A2_node_info=fuel +50 75 100 125<br>
 
|A2_node_info=fuel +50 75 100 125<br>
|A2_air_superiority = 50<br>
+
|A2_enemy_air_power = 33<br>
|A2_air_supremacy=100<br>
   
|<br>
 
|<br>
 
|B1_xp=900<br>
 
|B1_xp=900<br>
 
|B1_node_info=Maelstrom fuel -50<br>
 
|B1_node_info=Maelstrom fuel -50<br>
|B_label = 敵前衛警戒部隊 &lt;br&gt; &lt;span style="color:yellow"&gt;Day Battle&lt;/span&gt;&#125;&#125;</code>
+
|B_label = 敵前衛警戒部隊 &lt;br&gt; &lt;span style="color:yellow"&gt;Day Battle&lt;/span&gt;<br>
 +
|final_form = A2
 +
|post_final_form = A1&#125;&#125;</code>
    
will result in  
 
will result in  
   −
{{#invoke:RemiSandbox|encounterTemplate
+
{{#invoke:EnemyEncounters|encounterTemplate
 
|A1_xp=900
 
|A1_xp=900
 
|A1_lv=< 80
 
|A1_lv=< 80
Line 136: Line 174:  
|A2_lv=> 80
 
|A2_lv=> 80
 
|A2_node_info=fuel +50 75 100 125
 
|A2_node_info=fuel +50 75 100 125
|A2_air_superiority = 50
+
|A2_enemy_air_power = 33
|A2_air_supremacy=100
   
|
 
|
 
|B1_xp=900
 
|B1_xp=900
 
|B1_node_info=Maelstrom fuel -50
 
|B1_node_info=Maelstrom fuel -50
|B_label = 敵前衛警戒部隊 <br> <span style="color:yellow">Day Battle</span>}}
+
|B_label = 敵前衛警戒部隊 <br> <span style="color:yellow">Day Battle</span>
 +
|final_form = A2
 +
|post_final_form = A1}}
 +
 
 +
Ignore the nonsense pattern information, please :D (Apparently you fight a maelstrom at node B and it's only day battle)
    
==Credit==
 
==Credit==
 
Module written by [[User:Remi_Scarlet|Remi_Scarlet]]
 
Module written by [[User:Remi_Scarlet|Remi_Scarlet]]
2,922

edits