Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How do I map unit ID to weapon ID?
How do I map unit ID to weapon ID?
Mar 22 2019, 9:59 pm
By: sethmachine  

Mar 22 2019, 9:59 pm sethmachine Post #1



I need to update a unit's damage in the UNIx section.

How do I know what weapon ID corresponds to each unit ID, without manually coding this up?

http://www.starcraftai.com/wiki/CHK_Format#List_of_Unit_Weapon_IDs

Thanks!



None.

Mar 22 2019, 10:28 pm sethmachine Post #2



Manually coded up, hope it's right...:

Code
UNIT_TO_WEAPON = {
   TERRAN_MARINE: [GAUSS_RIFLE_NORMAL],
   TERRAN_GHOST: [C10_CONCUSSION_RIFLE_NORMAL],
   TERRAN_VULTURE: [FRAGMENTATION_GRENADE_NORMAL],
   TERRAN_GOLIATH: [TWIN_AUTOCANNONS_NORMAL, HELLFIRE_MISSILE_PACK_NORMAL],
   GOLIATH_TURRET: [HELLFIRE_MISSILE_PACK_NORMAL],
   TERRAN_SIEGE_TANK_TANK_MODE: [ARCLITE_CANNON_NORMAL],
   TANK_TURRET_TANK_MODE: [ARCLITE_CANNON_NORMAL],
   TERRAN_SCV: [FUSION_CUTTER],
   TERRAN_WRAITH: [BURST_LASERS_NORMAL, GEMINI_MISSILES_NORMAL],
   GUI_MONTANG_FIREBAT: [FLAME_THROWER_GUI_MONTAG],
   TERRAN_BATTLECRUISER: [ATA_LASER_BATTERY_NORMAL, ATS_LASER_BATTERY_NORMAL],
   VULTURE_SPIDER_MINE: [SPIDER_MINES],
   NUCLEAR_MISSILE: [NUCLEAR_MISSILE_WEAPON],
   SARAH_KERRIGAN_GHOST: [C10_CONCUSSION_RIFLE_SARAH_KERRIGAN],
   ALAN_SCHEZAR_GOLIATH: [TWIN_AUTOCANNONS_ALAN_SCHEZAR, HELLFIRE_MISSILE_PACK_ALAN_SCHEZAR],
   ALAN_SCHEZAR_TURRET: [TWIN_AUTOCANNONS_ALAN_SCHEZAR],
   JIM_RAYNOR_MARINE: [GAUSS_RIFLE_JIM_RAYNORMARINE],
   JIM_RAYNOR_VULTURE: [FRAGMENTATION_GRENADE_JIM_RAYNORVULTURE],
   TOM_KAZANSKY_WRAITH: [BURST_LASERS_TOM_KAZANSKY, GEMINI_MISSILES_TOM_KAZANSKY],
   EDMUND_DUKE_SIEGE_TANK: [ARCLITE_CANNON_EDMUND_DUKE],
   EDMUND_DUKE_TURRET: [ARCLITE_CANNON_EDMUND_DUKE],
   EDMUND_DUKE_SIEGE_MODE: [ARCLITE_SHOCK_CANNON_EDMUND_DUKE],
   EDMUND_DUKE_TURRET_SIEGE_MODE: [ARCLITE_SHOCK_CANNON_EDMUND_DUKE],
   HYPERION_BATTLECRUISER: [ATA_LASER_BATTERY_HYPERION, ATS_LASER_BATTERY_HYPERION],
   NORAD_II_BATTLECRUISER: [ATA_LASER_BATTERY_NORAD_II_MENGSK_DUGALLE, ATS_LASER_BATTERY_NORAD_II_MENGSK_DUGALLE],
   TERRAN_SIEGE_TANK_SIEGE_MODE: [ARCLITE_SHOCK_CANNON_NORMAL],
   TANK_TURRET_SIEGE_MODE: [ARCLITE_SHOCK_CANNON_NORMAL],
   FIREBAT: [FLAME_THROWER_NORMAL],
   ZERG_ZERGLING: [CLAWS_NORMAL],
   ZERG_HYDRALISK: [NEEDLE_SPINES_NORMAL],
   ZERG_ULTRALISK: [KAISER_BLADES_NORMAL],
   ZERG_BROODLING: [TOXIC_SPORES_BROODLING],
   ZERG_DRONE: [SPINES],
   ZERG_MUTALISK: [GLAVE_WURM_NORMAL],
   ZERG_GUARDIAN: [ACID_SPORE_NORMAL],
   ZERG_SCOURGE: [SUICIDE_SCOURGE],
   TORRARSQUE_ULTRALISK: [KAISER_BLADES_TORRASQUE],
   INFESTED_TERRAN: [SUICIDE_INFESTED_TERRAN],
   INFESTED_KERRIGAN: [CLAWS_INFESTED_KERRIGAN],
   HUNTER_KILLER_HYDRALISK: [NEEDLE_SPINES_HUNTER_KILLER],
   DEVOURING_ONE_ZERGLING: [CLAWS_DEVOURING_ONE],
   KUKULZA_MUTALISK: [GLAVE_WURM_KUKULZAMUTALISK],
   KUKULZA_GUARDIAN: [ACID_SPORE_KUKULZAGUARDIAN],
   TERRAN_VALKYRIE_FRIGATE: [HALO_ROCKETS],
   PROTOSS_CORSAIR: [NEUTRON_FLARE],
   PROTOSS_DARK_TEMPLAR_UNIT: [WARP_BLADES_NORMAL],
   ZERG_DEVOURER: [CORROSIVE_ACID],
   PROTOSS_PROBE: [PARTICLE_BEAM],
   PROTOSS_ZEALOT: [PSI_BLADES_NORMAL],
   PROTOSS_DRAGOON: [PHASE_DISRUPTOR_NORMAL],
   PROTOSS_ARCHON: [PSIONIC_SHOCKWAVE_NORMAL],
   PROTOSS_SCOUT: [DUAL_PHOTON_BLASTERS_NORMAL, ANTIMATTER_MISSILES_NORMAL],
   PROTOSS_ARBITER: [PHASE_DISRUPTOR_CANNON_NORMAL],
   PROTOSS_CARRIER: [PULSE_CANNON],
   PROTOSS_INTERCEPTOR: [PULSE_CANNON],
   DARK_TEMPLAR_HERO: [WARP_BLADES_DARK_TEMPLAR_HERO],
   ZERATUL_DARK_TEMPLAR: [WARP_BLADES_ZERATUL],
   TASSADAR_ZERATUL_ARCHON: [PSIONIC_SHOCKWAVE_TASSADAR_ZERATUL_ARCHON],
   FENIX_ZEALOT: [PSI_BLADES_FENIXZEALOT],
   TASSADAR_TEMPLAR: [PSI_ASSAULT_TASSADAR_ALDARIS],
   MOJO_SCOUT: [DUAL_PHOTON_BLASTERS_MOJO, ANITMATTER_MISSILES_MOJO],
   WARBRINGER_REAVER: [SCARAB],
   GANTRITHOR_CARRIER: [PULSE_CANNON],
   PROTOSS_REAVER: [SCARAB],
   DANIMOTH_ARBITER: [PHASE_DISRUPTOR_CANNON_DANIMOTH],
   ARTANIS_SCOUT: [DUAL_PHOTON_BLASTERS_ARTANIS, ANTIMATTER_MISSILES_ARTANIS],
   RASZAGAL: [NEUTRON_FLARE],
   SAMIR_DURAN_GHOST: [C10_CONCUSSION_RIFLE_SAMIR_DURAN],
   ALEXEI_STUKOV_GHOST: [C10_CONCUSSION_RIFLE_ALEXEI_STUKOV],
   GERARD_DUGALLE: [ATA_LASER_BATTERY_NORAD_II_MENGSK_DUGALLE, ATS_LASER_BATTERY_NORAD_II_MENGSK_DUGALLE],
   ZERG_LURKER: [SUBTERRANEAN_SPINES],
   INFESTED_DURAN: [C10_CONCUSSION_RIFLE_INFESTED_DURAN],
   TERRAN_MISSILE_TURRET: [LONGBOLT_MISSILES],
   ZERG_SPORE_COLONY: [SEEKER_SPORES],
   ZERG_SUNKEN_COLONY: [SUBTERRANEAN_TENTACLE],
   PROTOSS_PHOTON_CANNON: [STA_PHOTON_CANNON, STS_PHOTON_CANNON],
   FLOOR_MISSILE_TRAP: [HELLFIRE_MISSILE_PACK_FLOOR_TRAP],
   LEFT_WALL_MISSILE_TRAP: [HELLFIRE_MISSILE_PACK_WALL_TRAP],
   FLOOR_GUN_TRAP: [TWIN_AUTOCANNONS_FLOOR_TRAP],
   LEFT_WALL_FLAME_TRAP: [FLAME_THROWER_WALL_TRAP],
   RIGHT_WALL_MISSILE_TRAP: [HELLFIRE_MISSILE_PACK_WALL_TRAP],
   RIGHT_WALL_FLAME_TRAP: [FLAME_THROWER_WALL_TRAP]
}





None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:41 pm]
razorback9423 -- NudeRaider
NudeRaider shouted: MTiger156 power over:wob:ing?
No, POWER UNDER :wob: ing!
[12:53 pm]
NudeRaider -- MTiger156
MTiger156 shouted: Power over:wob:ing
power over:wob:ing?
[12:27 pm]
MTiger156 -- crap...
[12:27 pm]
MTiger156 -- Power over:wob:ing
[11:50 am]
UEDCommander -- WARNING: Unit Unplaceable! (u) (69, 69)
[09:26 am]
lil-Inferno -- :wob:
[08:25 am]
Black_Overseer -- razorback9423
razorback9423 shouted: WARNING: Unit Unplaceable! (Aldaris) (1656,2996)
You have no power here, Gandalf the Grey.
[05:43 am]
razorback9423 -- WARNING: Unit Unplaceable! (Aldaris) (1656,2996)
[05:27 am]
razorback9423 -- stop
[05:27 am]
NudeRaider -- :wob: you can't :wob: us
Please log in to shout.


Members Online: Roy, C(a)HeK, aqezygili, UEDCommander, abawym