• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Getting a list of structures a builder can build / units a structure can train

Status
Not open for further replies.
Level 11
Joined
Jul 4, 2016
Messages
627
You can sorta can.

1. Download this Item Data Extractor 1.0

2. Delete all the function names and add GetUnitTypeStructuresBuilt takes integer integername returns string

3. at the bottom, where it says LoadItemData change it to LoadUnitData, and replace all those ids with the desired build ability id.

4. Then utilize String by Bannar [Snippet] String to grab separate ids.

Note: You will need WEX to turn on Object Data Extractor.
 
Level 10
Joined
Nov 23, 2006
Messages
592
You can sorta can.

1. Download this Item Data Extractor 1.0

2. Delete all the function names and add GetUnitTypeStructuresBuilt takes integer integername returns string

3. at the bottom, where it says LoadItemData change it to LoadUnitData, and replace all those ids with the desired build ability id.

4. Then utilize String by Bannar [Snippet] String to grab separate ids.

Note: You will need WEX to turn on Object Data Extractor.

This is too complicated for what i want to achieve, I thank you for advice tho
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Unfortunately Warcraft III doesn't expose a lot of object data which can't be changed ingame through the trigger system, since it assumes anyone who wants this information will just hardcode it since it's constant anyways. ODE was created to solve this problem, but as you mentioned is unfortunately a bit more heavyweight than you might be looking for.
 
Status
Not open for further replies.
Top