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:58 pm]
Pr0nogo -- Suicidal Insanity
Suicidal Insanity shouted: Moose Naw - if that is an option, it should be a global option
agreed
[02:58 pm]
Pr0nogo -- no problem
[11:47 am]
rnDPrc -- Pr0nogo
Pr0nogo shouted: though idk if you can extract them from scr anymore since casc took effect, so you can download them here
Thank you :)
[11:28 am]
Suicidal Insanity -- Pr0nogo
Pr0nogo shouted: though idk if you can extract them from scr anymore since casc took effect, so you can download them here
SC:R still ships with all the old MPQs
[11:26 am]
Suicidal Insanity -- Otherwise it clutters up the UI and you have inconsistent names from location to location
[11:26 am]
Suicidal Insanity -- Moose
Moose shouted: Basically, anywhere that supports custom unit names should have an option to use the originals imo
Naw - if that is an option, it should be a global option
[11:10 am]
Pr0nogo -- though idk if you can extract them from scr anymore since casc took effect, so you can download them here
[11:08 am]
Pr0nogo -- rnDPrc
rnDPrc shouted: Where can I learn more about the default AI Scripts behavior? I'm having some problems here
extract the scripts using pympq and open them in pyai (using the python modding suite) and use nekron's guide as a reference
[10:57 am]
NudeRaider -- http://www.staredit.net/372001/ thou shalt not judge
[10:18 am]
rnDPrc -- I mean the Run AI Script trigger choices
Please log in to shout.


Members Online: jjf28, Roy, Zycorax, UEDCommander