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

[Trigger] Alliance settings, cant share control

Status
Not open for further replies.
Level 4
Joined
Nov 27, 2012
Messages
85
In my map, there are 2 teams of 5 users, 1 computer. (Players 1-6, 7-12)
I have a "drafting" mode where 2 captains can pick players to be on their team.

So if player 2 picks any player from 7-12, I set picked player to turn Alliance with shared vision on and vice-versa. Everything works fine, except that Player 2 cannot Share Control with picked player from opposing team, and vice versa.

If they go to the Allies Screen (F11) the Share Control box is clickable, but when you click it, it ticks the box and when you close the menu it automatically unticks it.

Attached is an MSPaint diagram. Players from Red Box cannot share control with Green Box, vice versa. Players "wineBOY" and "i.suckc0ck4gold" can share with each other, but nobody else, and nobody else can share with them.

JASS:
    call SetForceAllianceStateBJ(udg_force_sents,udg_force_sents,bj_ALLIANCE_ALLIED_VISION)
    call SetForceAllianceStateBJ(udg_force_sents,udg_force_scourge,bj_ALLIANCE_UNALLIED) 
    call SetForceAllianceStateBJ(udg_force_scourge,udg_force_scourge,bj_ALLIANCE_ALLIED_VISION)
    call SetForceAllianceStateBJ(udg_force_scourge,udg_force_sents,bj_ALLIANCE_UNALLIED)
 

Attachments

  • Untitled.png
    Untitled.png
    926.4 KB · Views: 101
Last edited:
Status
Not open for further replies.
Top