HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help reproducing this bug...

01-07-2010, 01:37 PM#1
thehellman
Hey everyone.
A couple months ago I came across a weird bug, that I dismissed because it had no use for me at the time. However, now I found a use for it and would like some help on how to produce it again. I don't remember the exact steps, but maybe some other people could help me out.

The bug involved giving control of a player with a hero to another player, and then take that control away right after. When this is done, the hero icon appears in the other players screen, but they cannot select that hero.

In my dungeon-crawler map, it would be very benficial if you could see the hitpoints and mana points of other heroes on your team, but without being able to directly control them or use them.

So if anyone has any advice on how to reproduce it, and if anyone has even stumbled across it as well, please let me know.

On a side note, I never tested this, but would you be able to cast Holy Light then click on the icon of the hero on your screen?
01-07-2010, 01:45 PM#2
MeKC
I know or what I remember is: If you set the heroes Day/Night sight to 0, and place them somewhere in the fog, you can't select the hero.

Try that ;)
01-07-2010, 02:10 PM#3
DioD
Untitled Trigger 001
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Player - For Player 2 (Blue), turn Full shared units On toward Player 1 (Red)


Players MUST BE enemy to each other.

after this, you will have icon but wont have control.
01-07-2010, 05:27 PM#4
thehellman
Quote:
Originally Posted by DioD
Untitled Trigger 001
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Player - For Player 2 (Blue), turn Full shared units On toward Player 1 (Red)


Players MUST BE enemy to each other.

after this, you will have icon but wont have control.

Can they be set to enemies and then run the trigger? Because the units in my map start off as all allies.
01-07-2010, 07:39 PM#5
Fledermaus
They don't have to be enemies, you just need to use
call SetPlayerAlliance(sourcePlayer, otherPlayer, ALLIANCE_SHARED_ADVANCED_CONTROL, true)
01-07-2010, 10:30 PM#6
DioD
if players ally you will see hero. (but still unable to control)
01-08-2010, 12:19 AM#7
thehellman
Collapse JASS:
call SetPlayerAlliance(p, loopPlr, ALLIANCE_SHARED_ADVANCED_CONTROL, true)

This method works excellently, except for 1 little problem. It will create the Team Resources multiboard, which I don't want.

Any fix?
01-08-2010, 01:19 AM#8
DioD
hide all boards and display one you need.

can be done at any moment expect map init.
01-08-2010, 01:21 AM#9
thehellman
I fixed the issue with this:

call SetPlayerAlliance(p, loopPlr, ALLIANCE_SHARED_ADVANCED_CONTROL, true)
call DestroyMultiboardBJ( CreateMultiboardBJ(2,2,"TesT") )
01-08-2010, 05:38 PM#10
Troll-Brain
Does it work with computers or only with slots controlled by an human player ?
Because i've failed to do this with a computer.
01-08-2010, 07:38 PM#11
DioD
test it...
01-08-2010, 07:44 PM#12
Troll-Brain
Quote:
Originally Posted by DioD
test it...
I don't have warcraft for the moment, so i will wait thehellman's answer.
I would give you some rep for you helpfulness here, but unfortunately i can't spread more yet.
01-08-2010, 07:53 PM#13
DioD
it works in any case with all possible slot types.