Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: EUD Text Detection Breaking?
EUD Text Detection Breaking?
Jan 13 2014, 5:55 am
By: Prophete  

Jan 13 2014, 5:55 am Prophete Post #1



Alright, so I have a map that is going to be solely controlled using text.

It's a map to train new players in the game Snipers.

Now, everything is working smoothly it seems, but for some reason a certain scenario breaks the map.

First of, I have a trigger for row 1-11 for each command sent just to make sure the map can't miss it, since a lot of text will be displayed constantly.
Code
Trigger("Player 1"){
Conditions:
    Memory(187424, Exactly, 1885957715);
    Memory(187425, Exactly, 121270885);
    Memory(187426, Exactly, 1886930208);
    Memory(187427, Exactly, 1852399980);
    Switch("LockExplanation", set);
    Switch("ArenaActive", set);
    Switch("LockExplanationExample", not set);
    Switch("LockExplanationExplain", not set);

Actions:
    Set Deaths("Current Player", "Alan Schezar (Goliath)", Set To, 90);
    Set Deaths("Current Player", "Alan Turret", Set To, 1);
    Display Text Message(Always Display, "\x004\x013Simply put, a \"lock\" is how you kill an opposing Sniper.");
    Set Switch("LockExplanationExplain", set);
    Preserve Trigger();
    Comment("LockExplanationExplain11");
}

//-----------------------------------------------------------------//


This specific command, starts by typing "Explain" when each of those switches are set. This command works when I first get to the are and the "LockExplanation" and "ArenaActive" are set and the "LockExplanationExample" and "LockExplanationExample" are clear.

After that command, the are a series of display text triggers, ending in this.

Code
Trigger("Player 1"){
Conditions:
    Switch("LockExplanation", set);
    Switch("LockExplanationExplain", set);
    Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
    Deaths("Current Player", "Alan Turret", Exactly, 14);

Actions:
    Set Switch("LockExplanationExplain", clear);
    Display Text Message(Always Display, "\x004\x013Doing these steps, will \"Lock\" the opposing Sniper.\r\n\x004\x013Go ahead, try it!");
    Set Deaths("Current Player", "Alan Schezar (Goliath)", Set To, 45);
    Set Deaths("Current Player", "Alan Turret", Set To, 15);
    Preserve Trigger();
    Comment("LockExplanationMessage7-7");
}

//-----------------------------------------------------------------//


Now, if I don't do anything else, and I type "Explain" the trigger set refires, as it should.

But, if I kill the enemy unit, it sets this trigger off.

Code
Trigger("Player 1"){
Conditions:
    Bring("Current Player", "Terran Ghost", "LockExplanationArena", Exactly, 1);
    Bring("Player 2", "Terran Ghost", "LockExplanationArena", Exactly, 0);

Actions:
    Display Text Message(Always Display, "\x004\x013Good job, you completed this arena!\r\n\x004\x013Remember, type \"Leave\" to leave this arena or stay and practice!\r\n\x004\x013Or type \"Explain\" to hear again!");
    Create Unit("Player 2", "Terran Ghost", 1, "LockExplinationSpawnAI");
    Preserve Trigger();
    Comment("LockExplanationComplete/Respawn1");
}

//-----------------------------------------------------------------//


As it should, but after I do that, when I type "Explain" again, nothing happens at all. But, I can't see how this is, since I have the trigger for rows 1-11.



None.

Jan 13 2014, 6:35 am Prophete Post #2



Ah... after re-reading everything I noticed my problem, I needed to reset Alan Turret to 0.

Sorry!

Also, question, is doing the
Code
Trigger("Player 1"){
Conditions:
    Memory(186879, Exactly, 1885957715);
    Memory(186880, Exactly, 121270885);
    Memory(186881, Exactly, 1635013408);
    Memory(186882, Exactly, 29810);

Actions:
    Set Switch("GameStatus", set);
    Remove Unit At Location("All players", "Any unit", All, "CenterForStart");
    Display Text Message(Always Display, "\x004\x013Please look at each unit for blue and select a beacon..\r\n\x004\x013New players should move down the line.");
    Center View("LockExplanationSelection");
    Comment("Player Starts Game1");
}

//-----------------------------------------------------------------//


11x, changing the memory offsets to match the row, essentially ending up with 11 triggers per command the easiest way to do this or is there a more fool-proof way to ensure the command is never missed?

Thanks!



None.

Jan 13 2014, 3:49 pm Roy Post #3

An artist's depiction of an Extended Unit Death

There is no easy way: you have to check every row for chat messages if you don't want to miss anything.

Is this going to be a multiplayer map? If so, I hope you've read this synchronization problem on detecting text EUDs.




Jan 13 2014, 7:06 pm Prophete Post #4



Yeah, I was hoping it wasn't the only way. And yes, I am aware but thanks for for advice :)



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:20 am]
Symmetry -- Dang I'm up to 155 minerals gambling really pays off guys
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
Please log in to shout.


Members Online: lifebot