Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Adding attack to Command Center and Queen
Adding attack to Command Center and Queen
Jul 22 2020, 6:09 pm
By: Saox  

Jul 22 2020, 6:09 pm Saox Post #1



Hi,

How do I add an Attack with damage,range, effect for a Command Center? I would like it to be able to fire while in lift/off or land position.

Similiarly, whenever I using "Starcraft EPD Triggers" software I add attack to a Zerg Queen it always throws an error message that "needs to damage the CC enough before infesting", hence whatever attack I add it doens't attack or work. Some other units have a similiar problem - I couldn't for example add a ranged attack to the Scourge.



None.

Jul 23 2020, 1:03 pm UndeadStar Post #2



You are in "modding assistance", but it doesn't feel like you're using the usual modding tools (GPTP, PyMS or other Dat Editor, Firegraft...).
What are your questions based on?




Jul 23 2020, 4:02 pm Voyager7456 Post #3

Responsible for my own happiness? I can't even be responsible for my own breakfast

Yeah, the answer will be very different whether you are modding or using EUDs. I'm going to assume you are using modding:

For the Command Center attack, there's a couple things you'll need to do:
- Units.dat: Give the command center a weapon, check the "Full Auto-Attack" flag in advanced properties, change its AI actions so that it uses Guard (Building) as an idle order and its right-click action has an attack option.
- Weapons.dat: Change the weapon's attack angle to 128 - buildings can't turn, so we want them to be able to attack from any angle.
- Iscript.bin: Add attack, attack repeat and attack to idle animations to the Command Center. Check out something like the Photon Cannon for an example of what this would look like.
- Firegraft: Add an attack button to the Command Center's command card


Regarding the Queen - at the very least you will need to change its Attack Unit order in units.dat to the standard "Attack Unit," I forget if there are some additional hardcoded issues as well, you'll need to give it a try.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Jul 23 2020, 5:21 pm IlyaSnopchenko Post #4

The Curious

Don't all the buildings need to use Turret Attack and Turret Guard orders in lieu of those standard for (mobile) units?



Who am I, and why should I care?

Jul 24 2020, 2:02 pm Saox Post #5



Is there a way to do it in EPD Triggers? That is using EUDs ?



None.

Jul 24 2020, 2:36 pm Voyager7456 Post #6

Responsible for my own happiness? I can't even be responsible for my own breakfast

Most of the steps would be the same, but you're going to have a harder time because you can't do iscript editing with EUDs. All you can do is swap what script is being used, and I don't think there's a suitable script to use.

Anyway, this is in the wrong place if you're doing EUDs.

>Moved to UMS Assistance



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Jul 25 2020, 5:16 am Saox Post #7



Quote from Voyager7456
Most of the steps would be the same, but you're going to have a harder time because you can't do iscript editing with EUDs. All you can do is swap what script is being used, and I don't think there's a suitable script to use.

Anyway, this is in the wrong place if you're doing EUDs.

>Moved to UMS Assistance

Ok, thank you for moving.

So, with EPD Trigger there is no way to do this, right? I saw that I can swap iscripts, but that also wouldn't be enough? Even if I took one existing of bunker/missileturret/photoncannon ?

How about giving defiler and queen an attack ?



None.

Jul 25 2020, 7:34 am Sie_Sayoka Post #8



Command Center attacking should be possible albeit difficult. As for having it be able to land/lift as well I'm not entirely sure if it's possible. Allowing any sprite to attack without rock doodads is outlined here. Using the CC as a subunit of something like a Wraith is also possible although you'd lose the land/lift ability.

I'd recommend just using a separate unit that's linked to the Command Center instead. This can be done without EUDs as it's a simple move unit trigger. Alternatively you can just have the visual of a command center over another unit.

Queen and Defiler attacking is much easier as their iscripts allow for attacks. You will have to change the AI orders to allow for right click attacks and probably a few other things like the weapon.dat changes mentioned before.

Post has been edited 1 time(s), last time on Jul 25 2020, 7:39 am by Sie_Sayoka.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:01 am]
poison_us -- Oh_Man
Oh_Man shouted: I wonder how many Adolfs and Hitlers are floating around in Germany and do they cop any jokes about it on the regular??
this is the shout I meant to @ earlier.
[06:30 am]
m.0.n.3.y -- idk Vrael I think you're getting a little worked up. Yes he complains and get's emotional when he streams and I can see how that might annoy you, but giant turd of a human being is a bit much imo lol
[03:05 am]
C(a)HeK -- Dem0n
Dem0n shouted: you have to only put the last part of the video URL there. so like [youtube=5M6UGTE4lG4] would embed the youtube video NudeRaider posted three shouts below
i did it, thank you!
[11:15 pm]
poison_us -- NudeRaider
NudeRaider shouted: I understand why at some point he felt this name was a bit too silly. I feel the same way with my own name as well. But I connect so much history with it that I can't bring myself to dropping it. That being said I, too, dig NerdyTerdy. UV is cool enough tho so...
one of my students has the last name "Nazi". So there's that.
[09:51 pm]
KrayZee -- NudeRaider
NudeRaider shouted: KrayZee lol I didn't realize I was watching a different cast of Artosis featuring Minigame Party: https://www.youtube.com/watch?t=750&v=5M6UGTE4lG4 In this one you can see exactly what Vrael was talking about (whining). Artosis plays himself there and gets owned. He complains a lot. :D
It's interesting he didn't pay attention to that nor do anyone in the chat cares. Even if they did, they wouldn't understand a 11 to 12 year old joke.
[06:23 pm]
Dem0n -- you have to only put the last part of the video URL there. so like [youtube=5M6UGTE4lG4] would embed the youtube video NudeRaider posted three shouts below
[05:11 pm]
C(a)HeK -- i tried through [youtube=VIDEOCODE], but video don't work
[04:57 pm]
Dem0n -- Use the Youtube bbcode
[04:36 pm]
C(a)HeK -- how can i post the video in the topic? not the link.
[12:20 pm]
NudeRaider -- KrayZee
KrayZee shouted: NudeRaider Where? :0
lol I didn't realize I was watching a different cast of Artosis featuring Minigame Party: https://www.youtube.com/watch?t=750&v=5M6UGTE4lG4 In this one you can see exactly what Vrael was talking about (whining). Artosis plays himself there and gets owned. He complains a lot. :D
Please log in to shout.


Members Online: Roy, GGmano