Preface: I know nothing of JASS and haven't worked with WC3 in years, I just recently started messing around in the editor again and was wondering how one could go about this.
I want to be able to create any unit by typing in a text string with the raw data ID as displayed in the editor.
IE "create hdhw" or just "hdhw" would create a Dragonhawk Rider or "uabo" an Abomination at the location of the mouse, or if not possible then at a specific region.
I feel like I should be able work something with converting a string to unit type, but I haven't been able to wrap my head around making that work the way I want.
I want to be able to create any unit by typing in a text string with the raw data ID as displayed in the editor.
IE "create hdhw" or just "hdhw" would create a Dragonhawk Rider or "uabo" an Abomination at the location of the mouse, or if not possible then at a specific region.
I feel like I should be able work something with converting a string to unit type, but I haven't been able to wrap my head around making that work the way I want.