What do you mean by desync? I know what the word means, but I don't see how it works in StarCraft, nor how you would preform this.
When you do something 'illegal' (cannot be done normally) or something happens arbitrarily that doesn't happen to the other players, you will just drop immediately. It is what happens if you were to play a mod with someone who doesn't have that mod.
Screen pos is not shared. When you kill it, the banned player gets moved to (0,0) and a death is set (or is it just the death of the cocoon?) If you have the banned death and the screen pos at (0,0), it creates a unit. I think I made it so if you don't have the ban death and you are at (0,0) it moves the screen elsewhere.
When I understand it right you say if he has a death of cocoon, move his screen to (0,0) else move it elsewhere.
That is done in many maps for cutscenes without EUDs. I don't understand why checking for a death of cocoon would be different for the other players. Maybe my problem is I don't understand all effects of "Unit ID: x" Can you elaborate?
I just know you can only have this unit ID died once (without modifying the dc) until it is (randomly?) replaced with another unit.
It uses an EUD in addition to the death. The death is just to allow a way for other players not to desync. It sets the screen pos to (0,0) an reads it. Because it does not allow anyone else to look at (0,0), the trigger
only runs for that person causing them to desync when it creates a unit.
How would you even test for something like that? If its even possible.
Create a map and have other people join and then ban someone?
Do you want me to specify the triggers?
Player has been banned: Set death. If you use the death of a unit to ban, skip this trigger.
Force, All Players, whatever. (Same for all blocks)
<Condition to determine bannage>
Set Deaths for Current Player.
Prepare ban for banned.[TRIGGER]
[CONDITIONS]
[*]Current Player suffered Exactly 1 Death of lolwut
[/CONDITIONS]
[ACTIONS]
[*]Center View [top left location]
[/ACTIONS]
[/TRIGGER]
Prepare for the not banned to not
be banned.[TRIGGER]
[CONDITIONS]
[*][Force, all players, whatever] suffers at least one death of lolwut
[*][EUD] Screen Pos X is Exactly 0
[*][EUD] Screen Pos Y is Exactly 0
[/CONDITIONS]
[ACTIONS]
[*]Center View [some non-topleft location]
[*]Preserve Trigger.
[/ACTIONS]
[/TRIGGER]
BANNAGE![TRIGGER]
[CONDITIONS]
[*]Current Player has suffered exactly 1 death of lolwut
[*][EUD] Screen Pos X is Exactly 0
[*][EUD] Screen Pos Y is Exactly 0
[/CONDITIONS]
[ACTIONS]
[*]Display Text Message 'BANNED!'
[*]<Any action other than display text, center view, minimap ping, playwav, show portrait (there may be more)>
[*]Any other action you want. Want to defeat them? Fine.
[/ACTIONS]
[/TRIGGER]
It desyncs because for everybody else the screen pos is
not (0,0), and then it runs some trigger to create a unit or something. None of the other clients see that trigger happening, so that user just desyncs.
Note that trigger order matters...
Set the death.
Make sure that innocent people are not looking. (If you had this after forcing the banned to look, they'd move away, too, because this is general. You
could specify 'Current player has 0 deaths of lolwut', but that is a little bit more work and we all know everyone is lazy.
)
Make sure that the banned views top left.
If the current player is viewing top left, kill, create, order, show a leaderboard, whatever.
Edit: Ew. Didn't show my descriptions.
Post has been edited 4 time(s), last time on Mar 24 2008, 11:54 pm by FaRTy1billion.
TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB -
topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig -
topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!