Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Detecting Firing
Detecting Firing
Jan 13 2009, 6:47 am
By: Jack  

Jan 13 2009, 6:47 am Jack Post #1

>be faceless void >mfw I have no face

I want to have a detection system for if a unit attacks something, mostly for an ammo and sound system, so if a unit fires against a unit that doesn't die in one hit, you can make the fire sound play, and use ammo up too.AFAIK you can't do that without EUD's, and the only thing I could find that might be it for EUDs is the following entry:
Quote
- 1000000 - Morph from Unit?/Check SUPPLY CouNT
- 2000000 - Med overlay
- 4000000 - Large overlay
- 8000000 - Auto attk/Battle React
- 10000000 - Attack/Direct attk
- 20000000 - Invincible
- 40000000 - Mech
- 80000000 - Produce units? - Wide radius creep




Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jan 13 2009, 2:11 pm rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

This has never been done before. If it's possible, you need to know a lot about EUDs to be able to do it. It very well could be possible.

As it stands, though my normal response is: No it's not possible.

Here's the code from that map. It's a real simple map. Personally, I despise comments. It's easier to understand triggers by their code rather than a string describing what it does. It's also got health detection, and plays a sound when you're hit.

Code
Trigger("Player 1"){
Conditions:
    Deaths("Player 3", "1587", At least, 196608);
    Deaths("Current Player", "Terran Engineering Bay", Exactly, 0);
    Accumulate("Current Player", At least, 1, ore);

Actions:
    Play WAV("Pow.wav", 0);
    Set Resources("Current Player", Subtract, 1, ore);
    Set Deaths("Current Player", "Terran Engineering Bay", Set To, 1);
    Move Location("Current Player", "Terran Ghost", "Anywhere", "009");
    Create Unit with Properties("Player 7", "Zerg Drone", 1, "010", 2);
    Move Unit("Player 7", "Zerg Drone", 1, "010", "009");
    Give Units to Player("Player 7", "Player 9", "Zerg Drone", All, "Anywhere");
    Wait(40);
    Remove Unit("Player 9", "Zerg Drone");
    Preserve Trigger();
    Comment("ÃѼҸ®,-1o, ¿£º£1d, ¿ø´õ·¯ 9ML, 10 p7 ¹ö·Î¿ìµå·Ð¸¸µé°í 9À̵¿ p9Áà,40ÈÄ µå·Ð¾ø¾Ö\r\n(¿£º£0d, ÃѾËo, °ø°Ý»óÅÂ)");
}

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

Trigger("Player 1"){
Conditions:
    Deaths("Player 3", "1587", At most, 196607);
    Deaths("Current Player", "Terran Engineering Bay", At least, 1);

Actions:
    Set Deaths("Current Player", "Terran Engineering Bay", Set To, 0);
    Move Location("Current Player", "Terran Ghost", "Anywhere", "009");
    Order("Current Player", "Terran Ghost", "009", "009", move);
    Preserve Trigger();
    Comment("¿£º£d0, ¿ø´õ·¯ 9ML, ¿ø´õ·¯ 9¿¡¼­ 9\r\n(¿£º£d1~, °ø°Ý»óÅÂ)");
}

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


Post has been edited 1 time(s), last time on Jan 14 2009, 2:55 am by rockz.



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

Jan 13 2009, 3:25 pm JaFF Post #3



You can use VHP systems, but that tends to overcomplicate things.

