- Joined
- Aug 11, 2009
- Messages
- 6,522
I was wondering, when you've made a custom UI, meaning removed the default UI and you've added screen images/Dialog Images, how can you make them cast a default skill?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I was wondering, when you've made a custom UI, meaning removed the default UI and you've added screen images/Dialog Images, how can you make them cast a default skill?
Spell1 (button)

Events


Dialog - Any Dialog Item is Clicked by Player Any Player

Local Variables

Conditions


(Used dialog item) == Spell1

Actions


Unit - Order SelectedUnits[(Triggering player)] to (Marine - Use Stimpack) (Replace Existing Orders)
Well what if the ability needs the player to choose a target?
Selection is the easiest way to do it.
But what if it's target location? <.<
doesn't seem that hard.
If you can, when they press the button for the spell, change the users mouse icon and enable 2 triggers, one that is "SpellCancel" that triggers when the player right clicks and one that is "CastSpell" that triggers when they left click. Upon left clicking, it would tell the unit to use the spell on the target point. Upon right clicking, it would change your icon back to normal and disable both triggers.
Kinda hard to describe but meh.
