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?



Trial and error... mostly error.

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.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: lil-Inferno, Roy