- Joined
- Aug 21, 2005
- Messages
- 3,699
after trying it myself (and a long way of GUI pain), I failed in making this spell (well tbh, it's my first actual spell cause I've never made any spells before)
Here's what I want: I want a channel spell (the caster is channeling the spell). as long as the unit is channeling (the unit stops channeling if you move it, start casting another spell or if the unit dies), the targetted unit of the channel spell should be changed ownership to the side of the casting unit. as soon as you sto p channeling, the unit is owned by its original owner again.
if jass is required... well then feel free to make a script & send it, but I can hardly understand it.
so basically, I want a channel spell, that stops finishes channeling after 30 seconds. when channeling: the targetted unit is 'charmed'. as soon as the spell is finished OR stops channeling, the targetted unit is owned by its original owner again.
here's what I did so far:
Trigger 1:
events:
Unit - A unit Begins channeling an ability
Conditions: (Ability being cast) Equal to Charm Test
Actions: Unit - Set the custom value of (Target unit of ability being cast) to (Player number of (Owner of (Target unit of ability being cast)))
Wait 0,01 seconds
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Trigger 2:
Events:
Unit - A unit Stops casting an ability
Unit - A unit Finishes casting an ability
Conditions: (Ability being cast) Equal to Charm Test
Actions: Unit - Change ownership of (Target unit of ability being cast) to (Player((Custom value of (Target unit of ability being cast)))) and Change color
this should work fine, but I get this error as soon as I start casting the spell
http://www.freeimagehost.eu/image/43dc8c37089
I don't get this error anymore if I change the "wait 0,01 seconds" into 1 second, but then the spell is no longer multi instancable, and that's really a MUST.
then, if I stop casting the spell, I get the error again... I have no idea why.
if you wonder why I use custom value rather than changing the ownership to the previous owner, that's because I did that first, but then it didn't change back to the original owner... it just remained under your control.
I really need help.
if you decide to remake the spell for me, and make a multi instancable fully working version, you will be credited. thank you
Here's what I want: I want a channel spell (the caster is channeling the spell). as long as the unit is channeling (the unit stops channeling if you move it, start casting another spell or if the unit dies), the targetted unit of the channel spell should be changed ownership to the side of the casting unit. as soon as you sto p channeling, the unit is owned by its original owner again.
if jass is required... well then feel free to make a script & send it, but I can hardly understand it.
so basically, I want a channel spell, that stops finishes channeling after 30 seconds. when channeling: the targetted unit is 'charmed'. as soon as the spell is finished OR stops channeling, the targetted unit is owned by its original owner again.
here's what I did so far:
Trigger 1:
events:
Unit - A unit Begins channeling an ability
Conditions: (Ability being cast) Equal to Charm Test
Actions: Unit - Set the custom value of (Target unit of ability being cast) to (Player number of (Owner of (Target unit of ability being cast)))
Wait 0,01 seconds
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Trigger 2:
Events:
Unit - A unit Stops casting an ability
Unit - A unit Finishes casting an ability
Conditions: (Ability being cast) Equal to Charm Test
Actions: Unit - Change ownership of (Target unit of ability being cast) to (Player((Custom value of (Target unit of ability being cast)))) and Change color
this should work fine, but I get this error as soon as I start casting the spell
http://www.freeimagehost.eu/image/43dc8c37089
I don't get this error anymore if I change the "wait 0,01 seconds" into 1 second, but then the spell is no longer multi instancable, and that's really a MUST.
then, if I stop casting the spell, I get the error again... I have no idea why.
if you wonder why I use custom value rather than changing the ownership to the previous owner, that's because I did that first, but then it didn't change back to the original owner... it just remained under your control.
I really need help.
if you decide to remake the spell for me, and make a multi instancable fully working version, you will be credited. thank you