• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Request/Help for chanced temp change owner of unit by spell

Status
Not open for further replies.
Level 7
Joined
Feb 4, 2005
Messages
289
I want to make a spell* to change !temporary(for several seconds) and with !chance to change the owner of the target unit of ability being cast to owner of casting unit also the player color of the unit respectively. When the duration ends this unit to have the same owner as before with the new life&mana and the old colour. Some help pls ? Specially i dont know how ti make it temp and chance.

*Spell can be an autocast spell or normal spell with 1 cooldown that i can make or even passive if triggers can work with passive spells, wahetver you find suitable.
 
Level 4
Joined
Sep 2, 2004
Messages
74
i dont know about u but this seems very easy to me..

but ill need some more info...
how long
wut type of spell is it like on attack passive
and anything else ill need to know and ill gladly make it really fast for you
 
Level 7
Joined
Feb 4, 2005
Messages
289
Ok i will reveal everything about the ability i intend to make:

Name: Deviate. Info: you know Dune ? Especially Dune II where the ordos have deviators to temporary turn an enemy unit into yours. Thats just a good future/hi-tech ability, not spell that i will use among the many abilities for maps with Future idea.


I want this to be an AOE ability with little aoe (200 or less i can do that)
So a missile shoots ( the missile of the spell) and you add some chance that it will change the owner of units in this small area. U change also the colour of that unit to green (player 7). You make it wait for 10 seconds for example, then change the owner and colour back to previous owner of the units of that area.


I tried with If/then/else but i dont know how to add the chance so that i can add in
Then actions
- Change owneer of every unit in units in area of 200 of target point of ability being castto owner of casting unit
-Wait 10 seconds
-CHange onwer of units in area of 200 of target point of ability being cast)
(i dont mentione existing triggers but smth like that)
to previous owner of the unit group withnew life&mana.
 
Level 7
Joined
Feb 4, 2005
Messages
289
Excellent now if you can make it with chance to charm the units in the small area. Maybe your much more 'inside' triggers, there is smth about the chance in Daelin's guide for enhanced spells in section 14 i wouldnt understand it much.

Ok isnt the easiest way of making it temp with wait 10 secs for example then change back the units in target point of ability being cast (withing region with points or height width /etc whataver it is )to previous owner. I am using it for ulti so i dont need levels and different times.
 
Level 7
Joined
Feb 4, 2005
Messages
289
Ok thanks actually i thought of a little different thing.

Unit - A unit Starts the effect of an ability

(Ability being cast) Equal to Cluster Rockets

Unit Group - Pick every unit in (Units within 80.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to False
((Picked unit) is A Hero) Equal to False
((Picked unit) is alive) Equal to True
Then - Actions
Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
Unit - Change color of (Picked unit) to Green
Wait 10.00 seconds
Unit - Change ownership of (Picked unit) to (Previous owner) and Change color
Else - Actions
Do nothing


It changes the units in the area to owner of casting unit, then it doesnt change them back to previous owner. Corrections ? U see no charm needed, i only dont get it why doesnt they change back to prev owner. Just correct the chaning back and it's done.
 
Level 7
Joined
Feb 4, 2005
Messages
289
Oh i noticed this dont worry, but it is a little far from my idea.


Can someone tell me what to use after

Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
Unit - Change color of (Picked unit) to Green


From where i cannot change the ownership back to previous. Sangir or Kershbob or anyone else who can make it work help pls, should we made the ownership back to previous and it is ready.
 
Status
Not open for further replies.
Top