Skip to content

Low level Design

Abraham Yunes edited this page Mar 17, 2017 · 7 revisions

Size classifications

Units in StarCraft: BroodWar had a size classification taken into account for damage reduction. These have been adapted to the StarCraft 2 attribute classification. Here is a small conversion table:

  • Small - Light
  • Medium - No Attribute
  • Large - Armored

Issues with such classification

Weapon base damage should be accounted for medium sized units. This represents a problem that shield damage would always account for medium size rather than base damage on Broodwar. A series of validators and effect switches could be taken into account, but that would probably be more complicated for such little gain. Perhaps a child mod could account for it, while keeping the base mod as strightforward and scalable as possible.

Naming convention

With the exception of Validators (only somewhat) and RequirementNodes, all entities must have a "SCBW" suffixed in the IDs after the entity pronoun and before the verb when it comes to behaviors, effects and abilities. Their Display Name should be close as the source as possible. With the exception of portraits, all elements should have an Editor Prefix of "(SCBW) -"; portraits have it as an Editor Suffix of "- (SCBW)". A weapon, upgrade or any other element that pertains only a particular unit, should preferable have the unit name appended in the prefix, using the format "(SCBW) - [Unit Display Name] -"

Examples:

  • Gateway (Unit)
    • ID: GatewaySCBW
    • Display Name: Gateway
    • Editor Prefix: (SCBW) -
    • Full Name displayed on the Editor: (SCBW) - Gateway
  • Gateway "What" Unit Response (Sound)
    • ID: GatewaySCBW_What
    • Display Name: Gateway_What
    • Editor Prefix: (SCBW) -
    • Full Name displayed on the Editor: (SCBW) - Gateway_What
  • Zealot Portrait (Portrait Model)
    • ID: ZealotSCBWPortrait
    • Display Name: Zealot
    • Editor Prefix: Portrait -
    • Editor Suffix: - (SCBW)
    • Full Name displayed on the Editor: Portrait - Zealot - (SCBW)
  • Zealot Leg Enhancements (Upgrade)
    • ID: ZealotSCBWLegEnhancements
    • Display Name: Leg Enhancements
    • Editor Prefix: (SCBW) - Zealot -
    • Full Name displayed on the Editor: (SCBW) - Zealot - Leg Enhancements
Clone this wiki locally