How do you make a condition that can tell if the damage taken was from an ability? I need something like: Conditions: damage taken was from an ability equal to trure... i need something like that.
Uhh, it's a bit complicated, but... Hmm, I have an idea, but to make it, you need the World Editor Unlimited.
So my trigger:
Trigger:
Stormbolt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Storm Bolt (Abil)
Actions
Set SB_Unit = (Target unit of ability being cast)
Set SB_Caster = (Triggering unit)
Trigger - Add to SB_Trigger the event (Unit - SB_Unit Takes damage)
Trigger - Take SB_Trigger and add this condition: ((Damage taken) Greater than 0.00)
Trigger - Take SB_Trigger and add this condition: ((Damage source) Equal to SB_Caster)
Trigger - Take SB_Trigger and add this action: (Game - Display to (All players) the text: (Damage done: + (String((Damage taken)))))
Trigger - Take SB_Trigger and add this action: (Trigger - Take SB_Trigger and remove all actions)
Trigger - Take SB_Trigger and add this action: (Trigger - Take SB_Trigger and remove all conditions )
You have to create a this trigger for every single target spells and add the spells with an "or" condition, and you have to create an another one for the AoE spells using an unit group.
Forgot to add: this trigger leaks, I made it to demonstrate
EDIT: ooh, wait... something doesn't work...
Trigger:
Trigger - Take SB_Trigger and add this condition: ((Damage source) Equal to (Triggering unit))
Without it works, but fires when the target takes damage, not depends on the damage source...
EDIT2: okay, I'm a complete retard, the problem solved, trigger and map updated.
I don't use it. I use JASS NewGan Pack (I'm a JASSer), I only use it's interface, because it contains a lot of actions, conditions and events, what the original editor doesn't, but available it's JASS command. And it's loading screen looks better
EDIT: ohh, and this trigger doesn't contain any function, what aren't exist in the original wc3 script file. (So doesn't contain any custom function [There aren't any problem with the WE Unlimited, the problems are with some of its custom abils, because they uss Game Caches and return bugs, and it could crash the game, as someone said.)
Our new website went up early yesterday. Health Empowers You. 200 smoothie recipe guide and soon we will have detox, cognitive enhancement, weightloss teas and some coffee blends. https://healthempowersyou.net/products/smoothie-recipe-guide
It never fails that as soon as I say something about the bots they come back - this time they are under a whole new IP range - one thing in common though, Chinese!
I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.