I suggest you make a trigger system that subtracts the number of bullets you need to kill an enemy (possibly considering your attack upgrades, if possible in your case) AFTER you've killed him. No offense, but looks like you're new to mapping (maybe I'm wrong!), which is why I suggest a simpler solution.



None.

Jan 13 2009, 5:38 pm Biophysicist Post #4



If you use cloaked Ghosts, you could use a computer-controlled ComSat Station and use Commands At Least One Scanner Sweep to figure out when a unit attacked, because the computer will always use Scanner Sweep when its units (or allied units) get attacked by cloaked units. Then the problem is figuring out WHO fired, which is harder. You could probably pull it off with multiple computers, but that would use up a bunch of your player slots. You'd also need some way for the computers to shoot at the Ghosts, and some way to prevent the players from decloaking their Ghosts.

You could also use Dark Archons and have them use Mind Control to shoot.



None.

Jan 13 2009, 8:14 pm NudeRaider Post #5

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

It IS possible to detect attacks with EUDs.
Devilesk made a concept map for that. Unfortunately he hasn't uploaded it.
But if you're willing to spend some time on research and looking through Farty's EUD database you should be able to figure it out.




Jan 13 2009, 9:22 pm Joker47 Post #6



I recently played a map where this was done, couldn't tell you how to do it though... but here it is:

Attachments:
halloweenpriest_v104(1152).scx
Hits: 22 Size: 364.77kb



None.

Jan 13 2009, 9:27 pm Vi3t-X Post #7



That map is actually very EUD intensive. Joker, we must play that agian. :D



None.

Jan 13 2009, 9:59 pm Jack Post #8

>be faceless void >mfw I have no face

Quote
I suggest you make a trigger system that subtracts the number of bullets you need to kill an enemy (possibly considering your attack upgrades, if possible in your case) AFTER you've killed him. No offense, but looks like you're new to mapping (maybe I'm wrong!), which is why I suggest a simpler solution.
I'm not that new to mapping, I haven't actually released any finished maps though....not as good as most pro mappers though, but I know about EUDs and more advanced mapping stuff.I found that entry I quoted in fartys EUD DB, but I don't know if it's the right thing. Mayor said yesterday that he had done it too, but then logged off and didn't say how.

EDIT:
Halloween priest is commented in asian...idk how to reait.

Post has been edited 1 time(s), last time on Jan 14 2009, 1:59 am by NudeRaider. Reason: merged posts



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jan 14 2009, 12:47 am poison_us Post #9

Back* from the grave

random question: WTF IS AN EUD??

[chances are that I used one once or twice but thought I "discovered" something, then forgot it later]




Jan 14 2009, 12:50 am Morphling Post #10



If you havent heard of them then then there is no chance you have used them. They are basically really high deaths or w/e that shifts Stacrafts memory. Only conditions can be used since Blizzard patched actions.
Here is a topic.



None.

Jan 14 2009, 1:04 am InsolubleFluff Post #11



Joker47 is that the map I played with you? I thought you made it... or did you make a different one? Regardless it IS possible and that's what I was going to say... I asked Lethal about this the other day and he said EUD's and I realised that instead of wasting my precious life on learning how to do something like that... i'll wait for SC2 and do that easily... whilst enjoying my life as is... ^_^!



None.

Jan 14 2009, 1:05 am poison_us Post #12

Back* from the grave

ew. my head hurts. :-(
I'm just gonna leave that crap alone, but thanks for the info.

Post has been edited 1 time(s), last time on Jan 14 2009, 1:15 am by poison_us.




Jan 14 2009, 1:41 am TriggR_HappE Post #13



Quote from name:zany_001
Halloween priest is commented in asian...idk how to reait.

Go nuts with copy/paste and an online translator?



None.

Jan 14 2009, 5:40 am Jack Post #14

>be faceless void >mfw I have no face

Nah the triggers are all in english so I copied from non classic trigedit and did a find for pow.wav (gunshot sound) and found the trigger. Now though, for some reason SCMDraft doesnt do my EUDs for me anymore, so I'm dling starforge and doing ti with that.....



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jan 14 2009, 7:57 am alexpnd Post #15



I feel a bit overwhelmed. But can somebody point me to the right direction of using that code but finding the location for the firing of a battlecruiser. Also whats the second trigger for, the second location (from that example above) Thanks



None.

Jan 14 2009, 9:39 pm Jack Post #16

>be faceless void >mfw I have no face

OK i found the trigger, copied most of it, including the second one, though i dont know what it's for, AND it didnt WORK!!!!So Im stuffed ATM.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jan 14 2009, 11:43 pm NudeRaider Post #17

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Copied? A EUD trigger?
You do realize that you have to tailor EUDs for every map?
Have you checked the tutorials and topics that are around here? You don't seem to understand the principle of EUDs.

Well if you are a EUD beginner then probably the attack detection is not for you (yet). Get a few (concept) maps done that utilize EUDs. Once you fully understood them you should be able to figure how to do the attack detection.
And no, I'm being arrogant or something, I too have only limited EUD knowledge (never actually used them, but read a lot about them), so I can't tell you how to do it.




Jan 15 2009, 9:24 am rockz Post #18

ᴄʜᴇᴇsᴇ ɪᴛ!

Quote from name:zany_001
OK i found the trigger, copied most of it, including the second one, though i dont know what it's for, AND it didnt WORK!!!!So Im stuffed ATM.
the ones I posted should only work for a particular unit, in its unit slot. You need to be looking for the unitnode listing, and make sure you know what the number of the unit is. You probably don't want it to die either.



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

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
Please log in to shout.


Members Online: Roy, Ultraviolet