• 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.

Changing Alliance classifies units as 'Neutral'

Status
Not open for further replies.
Level 19
Joined
Oct 12, 2007
Messages
1,821
Heya.
In my map there's something that changes your alliance with 'Player(9)' aka Player 10 in World Editor. I can change the alliance how I want; Making them act friendly to eachother without sharing vision and advanced control or anything. There's just one problem.
When I try to cast a healing spell like Healing Wave, Heal, Holy Light or whatsoever it says it can't target one of those player's units because they're "neutral". Does anyone know if it's possible to make them allied/friend or whatever. If they're Neutral it sucks because I will have to add neutral to every spell's target list and some 'neutral' units are supposed to be neutral.

Does anyone know of a SetPlayerAlliance command that can do this? Or maybe something else. As long as I don't have to 'live with it' and change the ability target lists.


This is what the map has:
JASS:
call SetPlayerAlliance(Player(id),Player(9),ALLIANCE_PASSIVE,true)
call SetPlayerAlliance(Player(9),Player(id),ALLIANCE_PASSIVE,true)
 
Level 19
Joined
Oct 12, 2007
Messages
1,821
Alright. Sounds good.
Could you explain what that does?
My guess is that it makes spells target them as friendly/allied just like I wanted but I'm just curious if that's all it does.

Thanks for the help Pharaoh!
 
Level 19
Joined
Oct 12, 2007
Messages
1,821
Alright. Sounds great!
Gonna try it out as soon as I'm back home again.
I'll keep this post updated with the result.

Thanks again
 
Status
Not open for further replies.
Top