I would like to make custom unit buttons do custom actions, eg. launch a special attack which draws energy, or self heal...etc... It would be also good to know how to do custom upgrades like weapon range or unit speed increase.
I have general plugin template for bw 1.16.1 but it is really undercommented and I can't figure out how to achieve these goals.
I can at least help with the adding buttons part if you don't already know how to do that. I'm not a very active modder anymore (at least not anymore if I could even be considered active back then).
Adding new buttons is done through FireGraft. If you don't know how to use it, I'm sure there are tutorials out there. If there aren't, I'll see about writing up a few tutorials to post after the convention I'm preparing for (basically, early February.)
I haven't done much (anything) with plug-ins, but I'm assuming you can have the plug-ins set up to ride on an already existing spell in Starcraft.
Unless there are plug-ins for it, I'm pretty sure unit speed and weapon range upgrades are hard-coded to the units they affect in normal Starcraft.
If you already know how to add buttons and are just asking about the plug-in, disregard everything I've said and accept an apology from me for wasting your time reading this.
Ardis wrote:Unless there are plug-ins for it, I'm pretty sure unit speed and weapon range upgrades are hard-coded to the units they affect in normal Starcraft.
they are hard-coded, but the place where it's hard-coded is editable with Firegraft's "EXE edits" section
(the same data & other relevant bits of memory could potentially also be modified with a plugin, giving you more flexibility over how it's applied, but making it much more complicated on the development end...)
I already know and have the latest Firegraft and I know how to make buttons with it, but how to make them cast custom spells or research custom upgrades for custom units? Modcrafters has closed registration on its forum so I can't ask there. I just hope some plugin expert is lurking these forums somewhere
one way could be to make a button for an existing ability that the unit in question doesn't normally have, then make the plugin check for the relevant orders stuff and do whatever ability stuff then set the unit's order back to whatever the standard idle one is
or for untargeted abilities you could do something ridiculously hacky where you add a button to build an invisible unused unit and have the plugin check for & kill units of that type