HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need a charm hero skill ... i ll give points...

02-25-2004, 12:15 PM#1
Babuu
Hi i give 200 points to someone who can make me this skill :

The skill is a hero skill and shall have three levels. It's like the charm skill of the undead archer girl but u can't charm units. U can only charm heroes or better said..infest them. U can charm an enemy hero for 10 seconds ---> this means u can control him for 10 seconds. During this time the charmed hero shall be invincible. After the time the player owning the hero shall get bak the control of his hero. The only difference between the 3 levels of the skill shall be the cooldown. Maybe add some nice effects but don't make to much special effects and stuff like that. I don't want half things. Plz test the skill before u send it. I asked for this skill some time before and i got a skill that didn't work... so i hope it's ok if u get points after i ve tested the skill too. :) ......hope somebody can handle this challenge ^^
02-25-2004, 02:26 PM#2
Vexorian
Make a spell from Stormbolt, change the targets to Hero and nothing more , call it Charm (hero), set its duration to 0.01, give it the special effects you want.

then

Events: A Unit begins casting an ability
Conditions: Ability being cast equal to Charm (hero)
Actions
Custom Script: local unit u=GetSpellTargetUnit()
Custom Script: local integer i=GetPlayerId(GetOwningPlayer(u))
Custom Script: call SetUnitOwner( u, GetOwningPlayer(GetTriggerUnit()), false)
Game - Wait ( Convert integer to real ( (level of Charm (hero) for (triggering unit) × 10) ) ) Game Time Seconds
Custom Script: call SetUnitOwner( u, Player(i), false)
02-25-2004, 06:01 PM#3
Babuu
wow, ok, thx...i ll try.....
02-25-2004, 06:07 PM#4
xGT4x
I think it's always better to use
Code:
A unit starts the effect of an ability
instead of
Code:
A unit begins casting an ability.
Because when you use Begins casting it starts when you start the ability, when you stop it little after starting you normally don't loose Mana and other effects won't work but your trigger will activate, with starts the effect it activates when normally like in your example the mana gats lost, the cooldown starts and he throws the hammer...
02-27-2004, 10:56 AM#5
Babuu
Great work Lord Vexorian thx..... it works perfectly... I give u 200 points....it's urs