Log:Game engine ideas (Meta, no ontology)

From Compile Worlds

(Difference between revisions)
(Elemental Strengths: add)
m (Kawachan 6.4 upgrade: replacing #img with #embed)
 
(6 intermediate revisions not shown)
Line 1: Line 1:
-
== Body descriptions ==
+
== Damage calculation ==
-
<[#img [hash 8341T7RQD9HYGBWRJS67Y3Y1D6]]>
+
Damage calculation is performed in a somewhat complicated manner.
-
*Notation - letters (Uppercase are prefixes, lowercase are suffixes):
+
 
-
**T = top, B = bottom
+
The first step is to split up the attack into constituent parts, for example, pellet-based attacks will be split up into one unit per pellet. However, attacks which have multiple types do not get split up at this stage.
-
**S = skirt (loose fitting on bottom half), C = cape/cloak (loose fitting on top half)
+
 
-
**L = left side only, R = right side only (mirrored on diagram due to stage left vs. character left)
+
Next, calculate the Base Damage for the attack:
-
**f = front only, b = back only
+
#Count the total number of Material types and the total number of Volatile types involved in the attack.
-
**s = open at sides; combining with f/b makes it wrap around the sides instead
+
#Type Factor := [(# Volatile types) - (# Material types)] ÷ # Total types
-
**l/r = like s, but affect left/right side only
+
#Base Damage := Attacker's Power × Attacker's Offense × (Attacker's Volatile ^ Type Factor). ''where (a^b) means a raised to the power b''
-
*Notation - numbers
+
 
-
**0 = waistband
+
Next, we do the accuracy calculation. If the accuracy is exactly 100%, this step does not need to be performed, leaving two cases that need to be dealt with in this step: case 1, when the accuracy is < 100%, and case 2, when the accuracy is > 100%; in the latter case, the attack power is supplemented with energy drawn from the character's surroundings (because it's, you know, freaking epic). With a high enough accuracy, what tends to happen is the attacking character simultaneously deals massive damage to the enemy in front while healing the ally behind.
-
**1 = chest/pelvis
+
 
-
**2 = shoulder/hip
+
For case 1, no supplement needs to be considered, but the attack needs to be spread out. At the extreme case of 0% accuracy, the attack exhibits a uniform distribution through all possible angles of the sphere. As accuracy improves towards 100%, the mean and standard deviation of the (normally distributed) defect angles approaches zero. A defect angle ∠TargetLatitude is chosen by the RNG and a second angle ∠TargetLongitude is chosen using a uniform distribution. These two angles are then combined to determine the direction in which the attack is fired.
-
**3 = biceps/thigh
+
 
-
**4 = forearm/shin
+
For case 2, the target of the attack is always dead-on. However, a similar method is used to determine the parameters for the energy source; the reciprocal of the accuracy is used, and the target direction undergoes a polar flip. This means that the attack (part) becomes two sub-parts; one for the attack proper, and another to heal whatever was in the other direction.
-
**5 = wrist/ankle
+
 
-
**6 = palm/sole (and equivalent areas on back)
+
There was going to be some stuff about Gaussian blurs, but that was a load of nonsense, so it's not here any more.
-
**7 = fingers/toes (not shown in diagram due to lack of space)
+
 
-
*Examples:
+
The final step is to look at the body/armor of the defender. We calculate the attack as a ray from the source (usually the attacking character, but may be different, for example in the case of lightning bolts) to the target (taking the accuracy calculation into account of course). We then find all the body/armor parts that intersect that ray and sort them based on the distance along the ray, with the closest part to the attacker coming first. Now we initialize the variable Damage to Base Damage, and for each part in the list, in order, do the following:
-
**T0-2 = short sleeved shirt
+
#Multiply Damage by the appropriate factor from the type chart.
-
**T1-B1 = leotard
+
#*for example, if the attack is Arcane-type, and the currently defending part is Rock-type, we multiply it by 200%.
-
**T3-6 = [[Hatsune Miku]]'s sleeves
+
#If Damage is negative, immediately exit this loop and run the absorption algorithm.
-
**B1 = panties
+
#Part Damage := Damage × Defender's Offense ÷ (Defender's Volatile ^ Type Factor). ''where ''Type Factor'' is the same value we calculated earlier''
-
**S1 = miniskirt
+
#Look at the health of the part, where 100% is full health and 0% is dead.
-
**S1-2 = Arle's skirt
+
#Damage := Damage × (100% - Part Health). ''this value will be carried over to the next iteration of the loop''
-
**S1-3 = Nanako's skirt
+
#Part Health := Part Health - Part Damage
-
**T1-S0s-S5s = Chinadress
+
#If Part Health is zero or negative, kill/destroy the part (whatever this may involve is specific to the type of part).
-
**C1b-S3b = [http://www.hardcoregaming101.net/puyo/arlenadja.jpg Arle's YON cape]
+
#If Damage is zero, immediately exit the loop, otherwise, continue to the next part.
 +
Note that the loop will continue as far as the range of the attack, until something absorbs the attack, or until Damage is reduced to zero.
 +
 
 +
To do: absorption algorithm
== Elemental Resistances ==
== Elemental Resistances ==
Line 57: Line 60:
<tr><td style='text-align: left;'>(Materials)</td><td></td><td>½</td><td>2</td><td></td><td>½</td><td>½</td><td></td><td>2</td><td>½</td></tr>
<tr><td style='text-align: left;'>(Materials)</td><td></td><td>½</td><td>2</td><td></td><td>½</td><td>½</td><td></td><td>2</td><td>½</td></tr>
</table>
</table>
 +
 +
== Body descriptions ==
 +
<[#embed [hash 8341T7RQD9HYGBWRJS67Y3Y1D6]]>
 +
*Notation - letters (Uppercase are prefixes, lowercase are suffixes):
 +
**T = top, B = bottom
 +
**S = skirt (loose fitting on bottom half), C = cape/cloak (loose fitting on top half)
 +
**L = left side only, R = right side only (mirrored on diagram due to stage left vs. character left)
 +
**f = front only, b = back only
 +
**s = open at sides; combining with f/b makes it wrap around the sides instead
 +
**l/r = like s, but affect left/right side only
 +
*Notation - numbers
 +
**0 = waistband
 +
**1 = chest/pelvis
 +
**2 = shoulder/hip
 +
**3 = biceps/thigh
 +
**4 = forearm/shin
 +
**5 = wrist/ankle
 +
**6 = palm/sole (and equivalent areas on back)
 +
**7 = fingers/toes (not shown in diagram due to lack of space)
 +
*Examples:
 +
**T0-2 = short sleeved shirt
 +
**T1-B1 = leotard
 +
**T3-6 = [[Hatsune Miku]]'s sleeves
 +
**B1 = panties
 +
**S1 = miniskirt
 +
**S1-2 = Arle's skirt
 +
**S1-3 = Nanako's skirt
 +
**T1-S0s-S5s = Chinadress
 +
**C1b-S3b = [http://www.hardcoregaming101.net/puyo/arlenadja.jpg Arle's YON cape]
== [[Arle Nadja]] ==
== [[Arle Nadja]] ==
Line 78: Line 110:
=== Body ===
=== Body ===
*Cloth on T0-2, T5 and S1-2.
*Cloth on T0-2, T5 and S1-2.
-
*Leather on B5-7.
+
*"Leather" on B5-7.
*Metal on LT2 and LT1f.
*Metal on LT2 and LT1f.
 +
 +
Note that "Leather" is treated as Flesh type as far as calculating damage is concerned.

Latest revision as of 22:44, 29 December 2013

Damage calculation

Damage calculation is performed in a somewhat complicated manner.

The first step is to split up the attack into constituent parts, for example, pellet-based attacks will be split up into one unit per pellet. However, attacks which have multiple types do not get split up at this stage.

Next, calculate the Base Damage for the attack:

  1. Count the total number of Material types and the total number of Volatile types involved in the attack.
  2. Type Factor := [(# Volatile types) - (# Material types)] ÷ # Total types
  3. Base Damage := Attacker's Power × Attacker's Offense × (Attacker's Volatile ^ Type Factor). where (a^b) means a raised to the power b

Next, we do the accuracy calculation. If the accuracy is exactly 100%, this step does not need to be performed, leaving two cases that need to be dealt with in this step: case 1, when the accuracy is < 100%, and case 2, when the accuracy is > 100%; in the latter case, the attack power is supplemented with energy drawn from the character's surroundings (because it's, you know, freaking epic). With a high enough accuracy, what tends to happen is the attacking character simultaneously deals massive damage to the enemy in front while healing the ally behind.

For case 1, no supplement needs to be considered, but the attack needs to be spread out. At the extreme case of 0% accuracy, the attack exhibits a uniform distribution through all possible angles of the sphere. As accuracy improves towards 100%, the mean and standard deviation of the (normally distributed) defect angles approaches zero. A defect angle ∠TargetLatitude is chosen by the RNG and a second angle ∠TargetLongitude is chosen using a uniform distribution. These two angles are then combined to determine the direction in which the attack is fired.

For case 2, the target of the attack is always dead-on. However, a similar method is used to determine the parameters for the energy source; the reciprocal of the accuracy is used, and the target direction undergoes a polar flip. This means that the attack (part) becomes two sub-parts; one for the attack proper, and another to heal whatever was in the other direction.

There was going to be some stuff about Gaussian blurs, but that was a load of nonsense, so it's not here any more.

The final step is to look at the body/armor of the defender. We calculate the attack as a ray from the source (usually the attacking character, but may be different, for example in the case of lightning bolts) to the target (taking the accuracy calculation into account of course). We then find all the body/armor parts that intersect that ray and sort them based on the distance along the ray, with the closest part to the attacker coming first. Now we initialize the variable Damage to Base Damage, and for each part in the list, in order, do the following:

  1. Multiply Damage by the appropriate factor from the type chart.
    • for example, if the attack is Arcane-type, and the currently defending part is Rock-type, we multiply it by 200%.
  2. If Damage is negative, immediately exit this loop and run the absorption algorithm.
  3. Part Damage := Damage × Defender's Offense ÷ (Defender's Volatile ^ Type Factor). where Type Factor is the same value we calculated earlier
  4. Look at the health of the part, where 100% is full health and 0% is dead.
  5. Damage := Damage × (100% - Part Health). this value will be carried over to the next iteration of the loop
  6. Part Health := Part Health - Part Damage
  7. If Part Health is zero or negative, kill/destroy the part (whatever this may involve is specific to the type of part).
  8. If Damage is zero, immediately exit the loop, otherwise, continue to the next part.

Note that the loop will continue as far as the range of the attack, until something absorbs the attack, or until Damage is reduced to zero.

To do: absorption algorithm

Elemental Resistances

  • For a material defense against a volatile attack, damage multiplier is the appropriate cell of the table.
    • ex: arcane attacks rock => 200% effectiveness
  • For a volatile defense against a material attack, damage multiplier is the reciprocal of the appropriate cell of the table.
    • ex: bone attacks wind => 33% effectiveness
  • For a material attack against the same material defense, damage multiplier is always 1.
    • ex: flesh attacks flesh => 100% effectiveness
  • For a material attack against a different material defense, damage multiplier is the bottom cell value for the defending material divided by the bottom cell value for the attacking material.
    • ex: bone attacks cloth => 2 ÷ ½ = 400% effectiveness
  • For a volatile attack against the same volatile defense, damage multiplier is always -1 (the defender absorbs the entire attack).
    • ex: fire attacks fire => 100% of attack power absorbed into the defender's health
  • For a volatile attack against a different volatile defense, damage multiplier is the rightmost cell value for the attacking material divided by the rightmost cell value for the defending material.
    • ex: psychic attacks searing => 2 ÷ 1½ = 133% effectiveness

Note that material defenses usually originate from a character's body/outfit, while volatile defenses usually originate from shields put up. Similarly, material attacks are usually performed with physical weapons, while volatile attacks are usually performed with magic or technology.

 FleshBoneClothIceRockMetalWoodWaterLava(Volatiles)
Electric2004½3
Fire½½32½½2½
Arcane½2½½22
Psychic2½2
Wind30½½2
Life-14½
Searing4½½½2
Ghost0022
Poison200030
(Materials)½2½½2½

Body descriptions

(image)

  • Notation - letters (Uppercase are prefixes, lowercase are suffixes):
    • T = top, B = bottom
    • S = skirt (loose fitting on bottom half), C = cape/cloak (loose fitting on top half)
    • L = left side only, R = right side only (mirrored on diagram due to stage left vs. character left)
    • f = front only, b = back only
    • s = open at sides; combining with f/b makes it wrap around the sides instead
    • l/r = like s, but affect left/right side only
  • Notation - numbers
    • 0 = waistband
    • 1 = chest/pelvis
    • 2 = shoulder/hip
    • 3 = biceps/thigh
    • 4 = forearm/shin
    • 5 = wrist/ankle
    • 6 = palm/sole (and equivalent areas on back)
    • 7 = fingers/toes (not shown in diagram due to lack of space)
  • Examples:
    • T0-2 = short sleeved shirt
    • T1-B1 = leotard
    • T3-6 = Hatsune Miku's sleeves
    • B1 = panties
    • S1 = miniskirt
    • S1-2 = Arle's skirt
    • S1-3 = Nanako's skirt
    • T1-S0s-S5s = Chinadress
    • C1b-S3b = Arle's YON cape

Arle Nadja

Techniques

Fire
Projectile-style Fire-type
Ice Storm
Pellet-style Ice-type
Thunder
Bolt-style Sky-origin Electric-type
Daiacute
Raise own accuracy
Brain Damudo
Lower enemy accuracy
Hanachikara
Spore-Pellet-style Life-type
Jugem
Give enemy damp status, Homing-style Electric-type, Remove enemy damp status, Give enemy flaming status
Bayoen
Beam-Pellet-style Searing-type

Stats

  • Speed: TBA%
  • Power: TBA%
  • Accuracy: TBA%
  • Offense: 100%
  • Volatile: 200%

Body

  • Cloth on T0-2, T5 and S1-2.
  • "Leather" on B5-7.
  • Metal on LT2 and LT1f.

Note that "Leather" is treated as Flesh type as far as calculating damage is concerned.