1) It was directed to da1nOnlyEd. -.-;;
2) I think you misunderstood. Both way are the same. In warcraft editor, you could create a variable and a global variable. Global variable is referred with a udg_ in Jass. Yea.... either way works fine. However, with a global variables, they could leak...
I don't think it is an image.....
Anyway, I think Curo is right. You will probably have to create an Ability varible and then put udg_yourabilityvarible inside the () of GetSpellAbilityId().
I'm afraid that I can't not find the answer to your question. However, you could avoid this by triggering the reincarnation instead of using the skill.
No one said it doesn't leak.
Edit----------------------
Btw, It doesn't really matter rather you use the unit type of caster or a dummy unit. Either way, you will have to set trigger for each spell. It will depends on which one you like. For my trigger, you will only have to create 1 trigger...
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing -see as An exact match
Conditions
Actions
Player - Make Player 1 (Red) treat Neutral Passive as an Neutral with shared vision
Visibility - Create an initially Enabled...
Mirror Shield
Events
Unit - A unit Starts the effect of an ability
Conditions
((Target unit of ability being cast) has buff Mirror Shield) Equal to True
Actions
Set AbilityBeingReflected = (Ability being cast)
Set AbilityLevel = (Level of...
Wouldn't Player 2 who has shared vision with Player 1 to see what Player 1 can see? Meaning, Player 2 would also be able to see the whole map which Visedek didn't want.
One way I could think of is by having a third player allied to Player 1 but not to Player 2. Then enable third player to be...
Of course, that is the purpose of crab's code. However, you didn't realize one other purpose of his code was to let player to play with only one player on battle.net. It is as simple as that. Whether the code work or not, I do not know.
As for the other alternative methods that I have seen...
First off, what do you want to do? Do you want units in region Red Tower to attack move to Region Brown?
Untitled Trigger 001
Events
Unit - A unit enters Region 000 <gen>
Conditions
Actions
Unit - Order (Triggering unit) to Attack-Move To (Center of Region 000 <gen>)...
One way to improve crab's code is to add another trigger which detects if the map is playing with only one person or not. If there is one player playing the map, then crab's code would be triggered, and have the player type in "whosyourdaddy". By doing so, crab's code would not be triggered when...
It all depends on if you want the map to be able to play with one player or not.
Crab's code will be able to restrict a player from playing the map on singleplayer mode. Since by entering "whosyourdaddy," the game wouldn't be able to detect it, and it will not start. However, when a player is...
Untitled Trigger 001
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Storm Bolt
((Target unit of ability being cast) is in ImmuneGroup) Equal to True
Actions
Unit - Remove Stunned buff from (Target unit of...
You will probably have to make trigger for every spell that cause stun. Then make something like this. I don't think there are any other way. :P
Make your "stun ability" base off channel.
Trigger
A unit begin the casting an ability.
Condition
Ability being cast equal "stun ability"
Action
If...