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

hero selection ability

Status
Not open for further replies.
Level 7
Joined
Jan 30, 2011
Messages
267
in my map there is supposed to be a circle of neutral-owned heroes
all human players have shared control with neutral player so they can see the heroes abilities
now every hero will have another ability that allows the player to pick that hero
but now functions like GetTriggerPlayer dont return the actually order issuing player, but the owner of the unit, which is Player(15)

i had 1 idea to solve this:
create 1 selection ability for each player, add all 8 abilites (because there are 8 human players) to each of the selectable heroes
disable the other 7 abilities locally for Player(15), so that each player can see only 1 ability
the problem is, that i dont know if SetPlayerAbilityAvailable is synchronized or not and i have no second computer to test if it causes desync

does anyone know if its synchronized or does anyone have another idea to solve this?
 
Level 7
Joined
Jan 30, 2011
Messages
267
ok thx for testing that ;)
what happens if you put the abilities into spellbooks and disable the spellbooks instead?
afaik a unit can be ordered to use an ability inside a disabled spellbook but not a disabled ability, which might be the reason for the desync
would be cool if you could test that too ;)
 
Status
Not open for further replies.
Top