Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How to detect when a player is attacking?
How to detect when a player is attacking?
May 1 2010, 8:06 pm
By: Jesusfreak  

May 6 2010, 2:25 pm Jesusfreak Post #21



Quote from rockz
Waits are useful in hyper triggers and in simple triggers. When displaying a series of texts, it's nice to just use a wait and save a few triggers.
Wait, really? Dangit, I had already changed it to death counters XD. I had come up with a system... one death timer would detect how long a conversation had been going on, and another death counter would detect which conversation you were in (so each amount of deaths would represent a different conversation).



None.

May 8 2010, 12:06 am rockz Post #22

ᴄʜᴇᴇsᴇ ɪᴛ!

Suffice it to say, death counts are almost always more versatile than waits. You couldn't have come up with this "system" using waits, as once a trigger starts, it can't be stopped (unless you use wait blocks). You made a good choice in picking DCs for that. I always recommend DCs over waits, even in music.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 11 2010, 10:23 am StarBlue Post #23



If you wish to keep the player from attacking the computer at all:
-CONDITION- always
-ACTION- Set player 7 to ALLY
Preserve trigger

If you wish for the computer to unally the player:
-CONDITION- Player 1 kills at least 1 (SPEC UNIT)
Player 7 suffers at least 1 (SPEC UNIT)
-ACTION- Set player 1 to ENEMY

Make sure you have alot of hyper triggers for the first trigger to be effective.



None.

May 11 2010, 10:29 am Aristocrat Post #24



Quote from StarBlue
If you wish to keep the player from attacking the computer at all:
-CONDITION- always
-ACTION- Set player 7 to ALLY
Preserve trigger

If you wish for the computer to unally the player:
-CONDITION- Player 1 kills at least 1 (SPEC UNIT)
Player 7 suffers at least 1 (SPEC UNIT)
-ACTION- Set player 1 to ENEMY

Make sure you have alot of hyper triggers for the first trigger to be effective.

The second trigger won't work if player 1 kills a unit and player 7 loses one of the same type of unit in an unrelated battle.



None.

May 11 2010, 10:30 am StarBlue Post #25



If each player does not have a specific unit for itself, like a normal game, then all you can do is trust the computer player can fight back, unless someone else can get that trigger for you.

EDIT:
Yes I knew something was wrong with the second trigger, I was just about to edit it, but I guess you beat me. Sorry about that. BUT, if you have the SPEC UNITs at a certain location, if a player unallies the computer, it will attack that unit in the location. That way you CAN"T lose it in an unrelated battle, try something like that.
~~EDIT~~
Here are some possible problems you may encounter, I'm just going to answer them now before you ask :)
After the SPEC UNIT dies, the computer can't sense when another player betrays them : Make more than one SPEC UNIT and place them in boxes near other player's units a fair distance apart (if using range)

Enemies keep getting to the SPEC UNITS : Make a trigger that moves all units away from the SPEC UNITs' location.

Post has been edited 2 time(s), last time on May 12 2010, 5:48 pm by StarBlue. Reason: Spell Check



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
[2026-5-31. : 2:55 pm]
Moose -- >reddit :rip2:
[2026-5-31. : 2:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: jun3hong