• 0

    posted a message on [Trigger] Activate Ability Using Dialog Button

    @greythepirate: Go

    I've never done any custom script stuff and am having trouble finding a tutorial on it. Any suggestions?

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Activate Ability Using Dialog Button

    @SoulTaker:

    Sorry for reviving this thread in the incorrect forum, perhaps it's to late to start a new one instead?

    Yah I was able to setup triggers to where a unit (my hero with abilities) would (on dialog button click) use an ability targeting a point closest to himself in an enemy players army. However I can't seem to figure out how to set it up so clicking the dialog button just initiates the ability (same as if I had clicked psi storm in a command card), then clicking a 2nd time on the map would use the ability at that location.

    @greythepirate:

    "You want the ability buttons of three different heroes displayed on the screen at once? And some of the abilities are targeted?"

    Yes this is correct. I want to take 1 ability from each hero (there are 3) and display those buttons on the screen. Essentially I want the same functionality as when abilities are used from the command card, except the abilities are displayed on the main UI.

    This functionality only really needs to include: -similar or editable picture -visual cooldown indicator (a sweeping line/greyed out like normal or could just be a number display) -abilities that require a target would allow the player to click a 2nd time to target a location (after clicking the dialog button displayed on the main UI)

    I will try both of your suggestions in the meantime and see if I can get it working.

    Thanks a ton!

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Activate Ability Using Dialog Button

    @Shortrizzle90: Go

    In a fuller explanation I'm just trying to move 1 of each 3 different heroes command card abilities to the main screen UI (as well as display the cooldowns). I've got the cooldown portion sort of working (breaks when I kill the hero and create a new one of the same original type).

    Any help on the command card button linking to a new UI dialog item would be great! Thanks!

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Activate Ability Using Dialog Button

    @greythepirate: Go

    Ah okay, thanks for the info greythepirate!

    Would you mind telling me which function can hook up a command button as a dialog item?

    Would I first make a dialog item (Display Screen Button), then hook up a command button to it in a separate function?

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Activate Ability Using Dialog Button

    Does anyone know if this has been fixed, or what exactly Molsterr meant by set "targeting" to true? Would I take an ability like fungal growth (from the infestor) and remove targeting from one of the behaviors and then set a trigger to add it back? Then use issue order to unit function, with target? I'm pretty confused but I'm going to try and keep working through it pending your response.

    Thanks in advance! Dennis

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.