Hello all. I searched and couldn't find anything about this:
I have been coding my map triggers in pure galaxy and I have a good understanding of a few programming languages. I have not done much with the data editor yet.
I have come to a point where I want to add some more complicated unit abilities onto my playable characters. Is there a way that I can have a unit ability just run a function that I have coded in Galaxy in global scope? This would make creating the unit abilities a snap for me.
It's been a while since I used the data editor at all, but you could create an ability for effect - target, and add some effect. Like a damage effect with 0 damage.
Then when the unit uses the ability, the trigger should run, and you can use EventUnit() to get the caster, EventUnitTargetPoint() or EventUnitTargetUnit() to get the target point/unit.
Now unit abilities that need to spawn crap or make weird sequences will be a breeze.
Galaxy coding isn't very difficult. I feel like all I am doing is creating tedious workarounds for a seemingly simple task in order for it to comply to the game engine's restraints.
Hello all. I searched and couldn't find anything about this:
I have been coding my map triggers in pure galaxy and I have a good understanding of a few programming languages. I have not done much with the data editor yet.
I have come to a point where I want to add some more complicated unit abilities onto my playable characters. Is there a way that I can have a unit ability just run a function that I have coded in Galaxy in global scope? This would make creating the unit abilities a snap for me.
It's been a while since I used the data editor at all, but you could create an ability for effect - target, and add some effect. Like a damage effect with 0 damage.
Then in the triggers, use the event
Then when the unit uses the ability, the trigger should run, and you can use EventUnit() to get the caster, EventUnitTargetPoint() or EventUnitTargetUnit() to get the target point/unit.
Yeah dummy spell, back to Wc3 lol :)
@SBeier: Go
Ah. Thank you much, works like a charm.
Now unit abilities that need to spawn crap or make weird sequences will be a breeze.
Galaxy coding isn't very difficult. I feel like all I am doing is creating tedious workarounds for a seemingly simple task in order for it to comply to the game engine's restraints.